Skip to content
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

Add support for linp.sensor_occupy.es3 #1503

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
kei81131 marked this conversation as resolved.
Show resolved Hide resolved
20731: ["Linp", "Occupancy Sensor", "ES3", "linp.sensor_occupy.es3"],
kei81131 marked this conversation as resolved.
Show resolved Hide resolved
"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"),
kei81131 marked this conversation as resolved.
Show resolved Hide resolved
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