diff --git a/lib/converters/mqtt2zigbee.js b/lib/converters/mqtt2zigbee.js index 9c75a981..f3280e35 100644 --- a/lib/converters/mqtt2zigbee.js +++ b/lib/converters/mqtt2zigbee.js @@ -26,6 +26,17 @@ const converters = { }, } }, + "color": (value) => { + return { + cId: 'lightingColorCtrl', + cmd: 'moveToColor', + zclData: { + colorx: value.x * 65535, + colory: value.y * 65535, + transtime: 10, + }, + } + }, } module.exports = converters; \ No newline at end of file