zigbee2mqtt icon indicating copy to clipboard operation
zigbee2mqtt copied to clipboard

BTicino L4531C/N4531C/NT4531C reported as Legrand 067775/741811

Open fabietx opened this issue 2 years ago • 1 comments

What happened?

The BTicino connected socket L4531C/N4531C/NT4531C is reported in Z2M as Legrand 067775/741811. So the entities exposed are not correct; they should be "switch (state), action, power, voltage, current, linkquality". For example "power_apparent" entity is shown but not working. Additionally the OTA firmware update is not available.

What did you expect to happen?

The device should be recognised correctly with correct entities.

How to reproduce it (minimal and precise)

I've tried to re-pair the device several times with the same result.

Zigbee2MQTT version

1.39.1-1

Adapter firmware version

7.4.1

Adapter

SLZB-06M with ember driver

Setup

Home Assistant OS on intel NUC running on VMware ESXi VM

Debug log

[2024-08-31 15:19:13] info: z2m:mqtt: MQTT publish: topic 'z2m/bridge/event', payload '{"data":{"friendly_name":"0x000474000093e285","ieee_address":"0x000474000093e285"},"type":"device_announce"}' [2024-08-31 15:19:13] warning: zh:ember: [ZDO] Device '63678' is only compliant to revision '21' of the ZigBee specification (current revision: 22). [2024-08-31 15:19:14] info: zh:controller: Succesfully interviewed '0x000474000093e285' [2024-08-31 15:19:14] info: z2m: Successfully interviewed '0x000474000093e285', device has successfully been paired [2024-08-31 15:19:14] info: z2m: Device '0x000474000093e285' is supported, identified as: Legrand Power socket with power consumption monitoring (067775/741811) [2024-08-31 15:19:14] info: z2m: Configuring '0x000474000093e285' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'z2m/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Power socket with power consumption monitoring","friendly_name":"0x000474000093e285","model":"067775/741811","supported":true,"vendor":"Legrand"},"type":"pairing"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'homeassistant/switch/0x000474000093e285/switch/config', payload '{"availability":[{"topic":"z2m/bridge/state"}],"command_topic":"z2m/0x000474000093e285/set","device":{"identifiers":["zigbee2mqtt_0x000474000093e285"],"manufacturer":"Legrand","model":"Power socket with power consumption monitoring (067775/741811)","name":"0x000474000093e285","sw_version":"01b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000��\u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000��!","via_device":"zigbee2mqtt_bridge_0xfd62bcfeffdbb484"},"json_attributes_topic":"z2m/0x000474000093e285","name":null,"object_id":"0x000474000093e285","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"payload_off":"OFF","payload_on":"ON","state_topic":"z2m/0x000474000093e285","unique_id":"0x000474000093e285_switch_z2m","value_template":"{{ value_json.state }}"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'z2m/bridge/event', payload '{"data":{"definition":{"description":"Power socket with power consumption monitoring","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"}],"type":"switch"},{"access":1,"category":"diagnostic","description":"Triggered action (e.g. a button click)","label":"Action","name":"action","property":"action","type":"enum","values":["identify"]},{"access":1,"category":"diagnostic","description":"Instantaneous measured power","label":"Power","name":"power","property":"power","type":"numeric","unit":"W"},{"access":1,"description":"Instantaneous measured apparent power","label":"Power apparent","name":"power_apparent","property":"power_apparent","type":"numeric","unit":"VA"},{"access":7,"category":"config","description":"Controls the behavior when the device is powered on after power loss. If you get an UNSUPPORTED_ATTRIBUTE error, the device does not support it.","label":"Power-on behavior","name":"power_on_behavior","property":"power_on_behavior","type":"enum","values":["off","previous","on"]},{"access":2,"category":"config","description":"Blinks the built-in LED to make it easier to identify the device","label":"Identify","name":"identify","property":"identify","type":"enum","values":["identify"]},{"access":7,"category":"config","description":"Enables the built-in LED allowing to see the switch in the dark","label":"Led in dark","name":"led_in_dark","property":"led_in_dark","type":"binary","value_off":"OFF","value_on":"ON"},{"access":7,"category":"config","description":"Enables the LED on activity","label":"Led if on","name":"led_if_on","property":"led_if_on","type":"binary","value_off":"OFF","value_on":"ON"},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"067775/741811","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":"Defines the identification effect to simplify the device identification.","features":[{"access":2,"label":"Effect","name":"effect","property":"effect","type":"enum","values":["blink 3","fixed","blink green","blink blue"]},{"access":2,"label":"Color","name":"color","property":"color","type":"enum","values":["default","red","green","blue","lightblue","yellow","pink","white"]}],"label":"Identity effect","name":"Identity effect","property":"identity_effect","type":"composite"},{"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":"0x000474000093e285","ieee_address":"0x000474000093e285","status":"successful","supported":true},"type":"device_interview"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0x000474000093e285/action/config', payload '{"availability":[{"topic":"z2m/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x000474000093e285"],"manufacturer":"Legrand","model":"Power socket with power consumption monitoring (067775/741811)","name":"0x000474000093e285","sw_version":"01b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000��\u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000��!","via_device":"zigbee2mqtt_bridge_0xfd62bcfeffdbb484"},"enabled_by_default":true,"icon":"mdi:gesture-double-tap","json_attributes_topic":"z2m/0x000474000093e285","name":"Action","object_id":"0x000474000093e285_action","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"z2m/0x000474000093e285","unique_id":"0x000474000093e285_action_z2m","value_template":"{{ value_json.action }}"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0x000474000093e285/power/config', payload '{"availability":[{"topic":"z2m/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x000474000093e285"],"manufacturer":"Legrand","model":"Power socket with power consumption monitoring (067775/741811)","name":"0x000474000093e285","sw_version":"01b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000��\u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000��!","via_device":"zigbee2mqtt_bridge_0xfd62bcfeffdbb484"},"device_class":"power","enabled_by_default":true,"entity_category":"diagnostic","json_attributes_topic":"z2m/0x000474000093e285","object_id":"0x000474000093e285_power","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"z2m/0x000474000093e285","unique_id":"0x000474000093e285_power_z2m","unit_of_measurement":"W","value_template":"{{ value_json.power }}"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0x000474000093e285/power_apparent/config', payload '{"availability":[{"topic":"z2m/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x000474000093e285"],"manufacturer":"Legrand","model":"Power socket with power consumption monitoring (067775/741811)","name":"0x000474000093e285","sw_version":"01b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000��\u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000��!","via_device":"zigbee2mqtt_bridge_0xfd62bcfeffdbb484"},"enabled_by_default":true,"json_attributes_topic":"z2m/0x000474000093e285","name":"Power apparent","object_id":"0x000474000093e285_power_apparent","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"z2m/0x000474000093e285","unique_id":"0x000474000093e285_power_apparent_z2m","unit_of_measurement":"VA","value_template":"{{ value_json.power_apparent }}"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0x000474000093e285/power_on_behavior/config', payload '{"availability":[{"topic":"z2m/bridge/state"}],"device":{"identifiers":["zigbee2mqtt_0x000474000093e285"],"manufacturer":"Legrand","model":"Power socket with power consumption monitoring (067775/741811)","name":"0x000474000093e285","sw_version":"01b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000��\u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000��!","via_device":"zigbee2mqtt_bridge_0xfd62bcfeffdbb484"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:power-settings","json_attributes_topic":"z2m/0x000474000093e285","name":"Power-on behavior","object_id":"0x000474000093e285_power_on_behavior","origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"z2m/0x000474000093e285","unique_id":"0x000474000093e285_power_on_behavior_z2m","value_template":"{{ value_json.power_on_behavior }}"}' [2024-08-31 15:19:14] info: z2m:mqtt: MQTT publish: topic 'homeassistant/select/0x000474000093e285/power_on_behavior/config', payload '{"availability":[{"topic":"z2m/bridge/state"}],"command_topic":"z2m/0x000474000093e285/set/power_on_behavior","device":{"identifiers":["zigbee2mqtt_0x000474000093e285"],"manufacturer":"Legrand","model":"Power socket with power consumption monitoring (067775/741811)","name":"0x000474000093e285","sw_version":"01b\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000 \u0002\u0000\u0001\u0000 \u0002\u0000\u0002\u0000!\u0012\u0000\u0000\u0000\u0000��\u0003\u0000\u0010\u0002\u0001\u0004\u0000\u0018\u0002\u0000��!","via_device":"zigbee2mqtt_bridge_0xfd62bcfeffdbb484"},"enabled_by_default":true,"entity_category":"config","icon":"mdi:power-settings","json_attributes_topic":"z2m/0x000474000093e285","name":"Power-on behavior","object_id":"0x000474000093e285_power_on_behavior","options":["off","previous","on"],"origin":{"name":"Zigbee2MQTT","sw":"1.39.1","url":"https://www.zigbee2mqtt.io"},"state_topic":"z2m/0x000474000093e285","unique_id":"0x000474000093e285_power_on_behavior_z2m","value_template":"{{ value_json.power_on_behavior }}"}'

fabietx avatar Aug 31 '24 20:08 fabietx

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

github-actions[bot] avatar Dec 12 '24 00:12 github-actions[bot]