Hi everybody,
after getting into AppDaemon after a lot of help in these forums, I am currently writing some test scripts to understand how things work and what I can “outsource” to AD, etc.
Is it possible to test scripts locally rather than in AppDaemon? Let me explain: I have two AppDaemon docker containers on my home server (alongside Home Assistant). The first is the initial installation, the second one a custom instance for testing only.
I’d like to run small test scripts on my local machine (so not one the home server) before actually integrating them into the main appdaemon instance.
Can I do this? So instead of these scripts running constantly, just manually run run them, see the output, change them, debug, etc., and once I am happy with how they work, transfer them to AppDaemon…
I could also create yet another docker container on my local machine, but containers make it a bit difficult to install additional libraries (well, not really difficult, but at least labor intensive); I have tried virtualenv instead, but when I did, appdaemon would never successfully initialize any new modules (not even those that are successfully running on in production).
What I currently do is hardcoding things I’d usually receive from home assistant (for example testvalue = [123, 23, 74]
) into regular python scripts, run and debug them, then integrate them into appdaemon. While this works, it requires me to rewrite my working code as appdaemon modules require a different structure (connecting, initializing) than “regular” scripts.
Sorry if this is a stupid question. Perhaps there is a much better solution that I hadn’t thought of?