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

feat: add scheduling activation switches and secondary timers for Joyonway PB562 (#5007)

Update joyonway_pb562_spacontroller.yaml

Adding toogle for schedule filtration and heating
Adding Filtration schedule clock 2
Adding Heating schedule clock 2

* feat(joyonway_pb562_spacontroller): naming and icon tweaks

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
Thomas 1 неделя назад
Родитель
Сommit
e345d0a20b
1 измененных файлов с 115 добавлено и 7 удалено
  1. 115 7
      custom_components/tuya_local/devices/joyonway_pb562_spacontroller.yaml

+ 115 - 7
custom_components/tuya_local/devices/joyonway_pb562_spacontroller.yaml

@@ -49,10 +49,48 @@ entities:
         type: boolean
         type: boolean
         name: switch
         name: switch
 
 
-  # --- SCHEDULES (MINUTES FROM MIDNIGHT) ---
+  # --- SCHEDULES ACTIVATION ---
+  - entity: switch
+    name: Filtration schedule 1
+    icon: "mdi:calendar-check"
+    category: config
+    dps:
+      - id: 139
+        type: boolean
+        name: switch
+
+  - entity: switch
+    name: Filtration schedule 2
+    icon: "mdi:calendar-check"
+    category: config
+    dps:
+      - id: 140
+        type: boolean
+        name: switch
+
+  - entity: switch
+    name: Heating schedule
+    icon: "mdi:calendar-check"
+    category: config
+    dps:
+      - id: 131
+        type: boolean
+        name: switch
+
+  - entity: switch
+    name: Heating schedule 2
+    icon: "mdi:calendar-check"
+    category: config
+    dps:
+      - id: 132
+        type: boolean
+        name: switch
+
+  # --- SCHEDULES TIME (HEAT) ---
   - entity: time
   - entity: time
     name: Heating start
     name: Heating start
-    icon: mdi:clock-start
+    icon: "mdi:clock-start"
+    category: config
     dps:
     dps:
       - id: 127
       - id: 127
         type: integer
         type: integer
@@ -60,10 +98,14 @@ entities:
         range:
         range:
           min: 0
           min: 0
           max: 1439
           max: 1439
+      - id: 131
+        type: boolean
+        name: available
 
 
   - entity: time
   - entity: time
     name: Heating end
     name: Heating end
-    icon: mdi:clock-end
+    icon: "mdi:clock-end"
+    category: config
     dps:
     dps:
       - id: 128
       - id: 128
         type: integer
         type: integer
@@ -71,10 +113,69 @@ entities:
         range:
         range:
           min: 0
           min: 0
           max: 1439
           max: 1439
+      - id: 131
+        type: boolean
+        name: available
+
+  - entity: time
+    name: Heating start 2
+    icon: "mdi:clock-start"
+    category: config
+    dps:
+      - id: 129
+        type: integer
+        name: minute
+      - id: 132
+        type: boolean
+        name: available
+
+  - entity: time
+    name: Heating end 2
+    icon: "mdi:clock-end"
+    category: config
+    dps:
+      - id: 130
+        type: integer
+        name: minute
+      - id: 132
+        type: boolean
+        name: available
+
+  # --- SCHEDULES TIME (FILTRATION) ---
+  - entity: time
+    name: Filtration start 1
+    icon: "mdi:clock-start"
+    category: config
+    dps:
+      - id: 135
+        type: integer
+        name: minute
+        range:
+          min: 0
+          max: 1439
+      - id: 139
+        type: boolean
+        name: available
 
 
   - entity: time
   - entity: time
-    name: Filtration start
-    icon: mdi:clock-start
+    name: Filtration end 1
+    icon: "mdi:clock-end"
+    category: config
+    dps:
+      - id: 136
+        type: integer
+        name: minute
+        range:
+          min: 0
+          max: 1439
+      - id: 139
+        type: boolean
+        name: available
+
+  - entity: time
+    name: Filtration start 2
+    icon: "mdi:clock-start"
+    category: config
     dps:
     dps:
       - id: 137
       - id: 137
         type: integer
         type: integer
@@ -82,10 +183,14 @@ entities:
         range:
         range:
           min: 0
           min: 0
           max: 1439
           max: 1439
+      - id: 140
+        type: boolean
+        name: available
 
 
   - entity: time
   - entity: time
-    name: Filtration end
-    icon: mdi:clock-end
+    name: Filtration end 2
+    icon: "mdi:clock-end"
+    category: config
     dps:
     dps:
       - id: 138
       - id: 138
         type: integer
         type: integer
@@ -93,6 +198,9 @@ entities:
         range:
         range:
           min: 0
           min: 0
           max: 1439
           max: 1439
+      - id: 140
+        type: boolean
+        name: available
 
 
   # --- SENSORS ---
   # --- SENSORS ---
   - entity: sensor
   - entity: sensor