by piquadrat · 6y ago · 0 comments
https://github.com/custom-components/pyscript https://hacs-pyscript.readthedocs.io/en/stable/tutorial.html...
This is a great software, bit it is really distinct from HA and simple automations require quite a bit of code anyway.
I was thinking about having a mixed mode: the very simple automations (covers up at 9:00) would go into the YAML and more complicated would use the Python scripting described here: https://www.home-assistant.io/integrations/python_script/ (also from automations, but the real work would be done in the script)
Now I see with your comment that there is a HACS component as well - have you compared both and chose one of them for some specific reason?
It looks like a very good solution for more complicated automation (and for simple ones as well, it is just two lines)