Announcement
Collapse
No announcement yet.
Trying to create script to run after condition device state unknown
Collapse
X
-
It comes up as a trigger, see below. I did a few test events like that, and it seems to work
-
Originally posted by mikee123 View PostI have an event which sens me a message when a specific device goes into status unknown.
Leave a comment:
-
So, make a copy of your current event and change the copy to send off the command instead of sending you a message.
Take your original message sending event and change the trigger to where the trigger is if the device status is "unknown" for at least 30 seconds.
Leave a comment:
-
Trying to create script to run after condition device state unknown
I have an event which sens me a message when a specific device goes into status unknown. That event then turns my zwave PI off then on again. What I would like to do is the following though, as sometimes it does not need restarting. Sometimes sending a command changes the device to that state, and is no longer status unknown.
If the device changes to status unknown, send a off command, wait a few seconds, send a on command. If after 30 seconds the status is still unknown, run another event (which is Jon00's plugin disable/enable)
I think I need a script to do that. I can trigger the script with a trigger 'when device changes to status unknown' but not sure how to go from thereTags: None
Leave a comment: