multiZoneSetColorZones() does not support CSS (as per LifxLanColor) #11
Closed
Description
Hi,
I've been trying to use the multiZoneSetColorZones() that should accept as color
the class LifxLanColor
.
It looks like the color
property is not transformed properly as it only accepts LifxLanColorHSB
objects. I've been trying to use LifxLanColorCSS
without success.
Example:
device.multiZoneSetColorZones({
start : 0,
end : 8,
color : { css: "#ff0000" },
duration : 0,
apply : 1
})
Error:
(node:61955) UnhandledPromiseRejectionWarning: Error: The `color.hue` is required.
at LifxLanComposer._checkColorValues (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-composer.js:414:12)
at LifxLanComposer._composePayload501 (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-composer.js:652:29)
at LifxLanComposer._composePayload (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-composer.js:135:15)
at LifxLanComposer.compose (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-composer.js:44:33)
at Promise (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-udp.js:131:26)
at new Promise (<anonymous>)
at LifxLanUdp._requestUnicast (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-udp.js:118:16)
at Promise (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-udp.js:107:9)
at new Promise (<anonymous>)
at LifxLanUdp.request (/Users/paolo/Downloads/node-lifx-lan-master/node_modules/node-lifx-lan/lib/lifx-lan-udp.js:92:16)
Metadata
Assignees
Labels
No labels