Closed pa-wills closed 4 years ago
So, the last person leaving the house automation failed to fire.
This is an interesting take:
https://community.home-assistant.io/t/how-to-debug-automation-trigger/131498
OK, so I reckon I have it working now.
The trick was to create a binary_sensor that returned a boolean based on whether Emma OR I were home, and then run the automation triggers from that. I still should have been able to get it to work with logical ORs, but at least this now works, and it's clean.
The other thing was - case-sensitivity of the sting literals 'True' and 'False'. It matters. That was actually the final bug.
So, monitor for a couple of days, and then I should be good to merge.
I've merged to master, and released. Issue can be closed.
I think all of the time-based Automations should now be working.
It should now be a matter of sorting-out the two presence-based automations.