dzVents and Fibaro switch event
Posted: Wednesday 11 July 2018 23:10
Hello,
Question:
Is there a way in an dzVents script to differentiate the source of an switch on/off event comming from a z-wave device? I want the have the script to have a different behaviour when it's done manually with the wall switch, or by a z-wave command.
Background story:
I have an Fibaro Double Switch 2 an z-wave device. I use the switch input not only for switching on/off the attached lamp, but also as an input to my dzEvent script. I use this to initiate an blanking period for my motion sensor, so the lamp is not turned on, when i walk away from the switch.
So far not a problem. Even turning on/off the lamp from within the dzEvent script does not fire this event, this is what i want but....
using "domoticz.devices(LampName).switchOff().afterSec(LampOnDuration)" does fire event to notify my script that the lamp is turned off. This is the exact same event as the lamp is turned off manually with the switch. In this case i don't want the script starts the blanking period.
Regards,
Richard Dols
Question:
Is there a way in an dzVents script to differentiate the source of an switch on/off event comming from a z-wave device? I want the have the script to have a different behaviour when it's done manually with the wall switch, or by a z-wave command.
Background story:
I have an Fibaro Double Switch 2 an z-wave device. I use the switch input not only for switching on/off the attached lamp, but also as an input to my dzEvent script. I use this to initiate an blanking period for my motion sensor, so the lamp is not turned on, when i walk away from the switch.
So far not a problem. Even turning on/off the lamp from within the dzEvent script does not fire this event, this is what i want but....
using "domoticz.devices(LampName).switchOff().afterSec(LampOnDuration)" does fire event to notify my script that the lamp is turned off. This is the exact same event as the lamp is turned off manually with the switch. In this case i don't want the script starts the blanking period.
Regards,
Richard Dols