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

Include support for temperature and power outage count in SSM-U02 #4263

Merged
merged 7 commits into from
May 21, 2022
Merged

Include support for temperature and power outage count in SSM-U02 #4263

merged 7 commits into from
May 21, 2022

Commits on May 15, 2022

  1. 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>
    inode64 committed May 15, 2022
    Configuration menu
    Copy the full SHA
    2fd108e View commit details
    Browse the repository at this point in the history
  2. revert commit

    inode64 committed May 15, 2022
    Configuration menu
    Copy the full SHA
    e14c613 View commit details
    Browse the repository at this point in the history

Commits on May 18, 2022

  1. Configuration menu
    Copy the full SHA
    4010378 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1b25ceb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    44cee62 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    30fa131 View commit details
    Browse the repository at this point in the history

Commits on May 19, 2022

  1. remove unnecessary code

    inode64 committed May 19, 2022
    Configuration menu
    Copy the full SHA
    040cec3 View commit details
    Browse the repository at this point in the history