I am working on my own HA addon using a Docker container (as per the official howto) it involves three shell scripts. Everything is working fine on that side so I am trying to get to my next step of developing a service that can be called on a regular basis. I have created a custom_component directory that gets copied across during the addon install. it has the following
__init__.py
manifest.json
myaddon.py
service.yaml
The service shows up ok and I can call a function (within myaddon.py) as far as I can tell (no errors) but I have no way to determine if it is working (as designed) as the print(“some text”) function does not write to the addon log output or the HA logs. Is there a way I can output some debug or other info to logs somewhere? I assume this has to do with the fact this is run in a Docker container.
Thanks,
Pete.