Просмотр исходного кода

Add support for IHSENO Wi-Fi MmWave Human presence detector (#3845)

* Create ihseno_ztu_wifi24g_presence_sensor.yaml

initial commit to add IHSENO Wi-Fi 24g Human presence detector

* Update and rename ihseno_ztu_wifi24g_presence_sensor.yaml to ihseno_ztu_wifi24g_mmwave_presence_sensor.yaml

* changed binary sensor class from motion to occupancy

* feat (ihseno_ztu_presence_sensor): Naming changes

- shorten file name to conventional brand_model_devicetype format
- split manufacturer for product details, include model in model, don't repeat top level name
- follow HA naming convention, use clearer naming

PR #3845

* Fix typo

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
arsenicks 4 месяцев назад
Родитель
Сommit
ef49d5e37d
1 измененных файлов с 67 добавлено и 0 удалено
  1. 67 0
      custom_components/tuya_local/devices/ihseno_ztu_presencesensor.yaml

+ 67 - 0
custom_components/tuya_local/devices/ihseno_ztu_presencesensor.yaml

@@ -0,0 +1,67 @@
+name: Presence sensor
+products:
+  - id: chaayllciae8dlhn
+    manufacturer: iHseno
+    model: ZTU 24GHz mmWave WiFi
+entities:
+  - entity: binary_sensor
+    class: occupancy
+    dps:
+      - id: 1
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: pir
+            value: true
+          - value: false
+  - entity: select
+    name: Motion sensitivity
+    category: config
+    icon: "mdi:motion-sensor"
+    dps:
+      - id: 9
+        type: string
+        name: option
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: middle
+            value: Medium
+          - dps_val: high
+            value: High
+  - entity: sensor
+    class: illuminance
+    dps:
+      - id: 11
+        type: integer
+        name: sensor
+        unit: lx
+        class: measurement
+  - entity: select
+    name: Presence sensitivity
+    category: config
+    icon: "mdi:motion-sensor"
+    dps:
+      - id: 101
+        type: string
+        name: option
+        mapping:
+          - dps_val: low
+            value: Low
+          - dps_val: middle
+            value: Medium
+          - dps_val: high
+            value: High
+  - entity: number
+    name: Presence timeout
+    category: config
+    class: duration
+    icon: "mdi:camera-timer"
+    dps:
+      - id: 102
+        type: integer
+        name: value
+        unit: s
+        range:
+          min: 10
+          max: 600