mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-07-12 14:48:57 +00:00
Support settings colors. #7
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user