Hi, I have a very simple room lighting app for my garage. I have a tilt sensor on the door, when the door opens (tilts) a light turns on, when the door returns to its closed position, the light should turn off.
The issue is that sometime the light does not turn off. Looking at the logs it seems that when the 'Turn Off Event' fires, it does not always call 'off: Garage (Hue Bulb)'. Does anyone have any ideas on what the issue could be?
Turn on logging for the Hue Bulb as well. Then if you filter the log to show just app774 and the Hue bulb it may provide further info when it works/fails. In the meantime you may be able to get additional information from the Device page by clicking events. That might prove whether:
Debugging was actualy already on. The following relates to the top 3 from the OP. As you can see it is missing Command called: off on the one that fails
Patio lights turn on at sunset just fine.
10:00 PM rolls around and they get the Turn Off Event: time and it shows they get sent an off command but they do not work.
You can see I ran the "Turn Off" process inside Room Lighting at 10:03, it sent the off commands and generated the off Events as it should.
If it were just this Room I'd think it was network but there are several other Rooms acting the same way.
I'm on a C-8 Pro with version 2.3.9.201 (as it turns out this is the current version).
I was just able to replicate the failure to send the Off command one time. However, since that failure the automation has worked consistently.
I set up a simple RL automation similar yours (using a motion sensor) and the Hue bulb turned on when motion activated, but did not turn off at the time-out. The Off command was not sent after the 1m timeout which should have been at 9:16:43. I waited seven minutes and nothing else happened.
I then re-initiated motion on the sensor at 9:23:15 which added the additional log events starting at 9:23:15 below. Note the "Already Activated" entry from the previous motion instance that never turned off:
I initiated motion again and this time On and Off commands were sent and the automation worked, and since then I've been unable to make the RL auotmation fail since the first time it ran. It's been
Are you saying that the lights did not turn off at 10:03, even though they reported off? Room Lights debug logging shows events from the device itself. So, in your logs we can see the commands sent, and the lights responding.
If this is the case, then these are bad devices, and Room Lights has nothing to do with it.