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

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 лет назад
Родитель
Сommit
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
         name: option
         mapping:
         mapping:
           - dps_val: sunny
           - dps_val: sunny
-            value: Sunny
+            value: sunny
           - dps_val: clear
           - dps_val: clear
-            value: Clear
+            value: clear-night
+          - dps_val: cloud
+            value: partlycloudy
           - dps_val: cloudy
           - dps_val: cloudy
-            value: Cloudy
+            value: cloudy
           - dps_val: rainy
           - dps_val: rainy
-            value: Rain
+            value: rainy
           - dps_val: snow
           - dps_val: snow
-            value: Snow
+            value: snowy
           - dps_val: fog
           - dps_val: fog
-            value: Fog
+            value: fog