Sfoglia il codice sorgente

Update Fresco_Hydrate_Ultra_Pet_Fountain.yaml

Removed class duration from normal statuses.
Fixed the reset buttons
Hector 1 anno fa
parent
commit
fedafe3fbe

+ 6 - 3
custom_components/tuya_local/devices/Fresco_Hydrate_Ultra_Pet_Fountain.yaml

@@ -39,7 +39,6 @@ secondary_entities:
           min: 0
           min: 0
           max: 7200
           max: 7200
         unit: min
         unit: min
-        class: duration
 
 
   - entity: button
   - entity: button
     name: Reset Filter
     name: Reset Filter
@@ -49,6 +48,9 @@ secondary_entities:
       - id: 104
       - id: 104
         type: integer
         type: integer
         name: button
         name: button
+        mapping:
+          - dps_val: 0
+            value: true
 
 
   - entity: sensor
   - entity: sensor
     name: Filter life
     name: Filter life
@@ -62,7 +64,6 @@ secondary_entities:
           min: 0
           min: 0
           max: 43200
           max: 43200
         unit: min
         unit: min
-        class: duration
 
 
   - entity: button
   - entity: button
     name: Reset Pump
     name: Reset Pump
@@ -72,6 +73,9 @@ secondary_entities:
       - id: 105
       - id: 105
         type: integer
         type: integer
         name: button
         name: button
+        mapping:
+          - dps_val: 0
+            value: true
 
 
   - entity: sensor
   - entity: sensor
     name: Pump maintenance
     name: Pump maintenance
@@ -85,7 +89,6 @@ secondary_entities:
           min: 0
           min: 0
           max: 86400
           max: 86400
         unit: min
         unit: min
-        class: duration
 
 
   - entity: sensor
   - entity: sensor
     name: Water quality
     name: Water quality