I really love this plugin. I use it to control awnings and groups of devices… but I learned the bad way, the directory /tmp/ is not the right one to touch and check for existence of files test -e /tmp/awningOpen as if the Raspy is rebooted, all the files there are deleted and it makes your buttons get the wrong state… So I moved this control files to /var/free/ and gave that directory a 777 mode so both homebridge and pi users and whatever other user intervening in the files existence can delete (rm -f /var/free/awingOpen) and touch them without linux errors…
I really love this plugin. I use it to control awnings and groups of devices… but I learned the bad way, the directory
/tmp/is not the right one to touch and check for existence of filestest -e /tmp/awningOpenas if the Raspy is rebooted, all the files there are deleted and it makes your buttons get the wrong state… So I moved this control files to/var/free/and gave that directory a 777 mode so both homebridge and pi users and whatever other user intervening in the files existence can delete (rm -f /var/free/awingOpen) and touch them without linux errors…