#25 Cannot connect to serial-port

Otwarty
otworzone 1 rok temu przez chrism0dwk · 4 komentarzy
chrism0dwk skomentował 1 rok temu

Hi there,

I'm running home-assistant-snap inside an LXD container. I've recently purchased a SkyConnect Zigbee controller which I wish to hook up to HASS.

I've set up serial-port passthrough in LXD, and inside the container I can list the serial device as /dev/ttyUSB0 with 666 permissions.

root@homeassistant:~# ls -l /dev/ttyUSB0
crw-rw-rw- 1 root root 188, 0 Apr 29 18:29 /dev/ttyUSB0

HASS doesn't auto-detect my SkyConnect, but if I manually try to add it via the Zigbee Home Automation device, it is shows in the list as /dev/ttyUSB0 - SkyConnect v1.0, s/n: 9ccaf1470741ed11acce7ea7ccf2b06c - Nabu Casa. I then choose EZSP, and then try to connect to the device on dev/ttyUSB0.

Unfortunately, I get a cannot_connect error (in the browser, nothing in the logs).

I have followed the instructions at the bottom of the home-assistant-snap webpage, including setting experimental.hotplug=true. However, when I run

root@homeassistant:~# snap connect home-assistant-snap:serial-port

I get the error

error: snap "snapd" has no "serial-port" interface slots

Indeed, snap interface serial-port gives

name:    serial-port
summary: allows accessing a specific serial port
plugs:
  - home-assistant-snap

Is there anything further I can try, I wonder?

Very many thanks,

Chrism0dwk

Hi there, I'm running `home-assistant-snap` inside an LXD container. I've recently purchased a SkyConnect Zigbee controller which I wish to hook up to HASS. I've set up serial-port passthrough in LXD, and inside the container I can list the serial device as `/dev/ttyUSB0` with 666 permissions. ```bash root@homeassistant:~# ls -l /dev/ttyUSB0 crw-rw-rw- 1 root root 188, 0 Apr 29 18:29 /dev/ttyUSB0 ``` HASS doesn't auto-detect my SkyConnect, but if I manually try to add it via the Zigbee Home Automation device, it is shows in the list as `/dev/ttyUSB0 - SkyConnect v1.0, s/n: 9ccaf1470741ed11acce7ea7ccf2b06c - Nabu Casa`. I then choose EZSP, and then try to connect to the device on `dev/ttyUSB0`. Unfortunately, I get a `cannot_connect` error (in the browser, nothing in the logs). I have followed the instructions at the bottom of the [home-assistant-snap](https://snapcraft.io/home-assistant-snap) webpage, including setting `experimental.hotplug=true`. However, when I run ```bash root@homeassistant:~# snap connect home-assistant-snap:serial-port ``` I get the error ```bash error: snap "snapd" has no "serial-port" interface slots ``` Indeed, `snap interface serial-port` gives ``` name: serial-port summary: allows accessing a specific serial port plugs: - home-assistant-snap ``` Is there anything further I can try, I wonder? Very many thanks, Chrism0dwk
Joachim Marthinsen Giæver skomentował 1 rok temu
Właściciel

Hi,

Does your stick provide a serial-port? I think the command to list it is sudo snap interface serial-port

If you find your stick there, you have to connect HA and the sticks serial-port, e.g

sudo snap connect home-assistant-snap:serial-port <device>:serial-port

It's not guaranteed that there is a serial-port available for it.

Hi, Does your stick provide a serial-port? I think the command to list it is `sudo snap interface serial-port` If you find your stick there, you have to connect HA and the sticks serial-port, e.g ``` sudo snap connect home-assistant-snap:serial-port <device>:serial-port ``` It's not guaranteed that there is a serial-port available for it.
chrism0dwk skomentował 1 rok temu
Autor

Thanks Joachim. As above, I don't see the (serial) port listed in sudo snap interface serial-port, which is why connecting the HA snap to it fails.

I guess this is a snapd issue, rather than an issue with home-assistant-snap, then?

Chris

Thanks Joachim. As above, I don't see the (serial) port listed in `sudo snap interface serial-port`, which is why connecting the HA snap to it fails. I guess this is a `snapd` issue, rather than an issue with `home-assistant-snap`, then? Chris
chrism0dwk skomentował 1 rok temu
Autor

Joachim, I found your post detailing how to set up a LXD USB-passthrough here. This completely worked for me, and I wonder if it's worth signposting for others with a link at the bottom of the home-assistant-snap page on Snapcraft.io?

Many thanks for the other post!

C

Joachim, I found your post detailing how to set up a LXD USB-passthrough [here](https://github.com/zwave-js/zwave-js-ui/issues/1133#issuecomment-844539442). This completely worked for me, and I wonder if it's worth signposting for others with a link at the bottom of the `home-assistant-snap` page on Snapcraft.io? Many thanks for the other post! C
Joachim Marthinsen Giæver skomentował 1 rok temu
Właściciel

Hi,

Thank you very much for reporting back on this. I somehow can't remember that I've even looked into that earlier.

I probably should consider setting up a wiki with QA, that I can link to.

Hi, Thank you very much for reporting back on this. I somehow can't remember that I've even looked into that earlier. I probably should consider setting up a wiki with QA, that I can link to.
Zaloguj się, aby dołączyć do tej rozmowy.
Brak kamienia milowego
Brak przypisania
2 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.