I want to put both of them on my RaspBee2 at the same time but once I run both one doesn’t work eg if ZHA is running I will get a 502: Bad Gateway error upon loading the Z2M interface.
They both run on that port /dev/ttyS0. (If I understand correctly there’s another port available on the RaspBee 2 called /dev/ttyAMA0 but it doesn’t work for either ZHA or Z2M for me)
How do I change that?
You don’t, the integrations cannot share a single coordinator. You can run both integrations if you have a separate coordinator for each of them.
unfortunate
do you have a suggestion for another kind of minimalistic all in one box setup with no large USB dongles hanging out?
Why do you need both?
z2m because you can costumize the report intervals there which I need for my thermostat
and ZHA because of the better speed for toggling lights (need to test it yet)
I don’t believe that is true.
I concur with @Ars4l4n point. As many times as I say I believe Zigbee2MQTT is a better overall zigbee solution than ZHA. I do give props to ZHA for being faster of the two. The event based message of ZHA can create noticeably faster actions vs. Z2M actions going via MQTT and sensors/switches. I noticed it first when I was trying to setup the Lutron Aurora dimmers, best was a direct zigbee binding between the dimmer and the lights, 2nd was ZHA and 3rd Z2M kind of struggled to keep up with the messages. The ‘gold standard’ of this comparison was a analog dimmer and incandescent bulb, all three ‘digital’ solutions could not match the human perception of instant response of 'old school twist of the wrist speed of light '. More than handling fast paced messages, the path of a single action is better for both direct zigbee and ZHA. This was tested on a Intel i7 box running both HA and Mosquitto MQTT. Perhaps with the new events options for MQTT in the recent HA releases, Z2M performance might improve.
I am happy to stand corrected. I have no problem with the speed of my Z2M setup, but it looks like you have done more testing than me.
As is always good to note: just one ‘data’ point and not as ‘science the out of it as it deserves’ but it did put me on my heels.
Back to Arsalan’s question above. I don’t think there is any all-in-one metal box that would offer two zigbee antennas (with one for ZHA and the other for Z2M).
That said, maybe the solution is to build a bigger minimalistic enclosure, or somehow route the USB cable inside the enclosure, so that everything would stay inside one “box” …?
I am not joking.
so that would be a bit of a DIY thing
I mean fair enough as a last resort solution
Is it possible to stack those raspbee2 devices? (to be sure, I don’t know whether two zigbee co-ordinators in so close together would work)
You can’t have both on a single coordinator, but you could mimic z2m partially by creating an automation to read “state_changed” events of specific entities and call service mqtt.publish.
So everytime a state is changed, a mqtt topic will be published.
If this is the core of the problem. Then you’re solving the wrong thing.
Make ZHA support your device. Look up custom quirks and figure out how to make ZHA use the reporting you need. That’s exactly what they’re for, to adjust behavior of a device when the provided manufacturer support is… Off.
See if you can change the reporting period for that device. (no i dont know how to do it.)
Engineering a way to run both to work around something the software supports is… Problematic at best.
Unless ZHA does something to actively override you’re settings, you should be able to set the interval. It would have to be done from the “Manage Zigbee Device” clusters dialog, or a script with the equivalent service calls.
Alternatively, I think ZHA Toolkit also has some functionality for this.
how do I access the “Manage Zigbee Device” clusters dialog?
or install the ZHA tooltip without having the HACS store? I don’t really get the installation instructions
I tried copy pasting the installation commands into the HA command line & SSH addon, all in one as well as the first 3 lines separately + all within the brackets at once but it didn’t work
#!/bin/bash
# To update / install :
cd config || exit
(
mkdir -p custom_components/zha_toolkit
cd custom_components/zha_toolkit || exit
rm zha-toolkit.zip >& /dev/null
curl -s https://api.github.com/repos/mdeweerd/zha-toolkit/releases/latest \
| grep "browser_download_url.*/zha-toolkit.zip" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
unzip -o zha-toolkit.zip
rm zha-toolkit.zip
)
I’m getting the error:
As for install, I use HACS, and would encourage the same. The Toolkit is updated often and HACS can track/install the updates for you.
hi, I don’t have a “Manage Zigbee Device” menu entry but a “Manage Clusters” one in my version of HA.
I assume that’s the one you’re referring to
For some reason this doesn’t offer a reporting interval cluster or cluster attribute for my Thermostat which is in line with what people in another thread about this thermostat in conjunction with ZHA had said
Regarding HACS, it says on its’ website I’m supposed to use a very new HA version to use it. Does that mean I have to regularly update HA to be able to keep using HACS apps or can I just download the ZHA toolkit from there and be fine?
It is best practice to update regularly anyway. But if you don’t, you just won’t be able to update HACS at some point.