Skip to content

Commit

Permalink
Fix Honeywell Formaldehyde Monitor spec #1177
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Apr 4, 2024
1 parent 5160ab9 commit 34adf85
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,15 @@
BaseConv("temperature", "sensor"),
],
"ttl": "12h",
}, {
735: ["Xiaomi", "Honeywell Formaldehyde Monitor", "JQJCY01YM", "yuemee.airmonitor.mhfd1"],
"spec": [
BLEMathConv("temperature", "sensor", mi=4100, multiply=0.1, round=1, signed=True), # int16
BLEMathConv("humidity", "sensor", mi=4102, multiply=0.1), # uint16
BLEByteConv("battery", "sensor", mi=4106, entity=ENTITY_LAZY), # no in new firmwares
# https://github.com/AlexxIT/XiaomiGateway3/issues/1177
BLEMathConv("formaldehyde", "sensor", mi=4112, multiply=0.01), # uint16
],
}, {
1161: ["Xiaomi", "Toothbrush T500", "MES601"],
"spec": [
Expand Down Expand Up @@ -1414,6 +1423,7 @@
BLEMathConv("temperature", "sensor", mi=4100, multiply=0.1, round=1, signed=True), # int16
BLEMathConv("humidity", "sensor", mi=4102, multiply=0.1), # uint16
BLEByteConv("battery", "sensor", mi=4106, entity=ENTITY_LAZY), # no in new firmwares
# https://github.com/AlexxIT/XiaomiGateway3/issues/1127
BLEMathConv("formaldehyde", "sensor", mi=4112, multiply=0.001), # uint16
]
}, {
Expand Down

0 comments on commit 34adf85

Please sign in to comment.