Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aqara T1 single switch module does not report power after AC outage #13435

Closed
TomiCode opened this issue Aug 6, 2022 · 1 comment
Closed
Labels
problem Something isn't working stale Stale issues

Comments

@TomiCode
Copy link

TomiCode commented Aug 6, 2022

What happened?

After a successful pair to the coordinator, the module in the on state reports current power values in the cluster genAnalogInput from endpoint 21. When I disconnect the module from the ac power supply and re-power it just after a couple of seconds, the module starts successfully. Responds as expected to on-off packets, but turning it on, doesn't start reporting any power values from the endpoint 21.

What did you expect to happen?

The aqara module (lumi.switch.n0agl1) should report power values as seen after pairing.

How to reproduce it (minimal and precise)

Repair or pair the module to the coordinator, and check if power values change. Disconnect from AC, and after a few seconds, power it back on. The module now won't refresh and/or return any power values.

Zigbee2MQTT version

1.27.0-dev commit: 483ff4a

Adapter firmware version

EZSP / 6.10.3.0 build 297

Adapter

ZBDongle-E Zigbee 3.0 USB Dongle Plus

Debug log

First pairing, turning on the relay powering a led light, unscrewing the bulb (to see a power change), screwing it back in, and turning it off.

zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:21: Device '0x54ef441000260518' joined
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:21: MQTT publish: topic 'zigbee/bridge/event', payload '{"data":{"friendly_name":"0x54ef441000260518","ieee_address":"0x54ef441000260518"},"type":"device_joined"}'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:21: MQTT publish: topic 'zigbee/bridge/log', payload '{"message":{"friendly_name":"0x54ef441000260518"},"type":"device_connected"}'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:21: Starting interview of '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:21: MQTT publish: topic 'zigbee/bridge/event', payload '{"data":{"friendly_name":"0x54ef441000260518","ieee_address":"0x54ef441000260518","status":"started"},"type":"device_interview"}'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:21: MQTT publish: topic 'zigbee/bridge/log', payload '{"message":"interview_started","meta":{"friendly_name":"0x54ef441000260518"},"type":"pairing"}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:25: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genBasic', data '{"appVersion":23,"modelId":"lumi.switch.n0agl1"}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:25: Received Zigbee message from '0x54ef441000260518', type 'read', cluster 'genTime', data '["time","timeZone"]' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:26: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genBasic', data '{"appVersion":23}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:27: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[100,16,0,3,40,25,152,57,0,0,0,0,149,57,0,0,0,0,150,57,45,106,22,69,151,57,0,0,0,0,5,33,2,0,154,32,16,11,32,0,8,33,23,1,9,33,0,1],"type":"Buffer"}}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:27: lumi.switch.n0agl1: Processed buffer into data {"3":25,"5":2,"8":279,"9":256,"11":0,"100":0,"149":0,"150":2406.635986328125,"151":0,"152":0,"154":16}
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:27: lumi.switch.n0agl1: Processed data into payload {"device_temperature":25,"power_outage_count":1,"state":"OFF","energy":0,"consumption":0,"voltage":240.7,"current":0,"power":0}
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:27: lumi.switch.n0agl1: Processed data into payload {"device_temperature":25,"power_outage_count":1,"state":"OFF","energy":0,"consumption":0,"voltage":240.7,"current":0,"power":0}
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:27: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":148,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:28: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"245":33554432,"onOff":0}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:28: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":148,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:47:51: Received Zigbee message from '0x54ef441000260518', type 'readResponse', cluster 'genBasic', data '{"swBuildId":""}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:51: Successfully interviewed '0x54ef441000260518', device has successfully been paired
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:51: Device '0x54ef441000260518' is supported, identified as: Xiaomi Aqara single switch module T1 (with neutral) (SSM-U01)
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:52: MQTT publish: topic 'zigbee/bridge/event', payload '{"data":{"definition":{"description":"Aqara single switch module T1 (with neutral)","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":"Sum of consumed energy","name":"energy","property":"energy","type":"numeric","unit":"kWh"},{"access":1,"description":"Instantaneous measured power","name":"power","property":"power","type":"numeric","unit":"W"},{"access":1,"description":"Temperature of the device","name":"device_temperature","property":"device_temperature","type":"numeric","unit":"°C"},{"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":1,"description":"Number of power outages (since last pairing)","name":"power_outage_count","property":"power_outage_count","type":"numeric"},{"access":7,"description":"Wall switch type","name":"switch_type","property":"switch_type","type":"enum","values":["toggle","momentary"]},{"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":1,"description":"Link quality (signal strength)","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"SSM-U01","options":[{"access":2,"description":"Number of digits after decimal point for device_temperature, takes into effect on next report of device.","name":"device_temperature_precision","property":"device_temperature_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"}],"supports_ota":true,"vendor":"Xiaomi"},"friendly_name":"0x54ef441000260518","ieee_address":"0x54ef441000260518","status":"successful","supported":true},"type":"device_interview"}'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:52: Configuring '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:52: MQTT publish: topic 'zigbee/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara single switch module T1 (with neutral)","friendly_name":"0x54ef441000260518","model":"SSM-U01","supported":true,"vendor":"Xiaomi"},"type":"pairing"}'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:47:52: Successfully configured '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:48:36: Received MQTT message on 'zigbee/0x54ef441000260518/set' with data '{"state":"ON"}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:48:36: Publishing 'set' 'state' to '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:48:36: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":144,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:48:36: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"245":117440532,"onOff":1}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:48:36: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":144,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:48:36: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:48:36: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":144,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:48:40: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genAnalogInput', data '{"presentValue":13.126203536987305}' from endpoint 21 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:48:40: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":144,"power":13.13,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:34: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genAnalogInput', data '{"presentValue":0}' from endpoint 21 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:49:34: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":148,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:37: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genAnalogInput', data '{"presentValue":13.111533164978027}' from endpoint 21 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:49:37: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":144,"power":13.11,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:48: Received MQTT message on 'zigbee/0x54ef441000260518/set' with data '{"state":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:48: Publishing 'set' 'state' to '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:49:48: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":164,"power":13.11,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:48: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"245":117440533,"onOff":0}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:49:48: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":164,"power":13.11,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:48: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:49:48: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":164,"power":13.11,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:49:49: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genAnalogInput', data '{"presentValue":0}' from endpoint 21 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:49:49: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":25,"energy":0,"linkquality":164,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:52:51: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genDeviceTempCfg', data '{"currentTemperature":26}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:52:51: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":148,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":240.7}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:52:57: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[100,16,0,3,40,26,152,57,0,0,0,0,149,57,225,182,130,57,150,57,87,92,19,69,151,57,0,0,0,0,5,33,2,0,154,32,0,11,32,0,8,33,23,1,9,33,0,3],"type":"Buffer"}}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:52:57: lumi.switch.n0agl1: Processed buffer into data {"3":26,"5":2,"8":279,"9":768,"11":0,"100":0,"149":0.0002493178762961179,"150":2357.771240234375,"151":0,"152":0,"154":0}
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:52:57: lumi.switch.n0agl1: Processed data into payload {"device_temperature":26,"power_outage_count":1,"state":"OFF","energy":0,"consumption":0,"voltage":235.8,"current":0,"power":0}
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:52:57: lumi.switch.n0agl1: Processed data into payload {"device_temperature":26,"power_outage_count":1,"state":"OFF","energy":0,"consumption":0,"voltage":235.8,"current":0,"power":0}
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:52:57: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":148,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":235.8}'

