Koenkk / zigbee2mqtt

Zigbee 🐝 to MQTT bridge 🌉, get rid of your proprietary Zigbee bridges 🔨
https://www.zigbee2mqtt.io
GNU General Public License v3.0
11.81k stars 1.64k forks source link

Regression on pairing some Legrand devices with v1.35.0 (was somewhat working on 1.34.0) #20617

Open Xavinooo opened 8 months ago

Xavinooo commented 8 months ago

What happened?

Since v1.35.0, the pairing of Legrand 067776A is not working anymore. It was somewhat working on v1.34.0 with this method.

What did you expect to happen?

The pairing of the device, in one step, or at least, like it was in v1.34.0

How to reproduce it (minimal and precise)

(with both version, I started with a fresh z2m, running in docker) With version 1.34.0, I had to do :

then, after a few seconds, it was fully paired, and the led was solid green.

The same steps with v1.35.0 are not working anymore. On the second pair, it leaves the network and rejoins, but keeps blinking green.

I've attatched the 2 logs of each versions.

The funny/odd thing, is that in homeassistant, adding it directly with z2h, I also have to pair it once, reset it, and pair it again to fully work. Might be a Legrand issue here as well...

Zigbee2MQTT version

1.35.0

Adapter firmware version

6.10.3.0 build 297

Adapter

Sonoff Zigbee 3.0 USB Dongle Plus

Debug log

1.34_first_pair.txt 1.34_second_pair.txt 1.35_first_pair.txt 1.35_second_pair.txt

Eoras commented 8 months ago

Hello, I have same probleme here :/

I'm with HA with Z2M 1.35.1

When i want to pair LEGRAND teleruptor 412170, It works very well, it is recognized and configured, and after a few seconds, the remote control resets and leaves the network.

The LED never turns green on this teleruptor (light toggle switch)

