소스 검색

Update sws01_weather_station.yaml (#2251)

Add screen brightness control.
Dedemoos 1 년 전
부모
커밋
5f46c15f10
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  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
         unit: "%"
         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