浏览代码

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