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

SJCGQ11LM - expose device temperature #3158

Merged
merged 5 commits into from
Oct 13, 2021
Merged

Conversation

Masterz69
Copy link
Contributor

Inspired by previous experience with Hubitat Elevation Xiaomi custom drivers by Markus (oh-lalabs.com).

Some Xiaomi/Aqara devices reports device internal temperature as data['65281']['3']. Like here:

debug 2021-10-12 04:58:43: Received Zigbee message from 'wlk BathR1 A', type 'attributeReport', cluster 'genBasic', 
data '{"65281":{"1":3055,"10":0,"100":0,"3":25,"4":5032,"5":13,"6":[0,1],"8":518}}' from endpoint 1 with groupID 0

"3":25 - this is device temperature.

It is already utilized in

  • fz.RTCGQ11LM_interval (motion&lum sensor RTCGQ11LM) &
  • fz.xiaomi_contact_interval (door magnet sensor MCCGQ11LM).

As well as Aqara SJCGQ11LM reports internal temperature.

IMHO it can be useful in some cases.
Device reports surface temperature with some offset:

  • it can be used for rough heating control or to detect - hot or cold water leak happened, f.e.

I hope my changes are correctly done.

Masterz69 and others added 5 commits October 4, 2021 22:40
Expose battery_low (reg. #8996).
Some Xiaomi device reports internal device temperature as message data['65281']['3'].
@Koenkk Koenkk merged commit 93bd3f4 into Koenkk:master Oct 13, 2021
@Koenkk
Copy link
Owner

Koenkk commented Oct 13, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants