Skip to content

Commit

Permalink
Add binary sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernst79 committed Jun 14, 2024
1 parent bdaf812 commit 7f6ac96
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion custom_components/ble_monitor/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,26 @@ class BLEMonitorBinarySensorEntityDescription(
device_class=BinarySensorDeviceClass.POWER,
force_update=True,
),
BLEMonitorBinarySensorEntityDescription(
key="reset",
sensor_class="BaseBinarySensor",
update_behavior="Instantly",
name="reset",
unique_id="reset_",
icon="mdi:arrow-u-left-top",
device_class=None,
force_update=True,
),
BLEMonitorBinarySensorEntityDescription(
key="pressure state",
sensor_class="BaseBinarySensor",
update_behavior="Instantly",
name="pressure state",
unique_id="pressure_state_",
icon="mdi:car-brake-low-pressure",
device_class=None,
force_update=False,
),
)


Expand Down Expand Up @@ -1780,6 +1800,7 @@ class BLEMonitorBinarySensorEntityDescription(
'K9BB-1BTN' : [["battery", "rssi"], ["one btn switch"], []],
'MS1BB(MI)' : [["battery", "rssi"], ["button"], ["opening"]],
'HS1BB(MI)' : [["illuminance", "battery", "rssi"], [], ["motion"]],
'PS1BB' : [["battery", "rssi"], [], ["reset", "pressure state"]],
'XMPIRO2SXS' : [["illuminance", "battery", "rssi"], [], ["motion"]],
'XMWXKG01YL' : [["rssi"], ["two btn switch left", "two btn switch right"], []],
'XMWXKG01LM' : [["battery", "rssi"], ["one btn switch"], []],
Expand All @@ -1790,7 +1811,6 @@ class BLEMonitorBinarySensorEntityDescription(
'YLYK01YL-VENFAN' : [["rssi"], ["ventilator fan remote"], []],
'YLYB01YL-BHFRC' : [["rssi"], ["bathroom heater remote"], []],
'YLKG07YL/YLKG08YL' : [["rssi"], ["dimmer"], []],
'PS1BB' : [["battery", "rssi"], [], []],
'SU001-T' : [["battery", "rssi"], [], ["motion", "switch"]],
'ATC' : [["temperature", "humidity", "battery", "voltage", "rssi"], [], ["switch", "opening"]],
'Mi Scale V1' : [["rssi"], ["weight", "non-stabilized weight"], ["weight removed"]],
Expand Down

0 comments on commit 7f6ac96

Please sign in to comment.