I have a number of X-10 motion sensors that I use with DooMotion for determining location occupancy. They are both inside and outside the house. I have a script that needs to know the location of the last motion inside the house. Any suggestions on how to do this?
I figured I could do this with a support script that would be triggered when the DooMotion LastMotion device value/status changed. I would examine the value of the device string and then store that new value in a vurtual device (last indoor motion), if the value was not one of the strings that represented an outdoor sensor.
Unfortunately, I discoverd that HS won't trigger my event when the LastMotion device changes its string. I tried both "Device Status Change" and "Device Value Change" for the triggers. But perhaps those values aren't updated if only a device string changes?
Anyway, I could have my script be triggered every 30 seconds. But that's not clean nor does it always work. So I'm wondering is there a better way to do this?
Thanks!
Bob
I figured I could do this with a support script that would be triggered when the DooMotion LastMotion device value/status changed. I would examine the value of the device string and then store that new value in a vurtual device (last indoor motion), if the value was not one of the strings that represented an outdoor sensor.
Unfortunately, I discoverd that HS won't trigger my event when the LastMotion device changes its string. I tried both "Device Status Change" and "Device Value Change" for the triggers. But perhaps those values aren't updated if only a device string changes?
Anyway, I could have my script be triggered every 30 seconds. But that's not clean nor does it always work. So I'm wondering is there a better way to do this?
Thanks!
Bob
Comment