This is my first try to use home assistant, so I am very new to it.
I installed HomeAssistant on my Raspberry Pi with HA OS and Supervisor.
So far, the OS is working fine.
To connect some ZigBee devices, I bought the RaspBee 2 (RaspBee II Installation).
I plugged it onto the pi, rebooted and thought ‘here I go’. I tried hto add the integration for ZHA. According to this (Zigbee Home Automation - Home Assistant), I selected the only available serial device path (/dev/ttyAMA0) and let the ZHA try detecting the radio type, which failed. So, I selected the ‘deCONZ’ radio type and typed manually the serial device path ‘/dev/ttyAMA0’. So, it says ‘connection failed’.
So, I tried to install the deCONZ Add-On, where I also selected the /dev/ttyAMA0 device because its the only one selectable.
With debug, the log says the following:
Log
s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] firmware.sh: executing...
[10:08:58] INFO: GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh
Path | Vendor | Product | Serial | Type
-----------------+--------+---------+------------+-------
/dev/ttyAMA0 | 0x0000 | 0x0000 | | RaspBee
[cont-init.d] firmware.sh: exited 0.
[cont-init.d] nginx.sh: executing...
[cont-init.d] nginx.sh: exited 0.
[cont-init.d] novnc.sh: executing...
[cont-init.d] novnc.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[10:08:59] INFO: Running the IKEA OTA updater...
[10:08:59] INFO: Running the deCONZ OTA updater...
[10:08:59] INFO: Running the OSRAM LEdvance OTA updater...
[10:08:59] INFO: Websockify waiting for VNC to start
[10:09:00] INFO: Starting VNC server (local/yes)...
[10:09:01] INFO: Starting websockify...
[10:09:04] INFO: deCONZ waiting for VNC to start
[10:09:04] INFO: Starting the deCONZ gateway...
WebSocket server settings:
- Listen on 127.0.0.1:5901
- Flash security policy server
- Web server. Web root: /usr/share/novnc
- No SSL/TLS support (no cert file)
- proxying from 127.0.0.1:5901 to 127.0.0.1:5900
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[10:09:11] INFO: Starting Nginx...
2021/10/20 10:09:11 [notice] 316#316: using the "epoll" event method
2021/10/20 10:09:11 [notice] 316#316: nginx/1.14.2
2021/10/20 10:09:11 [notice] 316#316: OS: Linux 5.10.17-v8
2021/10/20 10:09:11 [notice] 316#316: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/10/20 10:09:11 [notice] 316#316: start worker processes
2021/10/20 10:09:11 [notice] 316#316: start worker process 1352
10:09:11:366 HTTP Server listen on address 0.0.0.0, port: 40850, root: /usr/share/deCONZ/webapp/
10:09:11:717 dev /dev/ttyAMA0
10:09:11:717 COM: /dev/ttyAMA0 / serialno: , RaspBee
10:09:11:718 ZCLDB init file /data/.local/share/dresden-elektronik/deCONZ/zcldb.txt
10:09:12:102 parent process s6-supervise
10:09:12:102 gw run mode: docker/hassio
10:09:12:103 GW sd-card image version file does not exist: /data/.local/share/dresden-elektronik/deCONZ/gw-version
10:09:12:103 sd-card cid: 035344534c33324780ffffffff00f2d3
10:09:12:106 DB sqlite version 3.27.2
10:09:12:108 DB PRAGMA page_count: 42
10:09:12:108 DB PRAGMA page_size: 4096
10:09:12:108 DB PRAGMA freelist_count: 0
10:09:12:108 DB file size 172032 bytes, free pages 0
10:09:12:108 DB PRAGMA user_version: 8
10:09:12:108 DB cleanup
10:09:12:113 DB create temporary views
10:09:12:139 started websocket server at port 8081
10:09:12:152 [INFO] - Found file containing button maps. Parsing data...
10:09:12:182 [INFO] - Button maps loaded.
10:09:12:187 dlg action: Read binding table
10:09:12:187 found node plugin: libde_rest_plugin.so - REST API Plugin
10:09:12:195 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin
10:09:32:406 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin
10:09:33:266 dev /dev/ttyAMA0
10:09:33:539 dev /dev/ttyAMA0
10:09:33:540 COM: /dev/ttyAMA0 / serialno: , RaspBee
10:09:33:654 Announced to internet https://phoscon.de/discover
10:09:33:655 discovery server date: Wed, 20 Oct 2021 08:09:33 GMT
10:09:33:656 local time seems to be ok
10:09:34:461 wait reconnect 5 seconds
10:09:34:599 dev /dev/ttyAMA0
10:09:34:600 COM: /dev/ttyAMA0 / serialno: , RaspBee
10:09:35:511 wait reconnect 4 seconds
10:09:36:562 wait reconnect 3 seconds
10:09:37:612 wait reconnect 2 seconds
10:09:38:614 wait reconnect 1 seconds
10:09:38:746 dev /dev/ttyAMA0
10:09:38:747 COM: /dev/ttyAMA0 / serialno: , RaspBee
10:09:39:614 wait reconnect 5 seconds
10:09:39:746 dev /dev/ttyAMA0
10:09:39:748 COM: /dev/ttyAMA0 / serialno: , RaspBee
10:09:40:614 wait reconnect 4 seconds
10:09:41:615 wait reconnect 3 seconds
10:09:42:615 wait reconnect 2 seconds
10:09:43:614 wait reconnect 1 seconds
The reconnects are going on as long as the add-on is running.
I found some tutorials with Mosquitto broker or something, this seems very complicated. Isn’t there a easier way to get the ZHA integration working?
Thanks!