Debug 2024-01-07 19:16:28Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"device":null,"time":254,"transaction":"m0dv6-1","value":true}'
Info 2024-01-07 19:16:28Zigbee: allowing new devices to join.
Info 2024-01-07 19:16:29MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{"time":254,"value":true},"status":"ok","transaction":"m0dv6-1"}'
Info 2024-01-07 19:16:31Device '0x0004740001241a63' joined
Info 2024-01-07 19:16:31MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0004740001241a63","ieee_address":"0x0004740001241a63"},"type":"device_joined"}'
Info 2024-01-07 19:16:31Starting interview of '0x0004740001241a63'
Info 2024-01-07 19:16:31MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0004740001241a63","ieee_address":"0x0004740001241a63","status":"started"},"type":"device_interview"}'
Debug 2024-01-07 19:16:31Device '0x0004740001241a63' announced itself
Info 2024-01-07 19:16:31MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0004740001241a63","ieee_address":"0x0004740001241a63"},"type":"device_announce"}'
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"modelId":" Teleruptor\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"manufacturerName":" Legrand\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"powerSource":1}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"zclVersion":2}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"appVersion":0}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"stackVersion":66}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"hwVersion":2}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"dateCode":" \u000020230911\u0000\u0000\u0000\u0000\u0000"}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Debug 2024-01-07 19:16:32Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"swBuildId":"0025"}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:32Skipping message, still interviewing
Info 2024-01-07 19:16:32Successfully interviewed '0x0004740001241a63', device has successfully been paired
Info 2024-01-07 19:16:32Device '0x0004740001241a63' is supported, identified as: Legrand DIN smart relay for light control (412170)
Info 2024-01-07 19:16:32MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"DIN smart relay for light control","exposes":[{"features":[{"access":7,"description":"On/off state of the switch","label":"State","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"},{"access":7,"description":"On/off (works only if device is in \"switch\" mode)","label":"State","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"type":"switch"},{"access":5,"description":"Instantaneous measured power","label":"Power","name":"power","property":"power","type":"numeric","unit":"W"},{"access":7,"description":"switch: allow on/off, auto will use wired action via C1/C2 on teleruptor with buttons","label":"Device mode","name":"device_mode","property":"device_mode","type":"enum","values":["switch","auto"]},{"access":1,"description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"412170","options":[{"access":2,"description":"Calibrates the power value (percentual offset), takes into effect on next report of device.","label":"Power calibration","name":"power_calibration","property":"power_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for power, takes into effect on next report of device. This option can only decrease the precision, not increase it.","label":"Power precision","name":"power_precision","property":"power_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"State actions will also be published as 'action' when true (default false).","label":"State action","name":"state_action","property":"state_action","type":"binary","value_off":false,"value_on":true}],"supports_ota":true,"vendor":"Legrand"},"friendly_name":"0x0004740001241a63","ieee_address":"0x0004740001241a63","status":"successful","supported":true},"type":"device_interview"}'
Info 2024-01-07 19:16:32Configuring '0x0004740001241a63'
Info 2024-01-07 19:16:32MQTT publish: topic 'homeassistant/switch/0x0004740001241a63/switch/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x0004740001241a63/set","device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"name":null,"object_id":"0x0004740001241a63","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_switch_zigbee2mqtt","value_template":"{{ value_json.state }}"}'
Info 2024-01-07 19:16:32MQTT publish: topic 'homeassistant/sensor/0x0004740001241a63/power/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"device_class":"power","enabled_by_default":true,"entity_category":"diagnostic","object_id":"0x0004740001241a63_power","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_power_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.power }}"}'
Info 2024-01-07 19:16:33MQTT publish: topic 'homeassistant/sensor/0x0004740001241a63/device_mode/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:tune","name":"Device mode","object_id":"0x0004740001241a63_device_mode","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_device_mode_zigbee2mqtt","value_template":"{{ value_json.device_mode }}"}'
Info 2024-01-07 19:16:33MQTT publish: topic 'homeassistant/select/0x0004740001241a63/device_mode/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x0004740001241a63/set/device_mode","device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"entity_category":"config","icon":"mdi:tune","name":"Device mode","object_id":"0x0004740001241a63_device_mode","options":["switch","auto"],"origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_device_mode_zigbee2mqtt","value_template":"{{ value_json.device_mode }}"}'
Info 2024-01-07 19:16:33MQTT publish: topic 'homeassistant/sensor/0x0004740001241a63/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"0x0004740001241a63_linkquality","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
Info 2024-01-07 19:16:33MQTT publish: topic 'homeassistant/sensor/0x0004740001241a63/update_state/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:update","name":"Update state","object_id":"0x0004740001241a63_update_state","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_update_state_zigbee2mqtt","value_template":"{{ value_json['update']['state'] }}"}'
Info 2024-01-07 19:16:33MQTT publish: topic 'homeassistant/binary_sensor/0x0004740001241a63/update_available/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"device_class":"update","enabled_by_default":false,"entity_category":"diagnostic","name":null,"object_id":"0x0004740001241a63_update_available","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_update_available_zigbee2mqtt","value_template":"{{ value_json['update']['state'] == \"available\" }}"}'
Info 2024-01-07 19:16:33MQTT publish: topic 'homeassistant/update/0x0004740001241a63/update/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/bridge/request/device/ota_update/update","device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"device_class":"firmware","entity_category":"config","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","json_attributes_template":"{\"in_progress\": {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} }","json_attributes_topic":"zigbee2mqtt/0x0004740001241a63","latest_version_template":"{{ value_json['update']['latest_version'] }}","latest_version_topic":"zigbee2mqtt/0x0004740001241a63","name":null,"object_id":"0x0004740001241a63","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"payload_install":"{\"id\": \"0x0004740001241a63\"}","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_update_zigbee2mqtt","value_template":"{{ value_json['update']['installed_version'] }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/switch/0x0004740001241a63/switch/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x0004740001241a63/set","device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"name":null,"object_id":"0x0004740001241a63","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_switch_zigbee2mqtt","value_template":"{{ value_json.state }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/sensor/0x0004740001241a63/power/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"device_class":"power","enabled_by_default":true,"entity_category":"diagnostic","object_id":"0x0004740001241a63_power","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_power_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.power }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/sensor/0x0004740001241a63/device_mode/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:tune","name":"Device mode","object_id":"0x0004740001241a63_device_mode","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_device_mode_zigbee2mqtt","value_template":"{{ value_json.device_mode }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/select/0x0004740001241a63/device_mode/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x0004740001241a63/set/device_mode","device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"entity_category":"config","icon":"mdi:tune","name":"Device mode","object_id":"0x0004740001241a63_device_mode","options":["switch","auto"],"origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_device_mode_zigbee2mqtt","value_template":"{{ value_json.device_mode }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/sensor/0x0004740001241a63/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"0x0004740001241a63_linkquality","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/sensor/0x0004740001241a63/update_state/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:update","name":"Update state","object_id":"0x0004740001241a63_update_state","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_update_state_zigbee2mqtt","value_template":"{{ value_json['update']['state'] }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/binary_sensor/0x0004740001241a63/update_available/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"device_class":"update","enabled_by_default":false,"entity_category":"diagnostic","name":null,"object_id":"0x0004740001241a63_update_available","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_update_available_zigbee2mqtt","value_template":"{{ value_json['update']['state'] == \"available\" }}"}'
Debug 2024-01-07 19:16:33Received MQTT message on 'homeassistant/update/0x0004740001241a63/update/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/bridge/request/device/ota_update/update","device":{"identifiers":["zigbee2mqtt_0x0004740001241a63"],"manufacturer":"Legrand","model":"DIN smart relay for light control (412170)","name":"0x0004740001241a63","sw_version":"0025","via_device":"zigbee2mqtt_bridge_0x00124b002c3ac33e"},"device_class":"firmware","entity_category":"config","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","json_attributes_template":"{\"in_progress\": {{ iif(value_json['update']['state'] == 'updating', 'true', 'false') }} }","json_attributes_topic":"zigbee2mqtt/0x0004740001241a63","latest_version_template":"{{ value_json['update']['latest_version'] }}","latest_version_topic":"zigbee2mqtt/0x0004740001241a63","name":null,"object_id":"0x0004740001241a63","origin":{"name":"Zigbee2MQTT","sw":"1.35.1","url":"https://www.zigbee2mqtt.io"},"payload_install":"{\"id\": \"0x0004740001241a63\"}","state_topic":"zigbee2mqtt/0x0004740001241a63","unique_id":"0x0004740001241a63_update_zigbee2mqtt","value_template":"{{ value_json['update']['installed_version'] }}"}'
Debug 2024-01-07 19:16:33Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'haElectricalMeasurement', data '{"acCurrentMultiplier":0,"acVoltageDivisor":0,"acVoltageMultiplier":0}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:33Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'haElectricalMeasurement', data '{"acCurrentDivisor":0,"acPowerDivisor":1,"acPowerMultiplier":1}' from endpoint 1 with groupID 0
Info 2024-01-07 19:16:33Successfully configured '0x0004740001241a63'
Debug 2024-01-07 19:16:33Received Zigbee message from '0x0004740001241a63', type 'readResponse', cluster 'genBasic', data '{"dateCode":" \u000020230911\u0000\u0000\u0000\u0000\u0000"}' from endpoint 1 with groupID 0
Debug 2024-01-07 19:16:43Received Zigbee message from '0x0004740001241a63', type 'read', cluster 'genBasic', data '[61440]' from endpoint 1 with groupID 0
Warning 2024-01-07 19:16:43Device '0x0004740001241a63' left the network
Info 2024-01-07 19:16:43MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0004740001241a63","ieee_address":"0x0004740001241a63"},"type":"device_leave"}'
Warning 2024-01-07 19:16:43Device '0x0004740001241a63' left the network
Info 2024-01-07 19:16:43MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x0004740001241a63","ieee_address":"0x0004740001241a63"},"type":"device_leave"}'
Debug 2024-01-07 19:16:44Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"device":null,"time":254,"transaction":"m0dv6-2","value":false}'

If someone can help me to log more information to help for this problem

Xavinooo commented 8 months ago

I've updated to v1.35.1, and I have again the same behaviour than v1.34.0. So, maybe it got "fixed" ?

Xavinooo commented 8 months ago

@Eoras Did you try these steps ? :

Eoras commented 8 months ago

I've updated to v1.35.1, and I have again the same behaviour than v1.34.0. So, maybe it got "fixed" ? No, 1.35.1 don't solve nothing :( i restart all system and do same.

LEGRAND Télérupteur (Light switch toggle) : 412170 Dongle: SONOFF ZigBee 3.0 USB Dongle Plus, EFR32MG21 Same with : SONOFF ZigBee 3.0 USB Dongle Plus, TI CC2652P

I try to do this but i think my problem is not same as you ^^ (Because already have this problem with update)

-> Restore the device (fixed red led) -> permit join on Z2M -> Legrand switch toggle detected -> dive is paired, all configuration is ok but led stay RED on light switch toggle (LEGRAND 412170) -> after 5/6 second the toggle switch resets and leaves as if it did not validate the pairing -> Switch toggle detected -> ..... this repeat until i'm on permit joint on Z2M.

ZHA work fine, i don't know what happen with Z2M

CptAdhoc commented 8 months ago

Hello, same behavior here with Z2M 1.35 and 1.35.1, SONOFF ZigBee 3.0 USB Dongle Plus TI CC2652P and blind command LEGRAND 600086A version 002c ( identified by Z2M as 067776A, probably the same device behind the faceplate ).

If paired with red led, the led will stay red. If paired after pressing the button, the led keeps blinking green.

After a power loss, the device will leave the network. It also seems that the calibration process can't be started before the device is properly paired. OTA update fail when reaching 100%

I've tried @Xavinooo procedure, at the end, the device will leave the network and immediatly join with red led.

nicozocco commented 8 months ago

Hi! I've spent a whole week trying to solve this.

I have the same issue ZHA was able to pair the devices properly, Z2M won't pair them.

I have the SONOFF Zigbee 3.0 P as well and several legrand/bticino switches, I've tried with a wireless switch and an shutter and both had the same issue.

I managed to keep the devices paired by following the steps mentioned above but only until the first reset:

reseting the device (fixed red led) start z2m container permit join push the pairing button on the Legrand device (starts blinking green) once z2m successufully configured the device, it's still blinking green (like stop z2m container

After this the devices stay connected, but i think they are probably not fully paired as after some time without using them, when i first push the button it does nothing at all, i need to press it a couple of times for it to react.

CptAdhoc commented 8 months ago

I have installed 1.34.0 on a seperate VM and imported the configuration from the Home Assistant Z2M addon. Under this version, I have followed @Xavinooo pairing process with succes ( making the calibration possible ).

I have re-imported the configuration of Z2M on the VM to the Home Assistant addon under 1.35.1. The switch seems to behave correctly for now.

Xavinooo commented 8 months ago

With 1.35.1, the process is again working like with 1.34.0 ;)

CptAdhoc commented 8 months ago

With 1.35.1, the process is again working like with 1.34.0 ;)

Unfortunately, on my side, it wasn't successful under 1.35.1, that why I ended going back to 1.34.0.

CptAdhoc commented 8 months ago

Hello,

New try today with a Dooxie Light switch without neutral 199232, reported by Z2M as 199182, version 0012 / 20221114. The behaviour is a little bit different on 1.35.1: the device will pair without change on the led behaviour, exactly like the blind sensor, but will leave the network few seconds later.

I paired it successfully under 1.34.0, again with @Xavinooo process, and import the configuration under 1.35.1 with no problem.

sjorge commented 6 months ago

This is probably related to https://github.com/Koenkk/zigbee-herdsman/issues/979, until this is fixed you can theoretically manually comment the readResponse coming from inside zh. I've tried this and then the device pairs again.

nicozocco commented 6 months ago

@sjorge That's interesting I did some testing and decided to roll back to 1.34, then paired all the legrand devices.

Funny enough this version seems to work pretty well with these devices and it also looks like the devices believe they're connecting to the Legrand Gateway, as they flash green when completely paired vs magenta when paired in a higher version (I understsand from their documentation magenta flash is when the Legrand devices successfully pairs in a Zigbee 3.0 network). A benefit of this is that he switches keep on working with the Toggle state instead of On/Off, this means you can press anywhere in the switch instead of top or bottom. This is also the standard behaviour when connected to the Legrand gateway.

sjorge commented 6 months ago

With the double readResponse gone (by eliminating the call in zh) mine shows up as green, same as when it used to when I originally paired it a year or so ago.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days