diff --git a/converters/fromZigbee.js b/converters/fromZigbee.js index 114d1fe1cc032..f478dbecbf489 100644 --- a/converters/fromZigbee.js +++ b/converters/fromZigbee.js @@ -1564,14 +1564,14 @@ const converters = { cid: 'genOnOff', type: 'cmdOn', convert: (model, msg, publish, options) => { - return {action: 'toggle'}; + return {action: 'on'}; }, }, tint404011_off: { cid: 'genOnOff', type: 'cmdOff', convert: (model, msg, publish, options) => { - return {action: 'toggle'}; + return {action: 'off'}; }, }, tint404011_brightness_updown_click: { @@ -1579,7 +1579,41 @@ const converters = { type: 'cmdStep', convert: (model, msg, publish, options) => { const direction = msg.data.data.stepmode === 1 ? 'down' : 'up'; - return {action: `brightness_${direction}_click`}; + return { + action: `brightness_${direction}_click`, + step_size: msg.data.data.stepsize, + transition_time: msg.data.data.transtime, + }; + }, + }, + tint404011_scene: { + cid: 'genBasic', + type: 'cmdWrite', + convert: (model, msg, publish, options) => { + return {action: `scene${msg.data.data[0].attrData}`}; + }, + }, + tint404011_move_to_color_temp: { + cid: 'lightingColorCtrl', + type: 'cmdMoveToColorTemp', + convert: (model, msg, publish, options) => { + return { + action: `color_temp`, + action_color_temperature: msg.data.data.colortemp, + transition_time: msg.data.data.transtime, + }; + }, + }, + tint404011_move_to_color: { + cid: 'lightingColorCtrl', + type: 'cmdMoveToColor', + convert: (model, msg, publish, options) => { + return { + action: `color_wheel`, + action_color_x: msg.data.data.colorx, + action_color_y: msg.data.data.colory, + transition_time: msg.data.data.transtime, + }; }, }, cmdToggle: { diff --git a/devices.js b/devices.js index 71ba82295208c..4e68b9aec53d3 100644 --- a/devices.js +++ b/devices.js @@ -2401,6 +2401,7 @@ const devices = [ vendor: 'Müller Licht', fromZigbee: [ fz.tint404011_on, fz.tint404011_off, fz.cmdToggle, fz.tint404011_brightness_updown_click, + fz.tint404011_move_to_color_temp, fz.tint404011_move_to_color, fz.tint404011_scene, ], toZigbee: [], },