Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hass.io - /dev/serial not exposed within homeassistant docker #867

Closed
ghost opened this issue Dec 27, 2018 · 9 comments
Closed

hass.io - /dev/serial not exposed within homeassistant docker #867

ghost opened this issue Dec 27, 2018 · 9 comments
Labels

Comments

@ghost
Copy link

ghost commented Dec 27, 2018

@BaQs commented on Dec 27, 2018, 7:06 PM UTC:

Home Assistant release with the issue:
hassio v 1.4.0
home assistant v0.84.6

Last working Home Assistant release (if known):
none

Operating environment (Hass.io/Docker/Windows/etc.):
raspberry pi - hassio official image

Component/platform:
z-wave usb dongle
rfxtrx (rfxcom) usb device

Description of problem:
As I want my installation to be reboot-proof, I changed /dev/ttyUSBx or /dev/ttyACMx to /dev/serial/xxx

but /dev/serial is not exposed within homeassistant's container.

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

zwave:
   usb_path: /dev/ttyACM0
  #  device: /dev/serial/by-id/usb-0658_0200-if00
   network_key: !secret zwave_network_key 

rfxtrx:
   device: /dev/ttyUSB0
  #  device: /dev/serial/hoby-id/usb-RFXCOM_RFXtrx433_A1K5NSX-if00-port0
  #  debug: true

Traceback (if applicable):

Additional information:

This issue was moved by frenck from home-assistant/home-assistant#19609.

@bobzer
Copy link

bobzer commented Feb 12, 2019

Would love to see this fix
maybe just add :
str(self.sys_config.path_extern_share):
{‘bind’: ‘/dev/serial/by-id’, ‘mode’: ‘rw’},
to homeassistant.py at line 74 ?

@WaaromZoMoeilijk
Copy link

@bobzer Where would this fix go on hassio running on an ubuntu VM? I have multiple homeassistant.py's

@bobzer
Copy link

bobzer commented Mar 9, 2019

@WaaromZoMoeilijk
Copy link

Thank you sir,

I found that this also works (without exposing /dev/serial... weird, is does work when i specify the /dev/serial/by-id/device in hass)
#911

Also applied your fix, should be a success ^^

@stale
Copy link

stale bot commented May 8, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 8, 2019
@pvizeli
Copy link
Member

pvizeli commented May 9, 2019

@ezraholm50 yes, udev is running inside home assistant container and create such folders

@stale stale bot removed the stale label May 9, 2019
@KennethLavrsen
Copy link

I do not understand why this is marked as wontfix. The /dev/serial is NOT exposed inside the home assistant container. When I do a SSH to the container it is not listed in ls /dev
And it is not shown when you look at the hardware button popup under the hass.io->system tab
I have two serial devices and sometimes one gets recorded before the other and end up as ttyACM0 or ttyACM1. The right and easy way to do it in Ubuntu land is to use the symlink under /dev/serial/by-id but these are not exposed to Home Assistant. I have seen this requested many times in the forum and noone ever found a way to fix it. There is a very good reason to fix this

@jtscott
Copy link

jtscott commented May 22, 2019

Agreed with @KennethLavrsen

@stale
Copy link

stale bot commented Jul 21, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 21, 2019
@stale stale bot closed this as completed Jul 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants