Issue with changing Operation Mode on Aqara switches
What happened?
After updating zigbee2mqtt 1.34.0 all aqara switches started to return an error: Publish 'set' 'operation_mode' to 'switch.gym' failed: 'Error: undefined is not a object, got string ("decoupled")' Same information appears in Log: Error 2023-12-01 16:05:30Publish 'set' 'operation_mode' to 'switch.gym' failed: 'Error: undefined is not a object, got string ("decoupled")'
What did you expect to happen?
It supposed to change Switch mode to Decopled or Control Relay, depends on selected value.
How to reproduce it (minimal and precise)
Go to Zigbee2MQTT UI, choose any Aqara switch change Opeation Mode to Decoupled or Control Relay. See the error.
Zigbee2MQTT version
1.34.0
Adapter firmware version
20230507
Adapter
CC2652R
Debug log
I got exactly the same environment and error.
FYI: Reverted back to 1.33.2 and all is working good.
FYI: Reverted back to 1.33.2 and all is working good.
Any way to revert without backup? Forgot to backup previous version.
Same here. But adapter EZSP v8
@ant0nkr How did you revert back to 1.33.2?
@ant0nkr How did you revert back to 1.33.2?
The only way to revert back is to restore from a backup, afaik
Same here. Happened to notice it during a clean move to a new coordinator (worked in version 1.33.2).
Same. Hope this can be fixed in a new release. I use the operation mode select in a number of automations π
Fixed!
Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
Fixed!
Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
I apologize for my question, I'm new to home assistant. I canβt find the file (src/converters/toZigbee.ts) in my home assistant, which is installed on Raspberry Pi.
Fixed!
Changes will be available in the dev branch in a few hours from now. (https://www.zigbee2mqtt.io/advanced/more/switch-to-dev-branch.html)
Thank you!!! Out of curiosity, whats the usual timeline from Dev to Main?
Hey,
I just switched to latest-dev docker image and the error stays the same.
Publish 'set' 'operation_mode' to 'Switch XXXX' failed: 'Error: undefined is not a object, got string ("decoupled")'
Zigbee2MQTT version 1.34.0-dev commit: f11eb24 Coordinator type zStack3x0 Coordinator revision 20230507 Frontend version 0.6.148 Zigbee-herdsman-converters version 16.1.0 Zigbee-herdsman version 0.25.3
I can also confirm that it is not working with WS-EUK01. Still gives the same error: Publish 'set' 'operation_mode' to 'Corridor Bedrooms' failed: 'Error: undefined is not a object, got string ("decoupled")'
I forgot to integrate the changes, please try again with the latest dev branch in 2 hours from now.
It works now. Thanks!
When this fix will be added to stable branch? idk how to use the dev branch. Noobs like me need help :)
Next release = 1 January
Next release = 1 January
So we have to wait 20 days without our "smart" home not working at all? There is a way to fix it meanwhile?
How are you running z2m?
Next release = 1 January
So we have to wait 20 days without our "smart" home not working at all? There is a way to fix it meanwhile?
Install the development release, change the mode and switch to regular branch.