Преглед изворни кода

Zigbee door sensor: add compatible Mirabella Genio sensor

- add optional tamper sensor that the Mirabella has.

PR #2659
Jason Rumney пре 1 година
родитељ
комит
f666358359
1 измењених фајлова са 12 додато и 2 уклоњено
  1. 12 2
      custom_components/tuya_local/devices/tuya_smart_zigbee_door_sensor.yaml

+ 12 - 2
custom_components/tuya_local/devices/tuya_smart_zigbee_door_sensor.yaml

@@ -1,7 +1,9 @@
-name: Tuya Smart Zigbee Door Sensor
+name: Door sensor
 products:
+  - id: iqoy7jgeosgbgk9i
+    name: Mirabella Genio door/window sensor
   - id: 7jIGJAymiH8OsFFb
-    name: Tuya Smart Zigbee Door Sensor
+    name: Zigbee door sensor
 primary_entity:
   entity: binary_sensor
   class: door
@@ -20,3 +22,11 @@ secondary_entities:
         optional: true
         unit: "%"
         class: measurement
+  - entity: binary_sensor
+    class: tamper
+    category: diagnostic
+    dps:
+      - id: 102
+        type: boolean
+        optional: true
+        name: sensor