Open tiptronic opened 11 months ago
Quick info:
it has something to do with the transitiontime
setting...
If I change:
return xAPI.lights.setLightState(LIGHT_ID, { on: !state.on, transitiontime: 2 });
to
return xAPI.lights.setLightState(LIGHT_ID, { on: !state.on });
everything works fine.
The light I checked here is an Extended color light
, but it happens with other lights as well....
type: 'Extended color light',
name: 'Luminare 1',
modelid: 'LCT001',
manufacturername: 'Signify Netherlands B.V.',
I am using the
esmodules
branch (or thedefault
branch with this patch applied, so it can importdiscovery
)Everything works fine, but if I switch a light off (or toggle it), it sets its
bri
state to1
...I tried to debug it, but the library's flow is really hard to follow...
However, I can reproduce it with a simple example (mostly from the examples directory):
or a bit less 'then':
Anyone out there seeing the same problem? (Or any hint what else the problem could be?)