I am totally new to this. I just followed the guide: Raspberry Pi - Home Assistant including buying the hardware mentioned in the guide, as well as the RaspBee II from Dresden Elektronik along with two Aqara sensors, to start with.
My problem is that I cannot get it to work at all.
I have followed the guides to the letter, but to no avail.
For troubleshooting I have gone through all the forum-articles I could find, changing one thing at a time (which is a pain being a mac-user (there should be an option to edit the config.txt directly from the webgui).
I think I might have the correct setting in config.txt now, although I cannot confirm it, as nothing works. I have a /dev/ttyAMA0 and a /dev/ttyS0 to choose from, as a result of these settings:
enable_uart=1
dtoverlay=pi3-miniuart-bt
I have the deCONZ addon installed but I cannot do anything in it. In the deCONZ vnc app, I can click the connect button, it fades gray for 3 seconds then comes back.
The PhosCon settings under advanced says:
Version: 2.11.05 / 5/9/2021
Firmware: Not connected
As for integrations I have tried both deCONZ and ZHA, with no luck at all.
deCONZ integration: It wants a host ip and port. I gave it none when installing the add-on, so is it just the ip of the host that the webgui of HA runs on or the IP the add-on reports in the top right corner?
Either way, neither works when I am to “link with deCONZ”. It just ends with “Couldn’t get an API key” every time.
ZHA integration: This just ends in “Failed to connect” no matter which serial device I choose.
Can someone help me out?
Best regards
Ian
<‘frustration>
I thought this was going to fairly easy to get up and running, but having spent many hours painstakingly trying each suggestion I could find, one at a time, only to ram my head into the wall every time, I am not impressed at all. There is way too much fiddling around with text-files and modules/add-ons/integrations to be anything near smooth or easy.
I am about to give up on the whole thing and just throw it all in the trash!
<’/frustration>
My raspbee II replace the Xiaomi GW and the Philips Hue, I am very pleased.
I beg the question though, why put a config.txt file in the root that cannot be reached by ssh or a samba share? I borrowed a PC to be able to reach the root directory.
@nomad.dk I wanted to thank you for documenting your solution. You saved me a few good hours of work on this. My setup is the same as yours:
HA OS install on Raspberry Pi 4
RaspBee II / 2 physically on GPIO of RPi4
deCONZ setup on /dev/ttyAMA0, but Phoscon UI unable to see firmware in Gateway details, and unable to detect any devices
I have skipped the ssh path to edit the boot partition config.txt file and just pulled the SD card, and edited the config.txt file using Notepad++ in Windows. Added only one line: dtoverlay=disable-bt
Boot back up and everything works now. Only anomaly is, now there is a new hardware called /dev/ttyS0.
Best I can describe why this works, is I’ve seen some reference that pins 8 and 10 are used by Bluetooth. These are pins that the Raspbee 2 uses, among others.
On my Raspberry Pi 4 running Home Assistant the only things I had to do were really
In config.txt have enable_uart=1
Use /dev/ttyS0 as the device for the integration. I have used ZHA and Zigbee2mqtt
There has not been any need to disable bluetooth and I’m using bluetooth based devices and integrations with Raspberry’s internal bluetooth. No issues there.
Once the installation is done make sure you are not causing any troubles with other devices you might be having. Due to radio interference it has been suggested to run any other wireless devices like mouse/keyboard receivers with some USB extension cord. Also, try to avoid overlap with WiFi channels ZigBee and Wi-Fi Coexistence | MetaGeek