Skip to content

Commit

Permalink
Update converter for ainice.sensor_occupy.rd #1310
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Dec 27, 2024
1 parent 166a6b8 commit 05ec3c3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions custom_components/xiaomi_gateway3/core/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -2933,9 +2933,42 @@
BoolConv("radar_group_occupancy", "binary_sensor", mi="3.p.2"),
BoolConv("radar_occupancy", "binary_sensor", mi="3.p.4"),
BoolConv("radar_enter_edge", "binary_sensor", mi="3.p.6"),
MathConv("radar_occupancy_duration", "sensor", mi="3.p.11"),
MathConv("radar_no_one_duration", "sensor", mi="3.p.12"),
BoolConv("radar_switch", "switch", mi="3.p.15"),
BoolConv("bluetooth_group_online_status", "binary_sensor", mi="4.p.2"),
BoolConv("bluetooth_group_enter_area", "binary_sensor", mi="4.p.5"),
MathConv("illuminance", "sensor", mi="5.p.2"),

MaskConv("bluetooth_online_1", "binary_sensor", mi="4.p.149", mask=1),
MaskConv("bluetooth_online_2", "binary_sensor", mi="4.p.149", mask=2),
MaskConv("bluetooth_online_3", "binary_sensor", mi="4.p.149", mask=4),
MaskConv("bluetooth_online_4", "binary_sensor", mi="4.p.149", mask=8),
MaskConv("bluetooth_online_5", "binary_sensor", mi="4.p.149", mask=16),
MaskConv("bluetooth_online_6", "binary_sensor", mi="4.p.149", mask=32),
MaskConv("bluetooth_online_7", "binary_sensor", mi="4.p.149", mask=64),
MaskConv("bluetooth_online_8", "binary_sensor", mi="4.p.149", mask=128),
MaskConv("bluetooth_online_9", "binary_sensor", mi="4.p.149", mask=256),
MaskConv("bluetooth_online_10", "binary_sensor", mi="4.p.149", mask=512),
MaskConv("bluetooth_online_11", "binary_sensor", mi="4.p.149", mask=1024),
MaskConv("bluetooth_online_12", "binary_sensor", mi="4.p.149", mask=2048),
MaskConv("bluetooth_online_13", "binary_sensor", mi="4.p.149", mask=4096),
MaskConv("bluetooth_online_14", "binary_sensor", mi="4.p.149", mask=8192),

MaskConv("bluetooth_enter_area_1", "binary_sensor", mi="4.p.149", mask=65536),
MaskConv("bluetooth_enter_area_2", "binary_sensor", mi="4.p.149", mask=131072),
MaskConv("bluetooth_enter_area_3", "binary_sensor", mi="4.p.149", mask=262144),
MaskConv("bluetooth_enter_area_4", "binary_sensor", mi="4.p.149", mask=524288),
MaskConv("bluetooth_enter_area_5", "binary_sensor", mi="4.p.149", mask=1048576),
MaskConv("bluetooth_enter_area_6", "binary_sensor", mi="4.p.149", mask=2097152),
MaskConv("bluetooth_enter_area_7", "binary_sensor", mi="4.p.149", mask=4194304),
MaskConv("bluetooth_enter_area_8", "binary_sensor", mi="4.p.149", mask=8388608),
MaskConv("bluetooth_enter_area_9", "binary_sensor", mi="4.p.149", mask=16777216),
MaskConv("bluetooth_enter_area_10", "binary_sensor", mi="4.p.149", mask=33554432),
MaskConv("bluetooth_enter_area_11", "binary_sensor", mi="4.p.149", mask=67108864),
MaskConv("bluetooth_enter_area_12", "binary_sensor", mi="4.p.149", mask=134217728),
MaskConv("bluetooth_enter_area_13", "binary_sensor", mi="4.p.149", mask=268435456),
MaskConv("bluetooth_enter_area_14", "binary_sensor", mi="4.p.149", mask=536870912),
]
}, {
# https://github.com/AlexxIT/XiaomiGateway3/issues/835
Expand Down

0 comments on commit 05ec3c3

Please sign in to comment.