how to achieve: trigger by trigger
Posted: Monday 15 October 2018 8:49
Ciao,
looking for a solution (and posibily a dzVent implementation
) about how to achieve a device trigger ONLY if another device has been trigger before.
Example:
I do have my presence system based on BLE.... but before starting some action I would need the magnet on the front door to be opened.
Actually I can do this valuating the .lastUpdate() within a period, but this would take me 2 or mode complex scripts.
I was looking for an implementatoin like:
so the script will be triggered if Presence changes in the last minute and if Door Switch changes state
would it be difficult?
ciao
M
looking for a solution (and posibily a dzVent implementation

Example:
I do have my presence system based on BLE.... but before starting some action I would need the magnet on the front door to be opened.
Actually I can do this valuating the .lastUpdate() within a period, but this would take me 2 or mode complex scripts.
I was looking for an implementatoin like:
Code: Select all
on = {
devices = { 'Door switch'},
dependDevices = {'Presence' = 'last 1 minutes'}
},
would it be difficult?

ciao
M