瀏覽代碼

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