Page 1 of 1

sending switch commands for switch type 'binary_sensor' is not supported

Posted: Friday 17 November 2023 17:42
by zoll38
Hello All,

I have domoticz latest official build with MQTT Auto Discovery running on a Ubuntu box together with Zigbee2mqtt and mosquito. I recently updated my zigbee2mqtt install to the latest version in order to get more supported devices from the herdsman converters, and since then, one type of the zigbee sensors that I am using is throwing this error message when detecting a movement:

Error: MQTT General Zigbee: sending switch commands for switch type 'binary_sensor' is not supported (yet...)

It seems that Domoticz is trying to send a zigbee command to the device. Not sure why and not sure what I can do to avoid this error. I searched in the forum and didn't find any interesting information so far.

I didn't get this error prior to update zigbee2mqtt and I don't have this issue on other motion sensors.

Any idea from anyone? Is it a known issue?

Thanks a lot.

Re: sending switch commands for switch type 'binary_sensor' is not supported

Posted: Sunday 19 November 2023 14:27
by gizmocuz
If you create a github issue, also mention this here

Re: sending switch commands for switch type 'binary_sensor' is not supported

Posted: Monday 20 November 2023 6:34
by zoll38
I created a github issue and got an explanation on the issue.

Re: sending switch commands for switch type 'binary_sensor' is not supported

Posted: Monday 20 November 2023 11:39
by waltervl
For future reference: The issue was because of an Off Delay that was specified on the Domoticz device (a Motion Sensor) that should not be done for this type of devices. It triggers an off command to be sent back to Zigbee2mqtt which then gives this error as it is not allowed for Motion sensors.
https://github.com/domoticz/domoticz/issues/5880