I have a simple sensor trigger a light turn on and wait for Clear from the sensor (from any state) and then wait 30 seconds and then turn the light of, it works almost al the time,BUT sometimes it reports sensor Clear on logbook but nothing more happens? the turn off almost never work when I go to bed for some reason??
Battery of sensor is 78%
Latest HA with all upgrades, Rpi 4 on SSD.
Light is a HUE 850Lumen color using ZHA.
Sensor is Aqara Motion Sensor P1 also ZHA.
No groups used
2 dependencies but they all work fine, they ar for turning the light on.
Time window and LUX treshoold.
its about 4 meters from the Skyconnect stick one floor up in a wooden house.
Also moved from a RPi 3 to a Rpi 4 and an SSD, still same behavior.
It has failed on other times and same in logbook, it says sensor cleared but nothing more.
In my opinion it should say failed to trigger HUExx to turn of using xx. ?
Where do I start?
I saw someone recommend changing battery. but 3V and 78% should be ok.
Soo in Trace timeline I dont get a name for the light to turn off ,its just ended.
The sensor never reports Cleared?
The runtime is 3 hours…
But if I check the loggbook its says that the sensor reports Cleared but it dont show up in Trace Timeline?
Triggered by the state of binary_sensor.lumi_lumi_motion_ac02_motion at 27 December 2023 at 03:02:08
Test Test if 2 conditions matches
Turn on <unknown entity>
(light.signify_netherlands_b_v_ltw001_light) turned on
Wait for 1 trigger
3 hours later
Turn off <unknown entity>
Finished at 27 December 2023 at 06:16:34 (runtime: 11666.03 seconds)
Logbook
Sensor hall uppe Motion cleared (no motion detected)
03:07:01 - 5 hours ago
Is something wrong? this isnt ezy understanding how to even ask a question?
Also for clarification I dont do anything in yaml since I dont know how to, just visual editor.
Start by NOT using device actions, and instead stick to state and numeric state. Because the fact that the trace timeline says it turned off something unknown, suggests that one of those devices may not exist anymore - perhaps it was factory reset and re-added or something. In any case device_id doesn’t help anyone when it comes to debugging because we have no idea what the device is.
Tnx for respons, Device should work, its there…
turned off something unknown is alos in my other automations and they rarley fail, perhaps one in hundred, the problem Is that that the automation dont continue even if the sensor reports motion cleared.
Also its a single mode action so it hangs and whont let the light turn on again since it is stuk in the last run, maybee changing mode might help…
Ill test some other mode else Ill redo it all over again.
Definitely something wrong there then, there is nothing in that automation that should prevent the automation from running again. It waits for 30 seconds. Whether it errors and stops running, or completes its run is irrelevant, nothing should stop it running again after 30 seconds.
Since I have the same automation on the stars lights I made this one the same isch, that meaning I added a group for the lights and then it didnt hang like it did before, strange but its considered fixed for me, if thers something in the update to ZHA or the Core I dont, atleast its working now, also imported the Sensor Light Version: 5.9 Blueprint and gona play with that next week, tnx all.