weird
in-sympathy opened this issue · 4 comments
Hi. I use this plugin to either start or stop motion service on my pi. The weird thing I encountered is that if for example I turn the switch on everything works just fine but if I won't close Home app on iPhone and won't turn it to standby mode and open Home app on iPad or Mac - the switch will immediately turn off for no obvious reason. At the same time if I only use one device and even if I turn the switch either on or off, completely close the app and reopen again - the state of the switch would be retrieved properly.
wrong - if I turn the switch on, close the Home app on iPhone and then open the app again - it will turn the switch off at launch and show it as off therefore instead of getting it's state and displaying it
the weirdest thing is that it will do this sometimes and sometimes it will display the state properly...
my bad - the sh script I used as On script did not reach the line echoing into the file, so the file wasn't created most of the time. I fixed that and now it works perfectly fine
Glad you found the issue.
I've run into a bunch of strange behavior with my scripts to control an old RPC3 pdu.
Have had to triple check my scripts when this odd behaviors have happened.