Skip to content

Bad examples #10

Description

@juanfal

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…

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions