Hi OpenHab community.
Running OpenHAB 4.3.2 on Pi 5 with a Sonoff Zigbee dongle.
And now starting to migrate to Zigbee2MQTT with a second Sonoff Zigbee dongle.
Mainly because there are MUCH more information and device setup in Z2M than in the OH Zigbee binding.
I have noticed a behaviour of the MQTT binding (or of Zigbee2mqtt, I don’t know which) that is worse that the native Zigbee binding.
With the OH Zigbee binding,
When a PowerOutlet switch Item is set to On (or Off, but lets take On for simplicity), the Item status gets feedback from the device.
Visually, the PowerOutlet Item icon in OH shows a GREEN led if the device has actually changed to On.
But if the On command doesnt succeed (AFAIGuess probably due to Zigbee network problems), the Item’s status remains Off, the led RED, and quite soon, the thing will go Offline.
With the OH MQTT binding,
When a PowerOutlet switch Item is set to On the OH Item icon immediately changes GREEN On, even if I have previously unplugged the PowerOutlet device.
And the Thing will not go Offline untill the Zigbee device availability parameter timeout pops (10 mn AFAIK).
Zigbee2mqtt actually detects that the command didn’t succeed.
z2m: Publish ‘set’ ‘state’ to ‘POxx’ failed: ‘Error: ZCL command 0xhh/1 genOnOff.on({}, {“timeout”:10000,“disableResponse”:false,“disableRecovery”:false,“disableDefaultResponse”:false,“direction”:0,“reservedBits”:0,“writeUndiv”:false}) failed (Timeout - 43942 - 1 - 157 - 6 - 11 after 10000ms)’
But either this doesn’t come to the OH MQTT binding, or the OH MQTT binding ignores it.
Edit: I can stop Zigbee2mqtt service, OH still behaves the same.
On => Status ON/Green.
Off => Status Of/Red.
This means (IMHO) that OH doesn’t wait for a feedback after the command.
To resume:
With OH Zigbee binding, there is a reliable and visible feedback of the commands result.
This is quite important to check that distant devices work correctly. Particularily the thing going Offline that can be used to Alarms.
With MQTT binding, the command works, or not, but there is no feedback.
Sorry being a bit long for this description.
My question of course is: is there a way to have Zigbee2mqtt (or the OH MQTT binding, whatever) provide synchronous feedback for the commands.
Thank you for your help and regards.