UNPKG

knx-dpt

Version:

Serialize and deserialize KNX datapoints

52 lines (47 loc) 1.38 kB
module.exports = { id: 3, base: { desc: "4-bit relative dimming control", beforeDeserialize: function () { return {}; }, props: [ {type: "uint", size: 3, index: "data"}, {type: "bool", index: "incr_decr"} ] }, subs: { // 3.007 dimming control "007": { "name": "DPT_Control_Dimming", "desc": "dimming control" }, // 3.008 blind control "008": { "name": "DPT_Control_Blinds", "desc": "blinds control" } } }; /* 2.6.3.5 Behavior Status off dimming actuator switched off on dimming actuator switched on, constant brightness, at least minimal brightness dimming dimming actuator switched on, moving from actual value in direction of set value Events position = 0 off command position = 1 on command control = up dX command, dX more bright dimming control = down dX command, dX less bright dimming control = stop stop command value = 0 dimming value = off value = x% dimming value = x% (not zero) value_reached actual value reached set value The step size dX for up and down dimming may be 1/1, 1/2, 1/4, 1/8, 1/16, 1/32 and 1/64 of the full dimming range (0 - FFh). 3.007 dimming control 3.008 blind control */