Support settings colors. #7

This commit is contained in:
Koen Kanters
2018-04-20 23:40:17 +02:00
parent e6e558eae7
commit aebce9099b
+11
View File
@@ -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;