#25 Cannot connect to serial-port

開啟中
chrism0dwk1 年之前創建 · 4 條評論

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

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 評論 1 年之前'
發佈者

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 評論 1 年之前'
發佈者

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

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.
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
未指派成員
2 參與者
正在加載...
取消
保存
尚未有任何內容