Koenkk / zigbee2mqtt

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

Tuya ZG-101Z/D detected as ERS-10TZBVK-AA #25053

Open BlaXun opened 13 hours ago

BlaXun commented 13 hours ago

What happened?

I bought a couple of these radial switches (which work in ZHA in Home Assistant) https://aliexpress.com/item/1005007575864175.html?spm=a2g0o.order_list.order_list_main.65.4a3f5c5fBDiin9

When adding them to zigbee2mqtt they are discovered as ERS-10TZBVK-AA

I tried manually adding support for this device (never did this before) but can't get it to load into "blank state" so I can add support step-by-step.

What did you expect to happen?

Either correct detection or unsupported with a blank state so I can try and add support by myself

How to reproduce it (minimal and precise)

Get one of the mentioned switches and try to pair it

Zigbee2MQTT version

1.42.0

Adapter firmware version

20210708

Adapter

SONOFF Zigbee 3.0 USB Dongle plus

Setup

Home Assistant Add-On

Debug log

No response

BlaXun commented 13 hours ago

Side note: I discovered the code ZG-101Z/D by opening up the switch and taking a look at its internals

BlaXun commented 12 hours ago

Log from interview to "successful" pairing

info 2024-12-03 22:23:45zh:controller: Interview for '0xa4c138d65b0e06fd' started info 2024-12-03 22:23:45z2m: Device '0xa4c138d65b0e06fd' joined info 2024-12-03 22:23:46z2m: Starting interview of '0xa4c138d65b0e06fd' info 2024-12-03 22:23:46z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xa4c138d65b0e06fd","ieee_address":"0xa4c138d65b0e06fd"},"type":"device_joined"}' info 2024-12-03 22:23:46z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xa4c138d65b0e06fd","ieee_address":"0xa4c138d65b0e06fd","status":"started"},"type":"device_interview"}' info 2024-12-03 22:23:46z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0xa4c138d65b0e06fd","ieee_address":"0xa4c138d65b0e06fd"},"type":"device_announce"}' info 2024-12-03 22:23:58zh:controller: Succesfully interviewed '0xa4c138d65b0e06fd' info 2024-12-03 22:23:58z2m: Successfully interviewed '0xa4c138d65b0e06fd', device has successfully been paired info 2024-12-03 22:23:58z2m: Device '0xa4c138d65b0e06fd' is supported, identified as: Tuya Smart knob (ERS-10TZBVK-AA) info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/action/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":true,"entity_category":"diagnostic","icon":"mdi:gesture-double-tap","name":"Action","object_id":"0xa4c138d65b0e06fd_action","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_action_zigbee2mqtt","value_template":"{{ value_json.action }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Smart knob","exposes":[{"access":1,"category":"diagnostic","description":"Triggered action (e.g. a button click)","label":"Action","name":"action","property":"action","type":"enum","values":["toggle","brightness_step_up","brightness_step_down","color_temperature_step_up","color_temperature_step_down","saturation_move","hue_move","hue_stop","single","double","hold","rotate_left","rotate_right"]},{"access":1,"label":"Action step size","name":"action_step_size","property":"action_step_size","type":"numeric","value_max":255,"value_min":0},{"access":1,"label":"Action transition time","name":"action_transition_time","property":"action_transition_time","type":"numeric","unit":"s"},{"access":1,"label":"Action rate","name":"action_rate","property":"action_rate","type":"numeric","value_max":255,"value_min":0},{"access":1,"category":"diagnostic","description":"Remaining battery in %, can take up to 24 hours before reported","label":"Battery","name":"battery","property":"battery","type":"numeric","unit":"%","value_max":100,"value_min":0},{"access":7,"description":"Operation mode: \"command\" - for group control, \"event\" - for clicks","label":"Operation mode","name":"operation_mode","property":"operation_mode","type":"enum","values":["command","event"]},{"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":"ERS-10TZBVK-AA","options":[{"access":2,"description":"Simulate a brightness value. If this device provides a brightness_move_up or brightness_move_down action it is possible to specify the update interval and delta. The action_brightness_delta indicates the delta for each interval. ","features":[{"access":2,"description":"Delta per interval, 20 by default","label":"Delta","name":"delta","property":"delta","type":"numeric","value_min":0},{"access":2,"description":"Interval duration","label":"Interval","name":"interval","property":"interval","type":"numeric","unit":"ms","value_min":0}],"label":"Simulated brightness","name":"simulated_brightness","property":"simulated_brightness","type":"composite"}],"supports_ota":false,"vendor":"Tuya"},"friendly_name":"0xa4c138d65b0e06fd","ieee_address":"0xa4c138d65b0e06fd","status":"successful","supported":true},"type":"device_interview"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/action_step_size/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":true,"name":"Action step size","object_id":"0xa4c138d65b0e06fd_action_step_size","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_action_step_size_zigbee2mqtt","value_template":"{{ value_json.action_step_size }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/action_transition_time/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":true,"name":"Action transition time","object_id":"0xa4c138d65b0e06fd_action_transition_time","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_action_transition_time_zigbee2mqtt","unit_of_measurement":"s","value_template":"{{ value_json.action_transition_time }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/action_rate/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":true,"name":"Action rate","object_id":"0xa4c138d65b0e06fd_action_rate","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_action_rate_zigbee2mqtt","value_template":"{{ value_json.action_rate }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/battery/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"device_class":"battery","enabled_by_default":true,"entity_category":"diagnostic","object_id":"0xa4c138d65b0e06fd_battery","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_battery_zigbee2mqtt","unit_of_measurement":"%","value_template":"{{ value_json.battery }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/operation_mode/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:tune","name":"Operation mode","object_id":"0xa4c138d65b0e06fd_operation_mode","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_operation_mode_zigbee2mqtt","value_template":"{{ value_json.operation_mode }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/select/0xa4c138d65b0e06fd/operation_mode/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0xa4c138d65b0e06fd/set/operation_mode","device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":true,"entity_category":"config","icon":"mdi:tune","name":"Operation mode","object_id":"0xa4c138d65b0e06fd_operation_mode","options":["command","event"],"origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_operation_mode_zigbee2mqtt","value_template":"{{ value_json.operation_mode }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'homeassistant/sensor/0xa4c138d65b0e06fd/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0xa4c138d65b0e06fd"],"manufacturer":"Tuya","model":"Smart knob (ERS-10TZBVK-AA)","name":"0xa4c138d65b0e06fd","sw_version":"0122052017","via_device":"zigbee2mqtt_bridge_0x00124b0030d2eaaf"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"Linkquality","object_id":"0xa4c138d65b0e06fd_linkquality","origin":{"name":"Zigbee2MQTT","sw":"1.42.0","url":"https://www.zigbee2mqtt.io"},"state_class":"measurement","state_topic":"zigbee2mqtt/0xa4c138d65b0e06fd","unique_id":"0xa4c138d65b0e06fd_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' info 2024-12-03 22:23:58z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138d65b0e06fd', payload '{"action":null,"action_rate":null,"action_step_size":null,"action_transition_time":null,"battery":null,"linkquality":75,"operation_mode":"event"}' info 2024-12-03 22:23:59z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138d65b0e06fd', payload '{"action":null,"action_rate":null,"action_step_size":null,"action_transition_time":null,"battery":100,"linkquality":78,"operation_mode":"event","voltage":3000}' info 2024-12-03 22:24:08z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138d65b0e06fd', payload '{"action":null,"action_rate":null,"action_step_size":null,"action_transition_time":null,"battery":100,"linkquality":78,"operation_mode":"event","voltage":3000}' info 2024-12-03 22:24:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138d65b0e06fd', payload '{"action":null,"action_rate":null,"action_step_size":null,"action_transition_time":null,"battery":100,"linkquality":75,"operation_mode":"event","voltage":3000}' info 2024-12-03 22:24:28z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/0xa4c138d65b0e06fd', payload '{"action":null,"action_rate":null,"action_step_size":null,"action_transition_time":null,"battery":100,"linkquality":75,"operation_mode":"event","voltage":3000}'