I cannot get one of my automatons to work correctly. I’m trying to get an input_boolean to indicate if someone is home or not. I have 2 groups, people (with device trackers) and occupancy (motion sensors). Those groups seem to be working correctly (i believe). The problem is turning on/off the input_boolean.
My conditions in the automation do not appear to have any effect on the automation. If i trigger it manually it always performs the actions (turning on/off the input_boolean). Per the documentation “When a condition does not return true, the automation will stop executing.” To simplify the debugging i just use 1 group shown below
Isn’t there something missing in the trigger? You have the entity but you do not say which of its states will set the automation off. This will work if you execute it manually, but otherwise there is nothing to start it running.
I’ll change it. I thought i read somewhere that it would catch all changes.
I’ll rewrite it with conditions in the trigger and see how it goes.
Regardless when i hit execute shouldn’t it check the current condition to ensure it matches the rule before executing the action? It would be nice to be able to test it
To test an automation there’s three stages you can follow. Testing the action, the condition and action, and the whole automation:
Use Developer tools → States to find the automation, click and then push Execute. If this fails your problem is in the action: section, and details should be found in your log file
Use Developer tools → Services and call automation.trigger on the automation with skip_condition: false . If the first passes but this fails then the problem is in your condition: block
Use Developer tools → States to find the trigger entity, click the name, then change the state (at the top) to something that’ll trigger the automation before pushing Set State . If this fails then the problem is with your trigger: section.