Skip to content
This repository has been archived by the owner on May 20, 2021. It is now read-only.

Setting state twice to 0 will make it switch to 1 #20

Open
alex005005 opened this issue Jan 19, 2020 · 0 comments
Open

Setting state twice to 0 will make it switch to 1 #20

alex005005 opened this issue Jan 19, 2020 · 0 comments

Comments

@alex005005
Copy link

alex005005 commented Jan 19, 2020

Sorry in advance if this is an error due to misunderstanding of ioBroker. I am new to this.

I trigger a state with
setState("squeezebox.0.playername.state"/*playername.state*/, 0);
Doing that twice will however change state to 1 (Player will play).

In my log I see the change to "0" twice. But it will start playing after the 18:57:40.327 entry:

javascript.0 2020-01-19 18:57:40.327 info (738) script.js.playMusicOnLightSwitch: getState(id=sonoff.0.rf_bridge_wohnzimmer.RfReceived_Data, timerId=undefined) => {"val":"554415","ack":true,"ts":1579456660324,"q":0,"from":"system.adapter.sono
javascript.0 2020-01-19 18:57:33.231 info (738) script.js.playMusicOnLightSwitch: setForeignState(id=squeezebox.0.wohnzimmerlinks.state, state=0)
javascript.0 2020-01-19 18:57:33.231 info (738) script.js.playMusicOnLightSwitch: getState(id=sonoff.0.rf_bridge_wohnzimmer.RfReceived_Data, timerId=undefined) => {"val":"554414","ack":true,"ts":1579456653228,"q":0,"from":"system.adapter.sono
javascript.0 2020-01-19 18:57:33.231 info (738) script.js.playMusicOnLightSwitch: getState(id=sonoff.0.rf_bridge_wohnzimmer.RfReceived_Data, timerId=undefined) => {"val":"554414","ack":true,"ts":1579456653228,"q":0,"from":"system.adapter.sono
javascript.0 2020-01-19 18:57:24.345 info (738) script.js.playMusicOnLightSwitch: setForeignState(id=squeezebox.0.wohnzimmerlinks.state, state=0)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant