Did you ever find out any more about this? I have used appdaemon for over 5 years and gave pyscript a try for a month or so for some basic stuff. I liked the simple nature of the syntax for pyscript but like the full python environment that appdaemon provides.
Appdaemon:
- Rock solid for 5 plus years
- Good dev environment for vs code since it uses pure python
- Have to use yaml to reference every python app
- A little more verbose and more code with having to first initialize your listener than use a callback
- Has its own forum so its a great place to find info and ask the community
Pyscript
- Simple syntax
- No yaml
- The listener is just a decorator with your “action” code write beneath it
- Difficult dev environment when using vs code, that is if you don’t like syntax errors all over the place
- The dev seems to prefer to use Jupyter Notebook to create code, then just paste it into your app. I personally prefer just to use vs code which results in no autocomplete, no peeks, no method lists and a lot of syntax errors
- Little more cumbersome to test as you have less control over the logs, still pretty easy as you just use the home assistants log but appdaemon allows you write to your own log files.
- Could be me but I’ve had a couple of occasions when my code gets stuck and does not update with changes until I restart home assistant.
- No dedicated place to ask questions.
If you want the most authentic python with IDE debugging, you can install appdaemon as a package in your venv and develop there then bring your code into the app when finished… see here HA automation in Python from a developer’s POV - Community Guides - Home Assistant Community (home-assistant.io). Pretty sweet if you are good with appdaemon’s framework and syntax.
I guess I am still looking for the python home automation unicorn in home assistant! Right now, I am using both Appdaemon and Pyscritpt and cannot decide which I like better.