cool. although the link does not get me anywhere I can see your code.
Anyways I was more interested how you got this working on the home-assistant end. Since my automations are slow and I think too complicated. So your app-daemon approach is probably much more elegant.
Thanks