I can relate to that.   I asked myself, long ago, what is the safest way to control a device? Then I saw some posts regarting the "dead" status of a device, and how to get out of that. They detection of failure is the 'log' property, something you don't see often used on the forum! This script works best if you have a mains operated device that you can power on and off.   I wanted to use that script in production, but I never did. At the moment, I can live with the