Skip to content

Commit

Permalink
Merge pull request #1503 from kei81131/master
Browse files Browse the repository at this point in the history
Add support for linp.sensor_occupy.es3
  • Loading branch information
AlexxIT authored Dec 25, 2024
2 parents cd9a2d1 + 180f9b2 commit 965da42
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,20 @@
BaseConv("has_someone_duration", "sensor", mi="2.p.1081", entity=ENTITY_DISABLED),
BaseConv("no_one_duration", "sensor", mi="2.p.1082", entity=ENTITY_DISABLED),
],
}, {
# https://home.miot-spec.com/spec/linp.sensor_occupy.es3
# https://home.mi.com/views/introduction.html?model=linp.sensor_occupy.es2
20731: ["Linptech", "Human Presence Sensor ES3", "ES3BB", "linp.sensor_occupy.es2"],
"spec": [
# main sensors
BoolConv("occupancy", "binary_sensor", mi="2.p.1078"),
BaseConv("illuminance", "sensor", mi="2.p.1005"),
# other sensors
BaseConv("battery", "sensor", mi="4.p.1003", entity=ENTITY_LAZY),
BaseConv("customized_property", "binary_sensor", mi="5.p.1018"), #customized distance trigger
BaseConv("has_someone_duration", "sensor", mi="2.p.1080", entity=ENTITY_DISABLED),
BaseConv("no_one_duration", "sensor", mi="2.p.1079", entity=ENTITY_DISABLED),
],
}, {
# https://github.com/AlexxIT/XiaomiGateway3/pull/1118
13617: ["xiaomi", "Motion Sensor 2s", "XMPIRO25XS", "xiaomi.motion.pir1"],
Expand Down

0 comments on commit 965da42

Please sign in to comment.