소스 검색

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