-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Include support for temperature and power outage count in SSM-U02 #4263
Merged
Commits on May 15, 2022
-
subtract 1 from power_outage_count
power_outage_count is always 1 initially, and should be subtracted from 1 to make it 0 to show the number of times the device's power has actually been interrupted <pre> info 2022-05-14 08:43:31: Successfully interviewed '0x04cf8cdf3c8e8762', device has successfully been paired info 2022-05-14 08:43:31: Device '0x04cf8cdf3c8e8762' is supported, identified as: Xiaomi Aqara single switch module T1 (with neutral) (SSM-U01) info 2022-05-14 08:43:31: MQTT publish: topic 'zigbee2mqtt/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","nam info 2022-05-14 08:43:31: Configuring '0x04cf8cdf3c8e8762' info 2022-05-14 08:43:31: MQTT publish: topic 'zigbee2mqtt/bridge/log', payload '{"message":"interview_successful","meta":{"description":"Aqara single switch module T1 (with neutral)","friendly_name":"0x04cf8cdf3c8e8762","model":"SSM-U01","supported":true,"vendor":"Xiaomi"},"type":"pairing"}' info 2022-05-14 08:43:31: Successfully configured '0x04cf8cdf3c8e8762' debug 2022-05-14 08:43:32: Received Zigbee message from '0x04cf8cdf3c8e8762', type 'attributeReport', cluster 'genBasic', data '{"appVersion":23}' from endpoint 1 with groupID null debug 2022-05-14 08:43:33: Received Zigbee message from '0x04cf8cdf3c8e8762', type 'attributeReport', cluster 'aqaraOpple', data '{"247":{"data":[100,16,0,3,40,22,152,57,0,0,0,0,149,57,0,0,0,0,150,57,13,111,18,69,151,57,0,0,0,0,5,33,1,0,154,32,0,11,32,0,8,33,23,1,9,33,0,1],"type":"Buffer"}}' from endpoint 1 with groupID null debug 2022-05-14 08:43:33: lumi.switch.n0agl1: Processed buffer into data {"3":22,"5":1,"8":279,"9":256,"11":0,"100":0,"149":0,"150":2342.940673828125,"151":0,"152":0,"154":0} debug 2022-05-14 08:43:33: lumi.switch.n0agl1: unknown key 8 with value 279 debug 2022-05-14 08:43:33: lumi.switch.n0agl1: unknown key 9 with value 256 debug 2022-05-14 08:43:33: lumi.switch.n0agl1: unknown key 154 with value 0 debug 2022-05-14 08:43:33: lumi.switch.n0agl1: Processed data into payload {"temperature":22,"power_outage_count":1,"illuminance":0,"illuminance_lux":0,"state":"OFF","energy":0,"consumption":0,"voltage":234.3,"current":0,"power":0} debug 2022-05-14 08:43:33: lumi.switch.n0agl1: Processed data into payload {"temperature":22,"power_outage_count":1,"illuminance":0,"illuminance_lux":0,"state":"OFF","energy":0,"consumption":0,"voltage":234.3,"current":0,"power":0} </pre>
Configuration menu - View commit details
-
Copy full SHA for 2fd108e - Browse repository at this point
Copy the full SHA 2fd108eView commit details -
Configuration menu - View commit details
-
Copy full SHA for e14c613 - Browse repository at this point
Copy the full SHA e14c613View commit details
Commits on May 18, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4010378 - Browse repository at this point
Copy the full SHA 4010378View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b25ceb - Browse repository at this point
Copy the full SHA 1b25cebView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44cee62 - Browse repository at this point
Copy the full SHA 44cee62View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30fa131 - Browse repository at this point
Copy the full SHA 30fa131View commit details
Commits on May 19, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 040cec3 - Browse repository at this point
Copy the full SHA 040cec3View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.