Преглед изворни кода

fix: invert filter time check (days countdown) and scale UV runtime

Alex Maras пре 3 година
родитељ
комит
e028ea8b70
1 измењених фајлова са 7 додато и 7 уклоњено
  1. 7 7
      custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

+ 7 - 7
custom_components/tuya_local/devices/catit_pixi_smart_fountain.yaml

@@ -25,13 +25,15 @@ secondary_entities:
       - id: 4
       - id: 4
         type: integer
         type: integer
         name: value
         name: value
+        readonly: true
         range:
         range:
           min: 0
           min: 0
           max: 43200
           max: 43200
         mapping:
         mapping:
-          - scale: 1
+          - scale: 1440 # minutes => days
             step: 1
             step: 1
-        unit: min
+            invert: true
+        unit: days
   - entity: switch
   - entity: switch
     name: Run UV Cycle
     name: Run UV Cycle
     icon: "mdi:bacteria"
     icon: "mdi:bacteria"
@@ -48,10 +50,8 @@ secondary_entities:
       - id: 11
       - id: 11
         type: integer
         type: integer
         name: value
         name: value
-        range:
-          min: 0
-          max: 10800
+        readonly: true
         mapping:
         mapping:
-          - scale: 1
+          - scale: 60
             step: 1
             step: 1
-        unit: s
+        unit: min