pa-wills / Home-Assistant-Config

This is my Home Assistant config repo. Just yamls at this very early stage.
0 stars 0 forks source link

Replicate HomeKit automations onto HA #22

Closed pa-wills closed 4 years ago

pa-wills commented 4 years ago

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.

pa-wills commented 4 years ago

So, the last person leaving the house automation failed to fire.

pa-wills commented 4 years ago

This is an interesting take:

https://community.home-assistant.io/t/how-to-debug-automation-trigger/131498

pa-wills commented 4 years ago

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.

pa-wills commented 4 years ago

I've merged to master, and released. Issue can be closed.