Browse Source

Support for Brennenstuhl WFD 3050 P

This adds supports for a PIR-activated spotlight that I have: Brennenstuhl WFD 3050 P.
Piotr Szulc 2 years ago
parent
commit
8ad033f044
1 changed files with 168 additions and 0 deletions
  1. 168 0
      custom_components/tuya_local/devices/pir_spotlight.yaml

+ 168 - 0
custom_components/tuya_local/devices/pir_spotlight.yaml

@@ -0,0 +1,168 @@
+name: PIR Spotlight
+products:
+  - id: reldobj3ny6fbgvw
+    name: WiFi Duo LED Light WFD 3050 P
+
+primary_entity:
+  entity: light
+  dps:
+    - id: 20
+      type: boolean
+      name: switch
+    - id: 21
+      type: string
+      name: work_mode
+      mapping:
+        - dps_val: colour
+          value: hs
+        - dps_val: white
+          value: white
+        - dps_val: music
+          value: Music
+        - dps_val: scene
+          value: Scene
+    - id: 22
+      name: brightness
+      type: integer
+      range:
+        min: 10
+        max: 1000
+      mapping:
+        - dps_val: null
+        - scale: 3.92
+    - id: 23
+      name: color_temp
+      type: integer
+      optional: true
+      range:
+        min: 0
+        max: 1000
+      mapping:
+        - invert: true
+secondary_entities:
+  - entity: number
+    name: Timer
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 26
+        name: value
+        type: integer
+        optional: true
+        range:
+          min: 0
+          max: 86400
+        unit: min
+        mapping:
+          - scale: 60
+            step: 60
+          - dps_val: null
+  - entity: select
+    name: Mode
+    category: config
+    dps:
+      - id: 51
+        type: string
+        name: option
+        mapping:
+          - dps_val: auto
+            value: Sensor
+          - dps_val: manual
+            value: Manual
+  - entity: switch
+    name: PIR enabled
+    category: config
+    dps:
+      - id: 56
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    class: motion
+    dps:
+      - id: 52
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: "pir"
+            value: true
+          - dps_val: "none"
+            value: false
+  - entity: select
+    name: Motion Distance
+    category: config
+    dps:
+      - id: 54
+        type: string
+        name: option
+        mapping:
+          - dps_val: "high"
+            value: "Far"
+          - dps_val: "low"
+            value: "Near"
+          - dps_val: "middle"
+            value: "Medium"
+  - entity: number
+    name: Full light duration
+    category: config
+    icon: "mdi:timer"
+    dps:
+      - id: 55
+        name: value
+        type: integer
+        range:
+          min: 5
+          max: 3600
+        unit: s
+        mapping:
+          - scale: 1
+          - dps_val: null
+  - entity: number
+    name: Standby Delay
+    category: config
+    dps:
+      - id: 58
+        name: value
+        type: integer
+        range:
+          min: 1
+          max: 480
+        unit: m
+        mapping:
+          - scale: 1
+          - dps_val: null
+  - entity: number
+    name: Standby Bright
+    category: config
+    dps:
+      - id: 59
+        name: value
+        type: integer
+        range:
+          min: 0
+          max: 1000
+        unit: m
+        mapping:
+          - scale: 1
+          - dps_val: null
+  - entity: select
+    name: Ambient Light Sensor
+    category: config
+    dps:
+      - id: 53
+        type: string
+        name: option
+        mapping:
+          - dps_val: 10lux
+            value: 10lux
+          - dps_val: 2000lux
+            value: 2000lux
+          - dps_val: 300lux
+            value: 300lux
+          - dps_val: 50lux
+            value: 50lux
+          - dps_val: 10lux
+            value: 10lux
+          - dps_val: 5lux
+            value: 5lux
+          - dps_val: now
+            value: Now