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

Support for GE Jasco Ultra Pro Dimmer, Toggle, and TH16 Temp sensor

Joe Lauer 3 лет назад
Родитель
Сommit
df5c4cbe4e

+ 77 - 0
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_dimmer_v2.yaml

@@ -0,0 +1,77 @@
+# Example DPS Status
+# {'dps': {'1': False, '2': 1000, '3': 10, '4': 'led', '5': 1000, '6': 0, '14': 'memory', '21': 'relay', '103': 'scene', '106': 'dimmer', '107': '3way_switch'}}
+name: GE Jasco Ultra Pro Toggle Dimmer v2
+products:
+  - id: genhs8iixkqve7sx
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+    - id: 2
+      type: integer
+      name: brightness
+      range:
+        min: 10
+        max: 1000
+      mapping:
+        - scale: 3.92
+secondary_entities:
+  - entity: select
+    name: Bulb Type
+    category: config
+    dps:
+      - id: 4
+        name: option
+        type: string
+        mapping:
+          - dps_val: halogen
+            value: Halogen
+          - dps_val: incandescent
+            value: Incandescent
+          - dps_val: led
+            value: LED
+  - entity: number
+    category: config
+    name: Countdown
+    icon: "mdi:timer"
+    dps:
+      - id: 6
+        name: value
+        type: integer
+        unit: min
+        range:
+          min: 0
+          max: 86400
+        mapping:
+          - scale: 60
+            step: 60
+  - entity: select
+    category: config
+    name: Restore power state
+    dps:
+      - id: 14
+        name: option
+        type: string
+        mapping:
+          - dps_val: memory
+            value: Remember Last Status
+          - dps_val: "on"
+            value: "On"
+          - dps_val: "off"
+            value: "Off"
+  - entity: select
+    name: Indicator Light
+    category: config
+    dps:
+      - id: 21
+        name: option
+        type: string
+        mapping:
+          - dps_val: none
+            value: Indicator LED off
+          - dps_val: pos
+            value: Indicate switch location
+          - dps_val: relay
+            value: Indicate switch on/off

+ 40 - 0
custom_components/tuya_local/devices/ge_jasco_ultra_pro_toggle_switch.yaml

@@ -0,0 +1,40 @@
+# Example DPS Status
+# {'dps': {'1': False, '14': 'memory', '15': 'relay', '106': '3way_switch'}}
+name: GE Jasco Ultra Pro Toggle Switch
+products:
+  - id: 7kvomtxxfqcrbiqq
+primary_entity:
+  entity: light
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+secondary_entities:
+  - entity: select
+    category: config
+    name: Restore power state
+    dps:
+      - id: 14
+        name: option
+        type: string
+        mapping:
+          - dps_val: memory
+            value: Remember Last Status
+          - dps_val: "on"
+            value: "On"
+          - dps_val: "off"
+            value: "Off"
+  - entity: select
+    name: Indicator Light
+    category: config
+    dps:
+      - id: 15
+        name: option
+        type: string
+        mapping:
+          - dps_val: none
+            value: Indicator LED off
+          - dps_val: pos
+            value: Indicate switch location
+          - dps_val: relay
+            value: Indicate switch on/off

+ 39 - 0
custom_components/tuya_local/devices/th16_temp_humidity_sensor.yaml

@@ -0,0 +1,39 @@
+# Example DPS Status
+# {'dps': {'1': 226, '2': 41, '9': 'f'}}
+name: TH16 TH06WB3S Temperature and Humidity Sensor
+products:
+  - id: 7akwzwfwhukkdsib
+primary_entity:
+  entity: sensor
+  name: Temperature
+  class: temperature
+  dps:
+    - id: 1
+      name: sensor
+      type: integer
+      unit: C
+      mapping:
+        - scale: 10
+      class: measurement
+secondary_entities:
+  - entity: sensor
+    name: Humidity
+    class: humidity
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: select
+    name: Display Units
+    category: config
+    dps:
+      - id: 9
+        name: option
+        type: string
+        mapping:
+          - dps_val: "f"
+            value: Fahrenheit
+          - dps_val: "c"
+            value: Celcius