瀏覽代碼

feat (haier_airwater_heatpump): use a time entity to set the time

The time was exposed as a text entity, but is a prime candidate for the
time entity. Now does not need to be hidden by default, as it does not
take technical knowledge to make use of.

Format decoded from logs on #4701
Jason Rumney 1 月之前
父節點
當前提交
e6fc58dbb0
共有 1 個文件被更改,包括 14 次插入0 次删除
  1. 14 0
      custom_components/tuya_local/devices/haier_airwater_heatpump.yaml

+ 14 - 0
custom_components/tuya_local/devices/haier_airwater_heatpump.yaml

@@ -65,11 +65,25 @@ entities:
         range:
           min: 25
           max: 75
+  - entity: time
+    category: config
+    dps:
+      - id: 103
+        type: base64
+        optional: true
+        mask: "FF00"
+        name: hour
+      - id: 103
+        type: base64
+        optional: true
+        mask: "00FF"
+        name: minute
   - entity: text
     name: Time
     category: config
     icon: "mdi:clock"
     hidden: true
+    deprecated: time  # 2026-03-17
     dps:
       - id: 103
         type: base64