First of all, great job!
Lots of nice stuff, but these home assistant automations are pretty hard to debug (not your fault at all).
I had the problem that the mode was always set to "off".
After a long time of trying, I found the corresponding bug and have already pointed it out in my comment here:
https://github.com/panhans/homeassistant/commit/eddb5e7e905c5db961e4b093a9160d7322749d8b#r128192969
Keep up the good work.
First of all, great job! Lots of nice stuff, but these home assistant automations are pretty hard to debug (not your fault at all). I had the problem that the mode was always set to "off". After a long time of trying, I found the corresponding bug and have already pointed it out in my comment here: https://github.com/panhans/homeassistant/commit/eddb5e7e905c5db961e4b093a9160d7322749d8b#r128192969 Keep up the good work.