Skip to content

Commit

Permalink
Add support for linp.sensor_occupy.es3
Browse files Browse the repository at this point in the history
  • Loading branch information
kei81131 authored Nov 29, 2024
1 parent 43a3c39 commit 12059e4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 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,19 @@
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
20731: ["Linp", "Occupancy Sensor", "ES3", "linp.sensor_occupy.es3"],
"spec": [
# main sensors
BoolConv("occupancy", "binary_sensor", mi="2.p.1078"),
BaseConv("illuminance", "sensor", mi="2.p.1005"),
# other sensors
BaseConv("battery", "sensor", mi="3.p.1003"),
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 12059e4

Please sign in to comment.