Pulling the module from ac, and the same procedure as above.

zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:54:50: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:54:50: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":152,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":235.8}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:55:09: Received MQTT message on 'zigbee/0x54ef441000260518/set' with data '{"state":"ON"}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:55:09: Publishing 'set' 'state' to '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:55:09: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":152,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":235.8}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:55:09: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"onOff":1}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:55:09: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":152,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"ON","switch_type":null,"update":{"state":null},"update_available":null,"voltage":235.8}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:55:19: Saving state to file /app/data/state.json
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:56:05: Received MQTT message on 'zigbee/0x54ef441000260518/set' with data '{"state":"OFF"}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:56:05: Publishing 'set' 'state' to '0x54ef441000260518'
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:56:06: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":156,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":235.8}'
zigbee2mqtt  | Zigbee2MQTT:debug 2022-08-06 20:56:06: Received Zigbee message from '0x54ef441000260518', type 'attributeReport', cluster 'genOnOff', data '{"onOff":0}' from endpoint 1 with groupID 0
zigbee2mqtt  | Zigbee2MQTT:info  2022-08-06 20:56:06: MQTT publish: topic 'zigbee/0x54ef441000260518', payload '{"consumption":0,"current":0,"device_temperature":26,"energy":0,"linkquality":156,"power":0,"power_outage_count":1,"power_outage_memory":null,"state":"OFF","switch_type":null,"update":{"state":null},"update_available":null,"voltage":235.8}'

Now I see that it is missing the type 'attributeReport', cluster 'aqaraOpple' reports too.

@TomiCode TomiCode added the problem Something isn't working label Aug 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem Something isn't working stale Stale issues
Projects
None yet
Development

No branches or pull requests

1 participant