Skip to content

Commit 7f6ac96

Browse files
committed
Add binary sensors
1 parent bdaf812 commit 7f6ac96

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

custom_components/ble_monitor/const.py

+21-1
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,26 @@ class BLEMonitorBinarySensorEntityDescription(
523523
device_class=BinarySensorDeviceClass.POWER,
524524
force_update=True,
525525
),
526+
BLEMonitorBinarySensorEntityDescription(
527+
key="reset",
528+
sensor_class="BaseBinarySensor",
529+
update_behavior="Instantly",
530+
name="reset",
531+
unique_id="reset_",
532+
icon="mdi:arrow-u-left-top",
533+
device_class=None,
534+
force_update=True,
535+
),
536+
BLEMonitorBinarySensorEntityDescription(
537+
key="pressure state",
538+
sensor_class="BaseBinarySensor",
539+
update_behavior="Instantly",
540+
name="pressure state",
541+
unique_id="pressure_state_",
542+
icon="mdi:car-brake-low-pressure",
543+
device_class=None,
544+
force_update=False,
545+
),
526546
)
527547

528548

@@ -1780,6 +1800,7 @@ class BLEMonitorBinarySensorEntityDescription(
17801800
'K9BB-1BTN' : [["battery", "rssi"], ["one btn switch"], []],
17811801
'MS1BB(MI)' : [["battery", "rssi"], ["button"], ["opening"]],
17821802
'HS1BB(MI)' : [["illuminance", "battery", "rssi"], [], ["motion"]],
1803+
'PS1BB' : [["battery", "rssi"], [], ["reset", "pressure state"]],
17831804
'XMPIRO2SXS' : [["illuminance", "battery", "rssi"], [], ["motion"]],
17841805
'XMWXKG01YL' : [["rssi"], ["two btn switch left", "two btn switch right"], []],
17851806
'XMWXKG01LM' : [["battery", "rssi"], ["one btn switch"], []],
@@ -1790,7 +1811,6 @@ class BLEMonitorBinarySensorEntityDescription(
17901811
'YLYK01YL-VENFAN' : [["rssi"], ["ventilator fan remote"], []],
17911812
'YLYB01YL-BHFRC' : [["rssi"], ["bathroom heater remote"], []],
17921813
'YLKG07YL/YLKG08YL' : [["rssi"], ["dimmer"], []],
1793-
'PS1BB' : [["battery", "rssi"], [], []],
17941814
'SU001-T' : [["battery", "rssi"], [], ["motion", "switch"]],
17951815
'ATC' : [["temperature", "humidity", "battery", "voltage", "rssi"], [], ["switch", "opening"]],
17961816
'Mi Scale V1' : [["rssi"], ["weight", "non-stabilized weight"], ["weight removed"]],

0 commit comments

Comments
 (0)