Closed maboroshina closed 1 year ago
Same here, but with the Smart Switch. Zigbee2MQTT: 1.30.1 commit: eb878d3 Coordinator type: zStack3x0 Coordinator revision: 20210708 Coordinator: Sonoff Universal Zigbee 3.0 USB Dongle Plus Device: https://www.zigbee2mqtt.io/devices/WS-EUK03.html#xiaomi-ws-euk03 (Im running the device with neutral)
Attributes with null: action, power, energy, device_temperature, power_outage_count What I've done so far: Removed it in Z2M, restarted Z2M, reset the switch (long press 5s) but unfortunately with same result.
If I click the blue button for "refresh" of the attribute power, I get the following error message: Error 2023-02-20 21:25:12Publish 'get' 'power' to 'Kitchen Ceiling' failed: 'TypeError: Cannot read properties of undefined (reading 'read')'
The firmware you are using on the coordinator is too old, update to the latest one and re-pair the device.
I can confirm that upgrading the FW solved the issue (had to remove, restart and readd the device post fw upgrade ofc).
For anyone it might help, this is how i upgraded the FW on my SONOFF Zigbee 3.0 USB Dongle Plus ZBDongle-P: Download and unpack the firmware (.hex) from: https://www.zigbee2mqtt.io/guide/adapters/#recommended
Shutdown Z2M and HA git clone https://github.com/JelmerT/cc2538-bsl cd cc2538-bsl python3 setup.py python3 cc2538-bsl.py -ewv --bootloader-sonoff-usb CC1352P2_CC2652P_launchpad_coordinator_20221226.hex Done, start/reboot everything
Hi, I am having the same issue reported by @MrBamse.
I updated the coordinator to the last revision (20221226) following the same steps shared by @MrBamse (thanks!), but the power and energy values are still reported as "Null".
The Zigbee2MQTT version is the 1.30.1.
I restarted Home Assistant and Zigbee2MQTT a couple of times but it doesn't affect it.
Is there any additional steps that should be done?
@ray17n sorry if this has been done but I really just want to make sure since it is super crucial. Did you delete/force delete the device in Z2M and then restart Z2M before trying to readd it?
@MrBamse I see, I didn't do it yet, I only rebooted it (I was afraid of losing all the existing pairings, I have a quite populated network). I was thinking to do it next week that I have more time to setup everything again if it's needed. I'll update the post with my results. Thanks.
I wrote a custom converter to read uncalibrated data, and when I thought that was the only way to do it,but since one day it started reporting full data. This is weird, I didn't upgrade the firmware, or do anything else, and one day I found out that my converter wasn't working, checked the logs, and found it was reporting full data normally, so deleted the custom converter, and it worked fine ,what happened?
What happened?
I paired new devices but these are empty Try looking at the debug log, it doesn't seem to actively send power, energy, etc.
But I can read uncalibrated power in Dev console like this
Here are the device details
What did you expect to happen?
display value
How to reproduce it (minimal and precise)
No response
Zigbee2MQTT version
1.30.0 commit: 8f781db
Adapter firmware version
6.10.3.0 build 297
Adapter
SONOFF Zigbee 3.0 USB Dongle Plus V2, EZSP v8
Debug log
The log is too long, so fold it
``` Info 2023-02-10 04:17:24Device '0x04cf8cdf3c7f4a4c' joined Info 2023-02-10 04:17:24MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7f4a4c","ieee_address":"0x04cf8cdf3c7f4a4c"},"type":"device_joined"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"name":"0x04cf8cdf3c7f4a4c","payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_zigbee2mqtt","value_template":"{{ value_json.state }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/power/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"power","enabled_by_default":true,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c power","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_power_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.power }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/energy/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"energy","enabled_by_default":true,"name":"0x04cf8cdf3c7f4a4c energy","state_class":"total_increasing","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_energy_zigbee2mqtt","unit_of_measurement":"kWh","value_template":"{{ value_json.energy }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/device_temperature/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"temperature","enabled_by_default":true,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c device temperature","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_device_temperature_zigbee2mqtt","unit_of_measurement":"°C","value_template":"{{ value_json.device_temperature }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/voltage/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"voltage","enabled_by_default":false,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_voltage_zigbee2mqtt","unit_of_measurement":"V","value_template":"{{ value_json.voltage }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/current/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"current","enabled_by_default":false,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c current","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_current_zigbee2mqtt","unit_of_measurement":"A","value_template":"{{ value_json.current }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch_power_outage_memory/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/power_outage_memory","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"entity_category":"config","icon":"mdi:memory","name":"0x04cf8cdf3c7f4a4c power_outage_memory","payload_off":"false","payload_on":"true","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_power_outage_memory_zigbee2mqtt","value_template":"{% if value_json.power_outage_memory %} true {% else %} false {% endif %}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch_led_disabled_night/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/led_disabled_night","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"entity_category":"config","icon":"mdi:led-off","name":"0x04cf8cdf3c7f4a4c led_disabled_night","payload_off":"false","payload_on":"true","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_led_disabled_night_zigbee2mqtt","value_template":"{% if value_json.led_disabled_night %} true {% else %} false {% endif %}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch_button_lock/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/button_lock","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"entity_category":"config","icon":"mdi:lock","name":"0x04cf8cdf3c7f4a4c button_lock","payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_button_lock_zigbee2mqtt","value_template":"{{ value_json.button_lock }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/overload_protection/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"enabled_by_default":false,"name":"0x04cf8cdf3c7f4a4c overload protection","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_overload_protection_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.overload_protection }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/number/0x04cf8cdf3c7f4a4c/overload_protection/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/overload_protection","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"max":2500,"min":100,"name":"0x04cf8cdf3c7f4a4c overload protection","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_overload_protection_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.overload_protection }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/linkquality/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"0x04cf8cdf3c7f4a4c linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/update_state/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:update","name":"0x04cf8cdf3c7f4a4c update state","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_update_state_zigbee2mqtt","value_template":"{{ value_json['update']['state'] }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/binary_sensor/0x04cf8cdf3c7f4a4c/update_available/config', payload '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"update","enabled_by_default":false,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c update available","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_update_available_zigbee2mqtt","value_template":"{{ value_json['update']['state'] == \"available\" }}"}' Info 2023-02-10 04:17:24MQTT publish: topic 'homeassistant/update/0x04cf8cdf3c7f4a4c/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_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"firmware","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","latest_version_template":"{{ value_json['update']['latest_version'] }}","latest_version_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","name":"0x04cf8cdf3c7f4a4c","payload_install":"{\"id\": \"0x04cf8cdf3c7f4a4c\"}","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_update_zigbee2mqtt","value_template":"{{ value_json['update']['installed_version'] }}"}' Info 2023-02-10 04:17:24Starting interview of '0x04cf8cdf3c7f4a4c' Info 2023-02-10 04:17:24MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"0x04cf8cdf3c7f4a4c","ieee_address":"0x04cf8cdf3c7f4a4c","status":"started"},"type":"device_interview"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"name":"0x04cf8cdf3c7f4a4c","payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_zigbee2mqtt","value_template":"{{ value_json.state }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/power/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"power","enabled_by_default":true,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c power","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_power_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.power }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/energy/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"energy","enabled_by_default":true,"name":"0x04cf8cdf3c7f4a4c energy","state_class":"total_increasing","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_energy_zigbee2mqtt","unit_of_measurement":"kWh","value_template":"{{ value_json.energy }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/device_temperature/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"temperature","enabled_by_default":true,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c device temperature","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_device_temperature_zigbee2mqtt","unit_of_measurement":"°C","value_template":"{{ value_json.device_temperature }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/voltage/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"voltage","enabled_by_default":false,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c voltage","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_voltage_zigbee2mqtt","unit_of_measurement":"V","value_template":"{{ value_json.voltage }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/current/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"current","enabled_by_default":false,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c current","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_current_zigbee2mqtt","unit_of_measurement":"A","value_template":"{{ value_json.current }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch_power_outage_memory/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/power_outage_memory","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"entity_category":"config","icon":"mdi:memory","name":"0x04cf8cdf3c7f4a4c power_outage_memory","payload_off":"false","payload_on":"true","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_power_outage_memory_zigbee2mqtt","value_template":"{% if value_json.power_outage_memory %} true {% else %} false {% endif %}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch_led_disabled_night/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/led_disabled_night","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"entity_category":"config","icon":"mdi:led-off","name":"0x04cf8cdf3c7f4a4c led_disabled_night","payload_off":"false","payload_on":"true","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_led_disabled_night_zigbee2mqtt","value_template":"{% if value_json.led_disabled_night %} true {% else %} false {% endif %}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/switch/0x04cf8cdf3c7f4a4c/switch_button_lock/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/button_lock","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"entity_category":"config","icon":"mdi:lock","name":"0x04cf8cdf3c7f4a4c button_lock","payload_off":"OFF","payload_on":"ON","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_switch_button_lock_zigbee2mqtt","value_template":"{{ value_json.button_lock }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/overload_protection/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"enabled_by_default":false,"name":"0x04cf8cdf3c7f4a4c overload protection","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_overload_protection_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.overload_protection }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/number/0x04cf8cdf3c7f4a4c/overload_protection/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"command_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c/set/overload_protection","device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"max":2500,"min":100,"name":"0x04cf8cdf3c7f4a4c overload protection","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_overload_protection_zigbee2mqtt","unit_of_measurement":"W","value_template":"{{ value_json.overload_protection }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/linkquality/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:signal","name":"0x04cf8cdf3c7f4a4c linkquality","state_class":"measurement","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_linkquality_zigbee2mqtt","unit_of_measurement":"lqi","value_template":"{{ value_json.linkquality }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/sensor/0x04cf8cdf3c7f4a4c/update_state/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"enabled_by_default":false,"entity_category":"diagnostic","icon":"mdi:update","name":"0x04cf8cdf3c7f4a4c update state","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_update_state_zigbee2mqtt","value_template":"{{ value_json['update']['state'] }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/binary_sensor/0x04cf8cdf3c7f4a4c/update_available/config' with data '{"availability":[{"topic":"zigbee2mqtt/bridge/state","value_template":"{{ value_json.state }}"}],"device":{"identifiers":["zigbee2mqtt_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"update","enabled_by_default":false,"entity_category":"diagnostic","name":"0x04cf8cdf3c7f4a4c update available","payload_off":false,"payload_on":true,"state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_update_available_zigbee2mqtt","value_template":"{{ value_json['update']['state'] == \"available\" }}"}' Debug 2023-02-10 04:17:24Received MQTT message on 'homeassistant/update/0x04cf8cdf3c7f4a4c/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_0x04cf8cdf3c7f4a4c"],"manufacturer":"Xiaomi","model":"Aqara smart wall outlet T1 (QBCZ14LM)","name":"0x04cf8cdf3c7f4a4c"},"device_class":"firmware","entity_picture":"https://github.com/Koenkk/zigbee2mqtt/raw/master/images/logo.png","latest_version_template":"{{ value_json['update']['latest_version'] }}","latest_version_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","name":"0x04cf8cdf3c7f4a4c","payload_install":"{\"id\": \"0x04cf8cdf3c7f4a4c\"}","state_topic":"zigbee2mqtt/0x04cf8cdf3c7f4a4c","unique_id":"0x04cf8cdf3c7f4a4c_update_zigbee2mqtt","value_template":"{{ value_json['update']['installed_version'] }}"}' Debug 2023-02-10 04:17:24Received Zigbee message from '0x04cf8cdf3c7f4a4c', type 'readResponse', cluster 'genBasic', data '{}' from endpoint 1 with groupID 0 Info 2023-02-10 04:17:25Successfully interviewed '0x04cf8cdf3c7f4a4c', device has successfully been paired Info 2023-02-10 04:17:25Device '0x04cf8cdf3c7f4a4c' is supported, identified as: Xiaomi Aqara smart wall outlet T1 (QBCZ14LM) Info 2023-02-10 04:17:25MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Aqara smart wall outlet T1","exposes":[{"features":[{"access":7,"description":"On/off state of the switch","name":"state","property":"state","type":"binary","value_off":"OFF","value_on":"ON","value_toggle":"TOGGLE"}],"type":"switch"},{"access":1,"description":"Instantaneous measured power","name":"power","property":"power","type":"numeric","unit":"W"},{"access":1,"description":"Sum of consumed energy","name":"energy","property":"energy","type":"numeric","unit":"kWh"},{"access":1,"description":"Temperature of the device","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"access":1,"description":"Measured electrical potential value","name":"voltage","property":"voltage","type":"numeric","unit":"V"},{"access":1,"description":"Instantaneous measured electrical current","name":"current","property":"current","type":"numeric","unit":"A"},{"access":7,"description":"Enable/disable the power outage memory, this recovers the on/off mode after power failure","name":"power_outage_memory","property":"power_outage_memory","type":"binary","value_off":false,"value_on":true},{"access":7,"description":"Enable/disable the LED at night","name":"led_disabled_night","property":"led_disabled_night","type":"binary","value_off":false,"value_on":true},{"access":7,"description":"Disables the physical switch button","name":"button_lock","property":"button_lock","type":"binary","value_off":"OFF","value_on":"ON"},{"access":7,"description":"Maximum allowed load, turns off if exceeded","name":"overload_protection","property":"overload_protection","type":"numeric","unit":"W","value_max":2500,"value_min":100},{"access":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"QBCZ14LM","options":[{"access":2,"description":"State actions will also be published as 'action' when true (default false).","name":"state_action","property":"state_action","type":"binary","value_off":false,"value_on":true},{"access":2,"description":"Calibrates the power value (percentual offset), takes into effect on next report of device.","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.","name":"power_precision","property":"power_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the energy value (percentual offset), takes into effect on next report of device.","name":"energy_calibration","property":"energy_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for energy, takes into effect on next report of device.","name":"energy_precision","property":"energy_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the device_temperature value (absolute offset), takes into effect on next report of device.","name":"device_temperature_calibration","property":"device_temperature_calibration","type":"numeric"},{"access":2,"description":"Calibrates the voltage value (percentual offset), takes into effect on next report of device.","name":"voltage_calibration","property":"voltage_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for voltage, takes into effect on next report of device.","name":"voltage_precision","property":"voltage_precision","type":"numeric","value_max":3,"value_min":0},{"access":2,"description":"Calibrates the current value (percentual offset), takes into effect on next report of device.","name":"current_calibration","property":"current_calibration","type":"numeric"},{"access":2,"description":"Number of digits after decimal point for current, takes into effect on next report of device.","name":"current_precision","property":"current_precision","type":"numeric","value_max":3,"value_min":0}],"supports_ota":true,"vendor":"Xiaomi"},"friendly_name":"0x04cf8cdf3c7f4a4c","ieee_address":"0x04cf8cdf3c7f4a4c","status":"successful","supported":true},"type":"device_interview"}' Debug 2023-02-10 04:18:11Received MQTT message on 'zigbee2mqtt/0x04cf8cdf3c7f4a4c/set' with data '{"state":"ON"}' Debug 2023-02-10 04:18:11Publishing 'set' 'state' to '0x04cf8cdf3c7f4a4c' Info 2023-02-10 04:18:11MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7f4a4c', payload '{"button_lock":null,"current":null,"device_temperature":null,"energy":null,"led_disabled_night":null,"linkquality":168,"overload_protection":null,"power":null,"power_outage_memory":null,"state":"ON","update":{"installed_version":-1,"latest_version":-1,"state":null},"update_available":null,"voltage":null}' Debug 2023-02-10 04:19:11Received Zigbee message from '0x04cf8cdf3c7f4a4c', type 'commandQueryNextImageRequest', cluster 'genOta', data '{"fieldControl":0,"fileVersion":50,"imageType":140,"manufacturerCode":4447}' from endpoint 1 with groupID 0 Debug 2023-02-10 04:19:11Device '0x04cf8cdf3c7f4a4c' requested OTA Debug 2023-02-10 04:19:11Check if update available for '0x04cf8cdf3c7f4a4c' (lumi.plug.sacn02) Debug 2023-02-10 04:19:12Is new image available for '0x04cf8cdf3c7f4a4c', current '{"fieldControl":0,"manufacturerCode":4447,"imageType":140,"fileVersion":50}', latest meta '{"fileVersion":50,"fileSize":272190,"url":"https://github.com/Koenkk/zigbee-OTA/raw/master/images/Xiaomi/OTA_lumi.plug.sacn02_0.0.0_0050_20211108_AB5B77.ota","sha512":"5babd7da5dd8e612a0cce072eb295cfd729e07e38b664605f86c8b5df919de0aa7e6449b47b8dc3c14babd19dd4a44f754bee5f4799e8de6c615e2d3ac34ff42"}' Debug 2023-02-10 04:19:12Update available for '0x04cf8cdf3c7f4a4c': NO Info 2023-02-10 04:19:12MQTT publish: topic 'zigbee2mqtt/0x04cf8cdf3c7f4a4c', payload '{"button_lock":null,"current":null,"device_temperature":null,"energy":null,"led_disabled_night":null,"linkquality":160,"overload_protection":null,"power":null,"power_outage_memory":null,"state":"ON","update":{"installed_version":50,"latest_version":50,"state":"idle"},"update_available":null,"voltage":null}' Debug 2023-02-10 04:19:12Responded to OTA request of '0x04cf8cdf3c7f4a4c' with 'NO_IMAGE_AVAILABLE' ```