Page 1 of 1
checkfirst and selectorswitches
Posted: Friday 24 January 2020 18:20
by pvklink
Hi,
I have a selector switch that contains all sort of alarms (fire/smoke, panic, door, pir etc.)
When you select one, a aalrmtype is executed.
These alarmtypes can also be activated by sensors.
My latest sensor are PIR's, so i made an alarmtype Pir. Pir's go off x-times so i added .checkFirst() to the selector switch, and getting an error...
dz.devices('Alarm').switchSelector('Pir').checkFirst()
Isnt this supported?
Re: checkfirst and selectorswitches
Posted: Friday 24 January 2020 21:30
by waaren
pvklink wrote: Friday 24 January 2020 18:20
dz.devices('Alarm').switchSelector('Pir').checkFirst()
Isnt this supported?
Not yet but I am testing a modification to the code that will allow this. Should not take too long..
Re: checkfirst and selectorswitches
Posted: Friday 24 January 2020 21:40
by snellejellep
ah that's why that is causing errors for me... not yet supported. waiting for this feature!
Re: checkfirst and selectorswitches
Posted: Friday 24 January 2020 21:44
by pvklink
great..
i see two scenarios....
1. check on switch on or off
2. more complex: check on switch on with the same option...
i am happy with every action...
Re: checkfirst and selectorswitches
Posted: Saturday 25 January 2020 1:05
by waaren
pvklink wrote: Friday 24 January 2020 21:44
I see two scenarios....
1. check on switch on or off
2. more complex: check on switch on with the same option...
Implemented in dzVents 2.5.7 (domoticz V4.11649). You should now be able to do something like
Code: Select all
dz.devices('selectorName').switchSelector('levelName').afterSec(10).checkFirst().silent()
domoticz.devices(345).switchSelector(30).checkFirst()
or the likes...
Re: checkfirst and selectorswitches [Solved]
Posted: Saturday 25 January 2020 1:14
by waaren
waaren wrote: Saturday 25 January 2020 1:05
pvklink wrote: Friday 24 January 2020 21:44
I see two scenarios....
1. check on switch on or off
2. more complex: check on switch on with the same option...
Implemented in dzVents 2.5.7 (domoticz V4.11650). You should now be able to do something like
Code: Select all
dz.devices('selectorName').switchSelector('levelName').afterSec(10).checkFirst().silent()
domoticz.devices(345).switchSelector(30).checkFirst()
or the likes...
Re: checkfirst and selectorswitches
Posted: Saturday 25 January 2020 11:03
by pvklink
Great!
will try it imm.
Re: checkfirst and selectorswitches
Posted: Saturday 25 January 2020 11:52
by pvklink
And it works!
Thanks @waaren