AppDaemon UART Privileged

How to run a python script in AppDaemon and reach UART ports on the raspberry pi.

My raspberry pi devices folder contains, /dev/ttyAMA0 this by enabling uart in the boot config and pick correct overlay.

However appdaemon can’t see the port/device. Tried ‘enable_uart’ and ‘privileged’ in the /mnt/data/supervisor/addons/git/a0d7b954/appdaemon/config.json file. But this looks like it has no effect.
Any help or pointers are welcome.

Not sure if this is any help, but it looks like you are running appdaemon as an add-on to hass.io (Now renamed Home Assistant) and the shell only sees the container environment, not the host environment. You would need to ssh out to the host first by configuring ssh keys. I am running HA and Appdaemon in separate docker containers and followed this approach to access the host. I am however not running hassio, but it should be the same procedure, i.e. break out of the container first.

Hi Tomas, thank you for your feedback. I have set up access to the OS via SSH, I can access anything from OS level. However adding enable_uart and priviliged to the addon config in /mnt/data/supervisor/addons/git/a0d7b954/appdaemon/config.json does not have any effect. I was wondering if I was changing the addon config in the wrong place?