dzVents scenes report different state than UI
Posted: Monday 05 February 2018 10:17
I'm trying to use a scene state as a condition for turning off some lights in the morning, but the code says my scene has state 'On' when the web UI reports is as being mixed?
When i used code:
domoticz.scenes().forEach(function(device)
domoticz.log(device.name .. ' ' .. device.state)
end)
It lists my scenes with their state:
2018-02-05 10:12:57.198 dzVents: Info: ------ Start internal script: Status: Device: "Status (Dummy)", Index: 381
2018-02-05 10:12:57.230 dzVents: Info: Rörelse för 133 min sen, sänglampa tändes/släcktes för 540 minuter sen och scen släck allt är On
2018-02-05 10:12:57.230 dzVents: Info: Släck allt On
2018-02-05 10:12:57.230 dzVents: Info: Släck tak Off
2018-02-05 10:12:57.231 dzVents: Info: Vakna On
2018-02-05 10:12:57.232 dzVents: Info: Hemma Mixed
2018-02-05 10:12:57.233 dzVents: Info: Ingen hemma Mixed
2018-02-05 10:12:57.233 dzVents: Info: ------ Finished Status
The status according to web UI is
Släck allt = Mixed
Släck tak = Off
Vakna = On
Hemma = Mixed
Ingen hemma = Mixed
I'm trying to use that the "Släck allt" is mixed but it's reporting 'On', why is it the only scene reporting different state from the UI? Should it not report the same state?
Version: 3.8875
Build Hash: 3674fa59
Compile Date: 2018-02-02 16:03:49
dzVents Version: 2.4.1
Thanks
Pär
When i used code:
domoticz.scenes().forEach(function(device)
domoticz.log(device.name .. ' ' .. device.state)
end)
It lists my scenes with their state:
2018-02-05 10:12:57.198 dzVents: Info: ------ Start internal script: Status: Device: "Status (Dummy)", Index: 381
2018-02-05 10:12:57.230 dzVents: Info: Rörelse för 133 min sen, sänglampa tändes/släcktes för 540 minuter sen och scen släck allt är On
2018-02-05 10:12:57.230 dzVents: Info: Släck allt On
2018-02-05 10:12:57.230 dzVents: Info: Släck tak Off
2018-02-05 10:12:57.231 dzVents: Info: Vakna On
2018-02-05 10:12:57.232 dzVents: Info: Hemma Mixed
2018-02-05 10:12:57.233 dzVents: Info: Ingen hemma Mixed
2018-02-05 10:12:57.233 dzVents: Info: ------ Finished Status
The status according to web UI is
Släck allt = Mixed
Släck tak = Off
Vakna = On
Hemma = Mixed
Ingen hemma = Mixed
I'm trying to use that the "Släck allt" is mixed but it's reporting 'On', why is it the only scene reporting different state from the UI? Should it not report the same state?
Version: 3.8875
Build Hash: 3674fa59
Compile Date: 2018-02-02 16:03:49
dzVents Version: 2.4.1
Thanks
Pär