Closed docbobo closed 3 years ago
Can you provide the debug log when unbinding from this group?
To enable debug logging set in configuration.yaml
:
advanced:
log_level: debug
I have the same issue
Group 901 is created on UI without devices in :
When i try to remove 901 group : `debug 2020-11-08 13:46:00: Received MQTT message on 'zigbee2mqtt/bridge/request/group/remove' with data '901'
error 2020-11-08 13:46:00: Request 'zigbee2mqtt/bridge/request/group/remove' failed with error: 'message.trim is not a function'
info 2020-11-08 13:46:00: MQTT publish: topic 'zigbee2mqtt/bridge/response/group/remove', payload '{"data":{},"error":"message.trim is not a function","status":"error"}'`
@Koenkk I'm experiencing this right now with an IKEA E1743 switch!
Zigbee2MQTT:debug 2020-11-10 18:41:02: Received MQTT message on 'zigbee2mqtt/bridge/request/group/remove' with data '901'
Zigbee2MQTT:error 2020-11-10 18:41:02: Request 'zigbee2mqtt/bridge/request/group/remove' failed with error: 'message.trim is not a function'
Zigbee2MQTT:info 2020-11-10 18:41:02: MQTT publish: topic 'zigbee2mqtt/bridge/response/group/remove', payload '{"data":{},"error":"message.trim is not a function","status":"error"}'
Following this, I also tried using MQTT message "zigbee2mqtt/bridge/config/remove_group" with payload "901" but that also failed:
Zigbee2MQTT:debug 2020-11-10 18:53:20: Received MQTT message on 'zigbee2mqtt/bridge/config/remove_group' with data '901'
Zigbee2MQTT:error 2020-11-10 18:53:20: Failed to call 'BridgeLegacy' 'onMQTTMessage' (AssertionError [ERR_ASSERTION]: Group '901' does not exist
at BridgeLegacy.removeGroup (/app/lib/extension/legacy/bridgeLegacy.js:277:9)
at BridgeLegacy.onMQTTMessage (/app/lib/extension/legacy/bridgeLegacy.js:370:44)
at Controller.callExtensionMethod (/app/lib/controller.js:378:44)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5))
After better reading this on the docs, I managed to solve my problem!
I still seem to not being able to fully "unbind" from the 901 group, but at least the button is usable inside the group I wanted!
When trying to unbind the device from a group that does not exist in the configuration.yaml - something definitely happening with the IKEA default of 901, I get
Zigbee2MQTT:info 2020-11-11 16:28:00: MQTT publish: topic 'zigbee2mqtt/bridge/response/device/unbind', payload '{"data":{"from":"hue_dimmer_04/1","to":"4"},"error":"Target device or group '4' does not exist","status":"error"}'
Zigbee2MQTT:error 2020-11-11 16:28:00: Target device or group '4' does not exist
(I did try to reproduce this by first creating the group, the removing it from the yaml).
Trying to delete the group, results in
Zigbee2MQTT:error 2020-11-11 16:30:14: Request 'zigbee2mqtt/bridge/request/group/remove' failed with error: 'message.trim is not a function'
The group does show in the group list of the new UI though - that's how I triggered both unbind and delete.
default_bind_group
instead of 901
.Changes will be available in the latest dev branch in a few hours (https://www.zigbee2mqtt.io/how_tos/how-to-switch-to-dev-branch.html)
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days
What happened
I bought an Ikea IKEA E1524/E1810 yesterday, which is pre-bound to a default group. In my case it was 901, I suspect this is the one Ikea uses for all its devices.
In order to control my devices, I needed to bind the to the remote. However, according to the Z2M documentation, I had to first unbind from the default group. But that did not work because group 901 did not exist on my system before.
The UI was showing group 901 as empty, but neither could I delete it over there nor could I unbind the device from the group. Instead, I had to first manually add it to the configuration.yaml.
What did you expect to happen
Unbinding the group & deleting it should work independent of whether it has an entry in configuration.yaml or not.
How to reproduce it (minimal and precise)
See above. I suspect creating a group, binding a device, then manually deleting the group from configuration.yaml will set up the system in a similar way. Didn't try to.
Debug info
Zigbee2MQTT version: 1.16.1 Adapter hardware: CC1352P-2 Adapter firmware version: 20201026