-
Notifications
You must be signed in to change notification settings - Fork 499
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
Removal of config/temperature
for various Xiaomi devices
#7827
Open
mattreim
wants to merge
9
commits into
dresden-elektronik:master
Choose a base branch
from
mattreim:config/temperature
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+33
−71
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fea078e
Remove config/temperature from xiaomi_wxkg11lm_mini_switch.json
mattreim e1261e5
Remove config/temperature from xiaomi_mccgq11lm_openclose_sensor.json
mattreim c155283
Remove config/temperature from lumi_sensor_wleak_aq1.json
mattreim 95686b0
Remove config/temperature from lumi_motion_ac01.json
mattreim a875ef1
Remove config/temperature from lumi_vibration_aq1.json
mattreim 0dff2ff
Remove config/temperature from xiaomi_rtcgqq11lm_presence_sensor.json
mattreim 49eea81
Add Xiaomi special attribute to swversion and formatting (xiaomi_rtc…
mattreim 8f85e17
name correction
mattreim 19eb20f
Revert standard swversion attribute for xiaomi_rtcgqq11lm_presence_se…
mattreim File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
"uuid": "85676803-9d00-47fe-838f-ce76dfafc276", | ||
"manufacturername": "$MF_LUMI", | ||
"modelid": "lumi.sensor_motion.aq2", | ||
"vendor": "Xiaomi", | ||
"product": "Aqara motion sensor RTCGQ11LM", | ||
"vendor": "Xiaomi Aqara", | ||
"product": "Motion sensor (RTCGQ11LM)", | ||
"sleeper": true, | ||
"status": "Gold", | ||
"subdevices": [ | ||
|
@@ -46,6 +46,19 @@ | |
}, | ||
{ | ||
"name": "attr/swversion", | ||
"parse": { | ||
"fn": "zcl:attr", | ||
"ep": "0x01", | ||
"cl": "0x0000", | ||
"at": "0x0001", | ||
"eval": "Item.val = '0.0.0_' + ('0000' + Attr.val.toString()).slice(-4)" | ||
}, | ||
"read": { | ||
"fn": "zcl:attr", | ||
"ep": "0x01", | ||
"cl": "0x0000", | ||
"at": "0x0001" | ||
}, | ||
"refresh.interval": 86400 | ||
}, | ||
{ | ||
|
@@ -58,9 +71,9 @@ | |
"name": "config/battery", | ||
"awake": true, | ||
"parse": { | ||
"at": "0xff01", | ||
"ep": 1, | ||
"fn": "xiaomi:special", | ||
"mf": "0x115F", | ||
"at": "0xFF01", | ||
"idx": "0x01", | ||
"script": "xiaomi_battery.js" | ||
} | ||
|
@@ -75,17 +88,6 @@ | |
{ | ||
"name": "config/reachable" | ||
}, | ||
{ | ||
"name": "config/temperature", | ||
"awake": true, | ||
"parse": { | ||
"at": "0xff01", | ||
"ep": 1, | ||
"eval": "Item.val = Attr.val * 100", | ||
"fn": "xiaomi:special", | ||
"idx": "0x03" | ||
} | ||
}, | ||
{ | ||
"name": "state/lastupdated" | ||
}, | ||
|
@@ -138,6 +140,19 @@ | |
}, | ||
{ | ||
"name": "attr/swversion", | ||
"parse": { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't this already reported through the Xiaomi special attribute? |
||
"fn": "zcl:attr", | ||
"ep": "0x01", | ||
"cl": "0x0000", | ||
"at": "0x0001", | ||
"eval": "Item.val = '0.0.0_' + ('0000' + Attr.val.toString()).slice(-4)" | ||
}, | ||
"read": { | ||
"fn": "zcl:attr", | ||
"ep": "0x01", | ||
"cl": "0x0000", | ||
"at": "0x0001" | ||
}, | ||
"refresh.interval": 86400 | ||
}, | ||
{ | ||
|
@@ -150,9 +165,9 @@ | |
"name": "config/battery", | ||
"awake": true, | ||
"parse": { | ||
"at": "0xff01", | ||
"ep": 1, | ||
"fn": "xiaomi:special", | ||
"mf": "0x115F", | ||
"at": "0xFF01", | ||
"idx": "0x01", | ||
"script": "xiaomi_battery.js" | ||
} | ||
|
@@ -193,4 +208,4 @@ | |
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this already reported through the Xiaomi special attribute?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tip, I'll try it again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to work.