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

fix(quad_power_timer): use string DPs for cycle/random/inching schedules (#4762)

Tuya standard data model for dps 42-44 on these power strips is maxlen
string (see e.g. device discussion for LDNIO strips). Base64 typing
caused decode warnings and empty values for plain string payloads.

Made-with: Cursor

Co-authored-by: Rafael Ahmedov <rafael.akhmedov@guavapay.com>
Rafael Ahmedov 1 день назад
Родитель
Сommit
2bc3bde682
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      custom_components/tuya_local/devices/quad_power_timer.yaml

+ 3 - 3
custom_components/tuya_local/devices/quad_power_timer.yaml

@@ -194,7 +194,7 @@ entities:
     hidden: true
     hidden: true
     dps:
     dps:
       - id: 42
       - id: 42
-        type: base64
+        type: string
         optional: true
         optional: true
         name: value
         name: value
   - entity: text
   - entity: text
@@ -204,7 +204,7 @@ entities:
     hidden: true
     hidden: true
     dps:
     dps:
       - id: 43
       - id: 43
-        type: base64
+        type: string
         optional: true
         optional: true
         name: value
         name: value
   - entity: text
   - entity: text
@@ -214,6 +214,6 @@ entities:
     hidden: true
     hidden: true
     dps:
     dps:
       - id: 44
       - id: 44
-        type: base64
+        type: string
         optional: true
         optional: true
         name: value
         name: value