Browse Source

Update sws01_weather_station.yaml (#2251)

Add screen brightness control.
Dedemoos 1 year ago
parent
commit
5f46c15f10
1 changed files with 16 additions and 0 deletions
  1. 16 0
      custom_components/tuya_local/devices/sws01_weather_station.yaml

+ 16 - 0
custom_components/tuya_local/devices/sws01_weather_station.yaml

@@ -84,3 +84,19 @@ secondary_entities:
         name: sensor
         name: sensor
         unit: "%"
         unit: "%"
         class: measurement
         class: measurement
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 106
+        type: integer
+        name: brightness
+        mapping:
+          - dps_val: 0
+            value: 0
+          - dps_val: 1
+            value: 85
+          - dps_val: 2
+            value: 170
+          - dps_val: 3
+            value: 255