Itâs Broadlink TC2, Manually it works fine also from the HASS interface it truns on and off without any issues, the issue only happens with this automation
Can you see that the automation is triggering in your logbook?
Your condition statement is an and so group.g_shai_tracker and group.g_alina_tracker have to be home for it to fire. If any one of the devices within those groups has switched to not_home the entire group will be not home and the automation will not execute.
I know, the condition is met, i also tried removing the condition but still the same sometimes it works and sometimes not and i can see it in the logbook, I did several tests i turnd on twice when it tdetected motion the third time it didnât no patternâŚ
Thanks, I added the quotes, but still the same i just walked around the pir detector 3 time the light didnât turn on just at the fourth time, maybe itâs a network latency issue
Review your logbook. You should see the PIR sensor turn on 4 times and the automation trigger 4 times. If the PIR sensor isnât triggering each time you have a seperate issue and not an automation issue. If your PIR is triggering 4 times but the automation didnât trigger 4 times there is something holding it up.
The logbook is very helpful when diagnosing automation issues, however, if not trimmed down it can be a lot to sift through to get the data you want.
But it should generate an error without the proper formatting and I donât understand why it isnât. If it isnât something is wrong as that formatting error should be excepted and caught. So thatâs a bug for sure.
Remember there are three parts to this - the trigger, the conditions and the service. You can trigger it manually all day long, but if the conditions arenât being met properly it wonât pass on to the trigger. So I think this could still be a contributing cause. Just sayin.
Again, I am personally more interested in why your formatting doesnât generate an error. It should. And that is cause for a bug report IMO.
I tried your suggestion it works exactly the same as the syntax i used, the trigger triggers but it look like it doesnât call the service the weird thing is when i manually click the automation trigger it executes and the light turns on