I thought I was able to install required packages like this in my configuration.yaml, but apparently cannot:
python_script:
requirements:
- tplinkrouterc6u
I googled for the issue, but couldn’t find anything on the web
I’m using the original HA OS installation for Raspberry Pis, so the local console probably won’t help … at least it does not recognize the python command …
One thing you could do, is to get inside the homeassistant core container and pip install the package. Unfortunately, the package will be deleted the next time you upgrade homeassistant core. So the best thing to do is to create a shell command in HA (shell commands run within the homeassistant core container) that runs at startup and have the shell script test for presence of the package and if not there, then pip install the package.
Just be aware that this is an unsupported technique.
I mean I could in theory install the little script on a different device, like a different Raspberry Pi, and run the script from there, but I would need to be able to trigger that from HA … Could do it via SSH or something