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

Update Fresco_Hydrate_Ultra_Pet_Fountain.yaml

These changes should fix the formatting issues and trailing spaces that are causing the linting warnings + adding a fix for the non working waterlevel.
Hector 1 год назад
Родитель
Сommit
876759b4c4
1 измененных файлов с 18 добавлено и 18 удалено
  1. 18 18
      custom_components/tuya_local/devices/Fresco_Hydrate_Ultra_Pet_Fountain.yaml

+ 18 - 18
custom_components/tuya_local/devices/Fresco_Hydrate_Ultra_Pet_Fountain.yaml

@@ -1,21 +1,21 @@
 name: Hydrate Ultra
 name: Hydrate Ultra
 products:
 products:
-  - id: cuw2k3ho3e25fade  # Your device ID
+  - id: cuw2k3ho3e25fade  
     name: Hydrate Ultra
     name: Hydrate Ultra
 
 
 primary_entity:
 primary_entity:
   entity: light
   entity: light
   icon: "mdi:water-pump"
   icon: "mdi:water-pump"
   dps:
   dps:
-      - id: 101
-        type: boolean
-        name: switch  # Controls the on/off state of the light
-      - id: 102
-        name: brightness
-        type: integer
-        range:
-          min: 1
-          max: 10
+    - id: 101
+      type: boolean
+      name: switch  
+    - id: 102
+      name: brightness
+      type: integer
+      range:
+        min: 1
+        max: 10
 
 
 secondary_entities:
 secondary_entities:
   - entity: button
   - entity: button
@@ -24,7 +24,7 @@ secondary_entities:
     category: config
     category: config
     dps:
     dps:
       - id: 104
       - id: 104
-        type: integer  # Assuming the reset value might be an integer operation
+        type: integer  
         name: button
         name: button
   - entity: sensor
   - entity: sensor
     name: Filter life
     name: Filter life
@@ -39,7 +39,7 @@ secondary_entities:
           min: 0
           min: 0
           max: 43200
           max: 43200
         mapping:
         mapping:
-          - scale: 1440  # minutes => days
+          - scale: 1440  
             invert: true
             invert: true
         unit: d
         unit: d
   - entity: button
   - entity: button
@@ -48,7 +48,7 @@ secondary_entities:
     category: config
     category: config
     dps:
     dps:
       - id: 105
       - id: 105
-        type: integer  # Assuming the reset value might be an integer operation
+        type: integer  
         name: button
         name: button
   - entity: sensor
   - entity: sensor
     name: Pump maintenance
     name: Pump maintenance
@@ -90,15 +90,15 @@ secondary_entities:
     dps:
     dps:
       - id: 108
       - id: 108
         type: integer
         type: integer
-        name: water_level_raw
+        name: sensor
         mapping:
         mapping:
-          - dps_val: 1
+          - dps_val: "1"
             value: 1
             value: 1
-          - dps_val: 2
+          - dps_val: "2"
             value: 2
             value: 2
-          - dps_val: 3
+          - dps_val: "3"
             value: 3
             value: 3
-          - dps_val: 4
+          - dps_val: "4"
             value: 4
             value: 4
   - entity: sensor
   - entity: sensor
     name: UV runtime
     name: UV runtime