Skip to content

Commit

Permalink
Merge pull request #1192 from ABUAIJUTIE/patch-2
Browse files Browse the repository at this point in the history
Fix Linptech Pressure Sensor PS1BB
  • Loading branch information
AlexxIT authored Oct 30, 2023
2 parents 21f86cc + f31e6a2 commit f163c12
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions custom_components/xiaomi_gateway3/core/converters/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,13 @@
Converter("water_leak", mi="2.p.1006"),
Converter("battery", mi="3.p.1003"),
],
}, {
# https://home.miot-spec.com/spec/linp.senpres.ps1bb
16204: ["Linptech", "Pressure Sensor", "PS1BB"],
"spec": [
BoolConv("pressure_state", "binary_sensor", mi="2.p.1060"), # bool
Converter("battery", "sensor", mi="3.p.1003"),
],
}]

# Xiaomi BLE MiBeacon only spec
Expand Down Expand Up @@ -3109,10 +3116,4 @@
"spec": [
Converter("switch", "switch", mi="2.p.1", enabled=None), # bool
],
}, {
16204: ["Linptech", "Pressure Sensor", "linp.senpres.ps1bb"],
"spec": [
Converter("pressure", "binary_sensor", mi="2.p.1060"), # bool
Converter("battery", "sensor", mi="3.p.1003"),
],
}]

0 comments on commit f163c12

Please sign in to comment.