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

Add support for Timeguard WFPIR motion light controller

Issue #1590
Jason Rumney 2 лет назад
Родитель
Сommit
ad51b42d85
3 измененных файлов с 122 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 120 0
      custom_components/tuya_local/devices/timeguard_wfpir.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -494,3 +494,4 @@ Further device support has been made with the assistance of users. Please consid
 - [LordPsycho202](https://github.com/LordPsycho202) for contributing support for Leo's Loo Too pet toilets.
 - [RoelDU](https://github.com/RoelDU) for assisting with support for Mirabella Genio Pixel oval lights.
 - [toposilva](https://github.com/toposilva) for assisting with support for 1CH dimmer modules.
+- [Pel1can111](https://github.com/Pel1can111) for assisting with support for Timeguard WFPIR motion light controller.

+ 1 - 0
DEVICES.md

@@ -629,6 +629,7 @@ port and password.
 - SWS-001 smart weather station
 - TH08 temperature and humidity sensor
 - TH16 temperature and humidity sensor
+- Timeguard WFPIR motion light controller
 - Tonepie T1PRO automatic cat litter box
 - Tontine electric blanket
 - Valehaus SYZN119 towel warmer

+ 120 - 0
custom_components/tuya_local/devices/timeguard_wfpir.yaml

@@ -0,0 +1,120 @@
+name: PIR relay
+products:
+  - id: i0lqhz9ejwtuykz5
+    name: Timeguard WFPIR
+primary_entity:
+  entity: switch
+  name: Relay
+  class: switch
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 107
+      type: integer
+      name: rd_test
+secondary_entities:
+  - entity: binary_sensor
+    class: motion
+    dps:
+      - id: 101
+        type: boolean
+        name: sensor
+  - entity: button
+    name: Factory reset
+    class: restart
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: button
+  - entity: select
+    name: Function
+    icon: "mdi:refresh-auto"
+    category: config
+    dps:
+      - id: 103
+        type: string
+        name: option
+        mapping:
+          - dps_val: Auto
+            value: Auto
+          - dps_val: SemiAuto
+            value: Semi-auto
+          - dps_val: Test
+            value: Test
+  - entity: number
+    name: Duration
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 104
+        type: integer
+        name: value
+        unit: s
+        optional: true
+        range:
+          min: 30
+          max: 1800
+        mapping:
+          - step: 30
+  - entity: number
+    class: illuminance
+    category: config
+    icon: "mdi:theme-light-dark"
+    dps:
+      - id: 105
+        type: integer
+        name: value
+        unit: lx
+        range:
+          min: 5
+          max: 2000
+        mapping:
+          - step: 5
+  - entity: select
+    name: Sensitivity
+    icon: "mdi:motion-sensor"
+    category: config
+    dps:
+      - id: 106
+        type: string
+        name: option
+        mapping:
+          - dps_val: Level1
+            value: "25%"
+          - dps_val: Level2
+            value: "50%"
+          - dps_val: Level3
+            value: "75%"
+          - dps_val: Level4
+            value: "100%"
+  - entity: light
+    name: Indicator
+    icon: "mdi:led-on"
+    category: config
+    dps:
+      - id: 108
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Learn light level
+    category: config
+    dps:
+      - id: 109
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Detect light
+    category: config
+    dps:
+      - id: 110
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Timed
+    category: config
+    dps:
+      - id: 117
+        type: boolean
+        name: switch