You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just posting this in case someone comes across the same issue that I did.
I'm running Home Assistant with the container version on a Linux machine. I have a serial to USB connection from a 15K direct to home assistant machine. In order for this to function correctly the HA container needs to have access to the host serial port (in my case ttyUSB0). There are a number of ways to do this as discussed in the posts below.
I use docker compose so I had to make the following adjustment to my docker compose yaml file:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /dev:/dev
As the articles mention, there are other more secure ways to do this.
Of note, I had the HA container setup as privileged before making this change which I thought was enough, but I was not able to get the serial reads with that alone.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just posting this in case someone comes across the same issue that I did.
I'm running Home Assistant with the container version on a Linux machine. I have a serial to USB connection from a 15K direct to home assistant machine. In order for this to function correctly the HA container needs to have access to the host serial port (in my case ttyUSB0). There are a number of ways to do this as discussed in the posts below.
https://stackoverflow.com/questions/24225647/docker-a-way-to-give-access-to-a-host-usb-or-serial-device
https://www.losant.com/blog/how-to-access-serial-devices-in-docker
I use docker compose so I had to make the following adjustment to my docker compose yaml file:
homeassistant:
container_name: homeassistant
image: "ghcr.io/home-assistant/home-assistant:stable"
volumes:
- /dev:/dev
As the articles mention, there are other more secure ways to do this.
Of note, I had the HA container setup as privileged before making this change which I thought was enough, but I was not able to get the serial reads with that alone.
Beta Was this translation helpful? Give feedback.
All reactions