Hello.
I have two devices, they are Z19 and Z20 which are essentially occupancy devices, which turn on when me and my wife and close to home. Since they are not through Doomotion though I am a little confused.
I have another device, which is Z66 which I want to make an overall occupancy virtual device, and use in my events to control motion sensors etc. Could someone help with a script that would turn on Z66 if devices Z19, and / or devices Z20 are set to on. And when they are both off, then the Z66 device would become off.
So the conditions would be either:
Z19 Is ON, but Z20 is OFF = Z66 ON
Z19 Is ON, but Z20 is ON = Z66 ON
Z19 Is OFF, but Z20 is ON = Z66 ON
Z19 Is OFF, but Z20 is OFF = Z66 OFF
That way in my coding for motion detection, if Z66 Is ON, when motion detection can continue, however if Z66 is OFF, then don't motion detect.
I have two devices, they are Z19 and Z20 which are essentially occupancy devices, which turn on when me and my wife and close to home. Since they are not through Doomotion though I am a little confused.
I have another device, which is Z66 which I want to make an overall occupancy virtual device, and use in my events to control motion sensors etc. Could someone help with a script that would turn on Z66 if devices Z19, and / or devices Z20 are set to on. And when they are both off, then the Z66 device would become off.
So the conditions would be either:
Z19 Is ON, but Z20 is OFF = Z66 ON
Z19 Is ON, but Z20 is ON = Z66 ON
Z19 Is OFF, but Z20 is ON = Z66 ON
Z19 Is OFF, but Z20 is OFF = Z66 OFF
That way in my coding for motion detection, if Z66 Is ON, when motion detection can continue, however if Z66 is OFF, then don't motion detect.
Comment