- Posted on
Thu Sep 28, 2017 2:13 pm
-
Colly
offline
-
- Posts: 535
- Joined: Jan 16, 2016
- Location: Ireland
I'm looking for a temporary work around. I have a morning trigger that starts when my motion sensor activates at the bottom of the stairs between 6:30 @ 8:30. This turns on lights and also my Kitchen Sonos. The problem I have is that due to the Sonos plugin regularly not displaying the correct status - sometimes it shows stopped when it is actually playing (the plugin needs a restart to catch up) I end up getting a restart of the Sonos Play One, this causes the radio to be interrupted momentarily everytime the sensor is triggered. Until the Sonos plugin is updated I would like to only run this trigger once in the morning and then deactivate until the next morning to avoid the Sonos being interrupted. What is the easiest way to do this? At the moment I can't rely on the playing status of the Sonos to trigger a separate action. My thoughts were I'd have a variable that gets changed to True on first trigger each day and then gets reset at a later time. This variable would then be a condition for any subsequent triggers. Is that a good approach? Is there a more straightforward way?