소스 검색

HCT611: Add additional smart weather state, use HA weather strings

Device has "cloud" as well as "cloudy" according to comment on #747.
Map the device weather strings to the underlying strings of HA weather platform.
This will allow using the translations from there when we can figure out how
to do that, and also should allow passing values directly from a weather
integration to the select to show on the device (if cloud does not conflict
with local control of that).
Jason Rumney 2 년 전
부모
커밋
298fafecfb
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 6
      custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

+ 8 - 6
custom_components/tuya_local/devices/ble_hct611_watertimer.yaml

@@ -68,15 +68,17 @@ secondary_entities:
         name: option
         mapping:
           - dps_val: sunny
-            value: Sunny
+            value: sunny
           - dps_val: clear
-            value: Clear
+            value: clear-night
+          - dps_val: cloud
+            value: partlycloudy
           - dps_val: cloudy
-            value: Cloudy
+            value: cloudy
           - dps_val: rainy
-            value: Rain
+            value: rainy
           - dps_val: snow
-            value: Snow
+            value: snowy
           - dps_val: fog
-            value: Fog
+            value: fog