I notice that you can use Ping as an action in a Rule. Has anyone got an example of this they could screenshot? I can see how to create the action (send the ping) but not how to act further on the result.
I've got a rule that sends a wake on lan packet to my NAS, when either a virtual switch is turned on or my Harmony 'Watch Apple TV' activity is On. When the virtual switch turns off, or the Harmony activity changes, it sends a shutdown command. I don't get any feedback from that shutdown so want to use a rule to ping the NAS as the result will let me know for sure whether it is on or off (allowing me to repeat the wake/shutdown if needed)
Good example thanks. It's mainly to confirm that my device (NAS) has shut down. After my shutdown command I'll add a wait for elapsed time (30 seconds ish) before the ping command and setting the variable. I'll have it exit the rule if the value is 100 but re run the shutdown command if not.
@kahn-hubitat I take it you have some other rule that this one is linked to - or is there some app that runs the ping?
Not that I'm an expert, but I'd work down from obvious stuff to the more esoteric, just to make sure the darn thing works. Or at least send you a notification if it does trip.