Selaa lähdekoodia

Fixed preset_mode of primary entity.
Removed secondary entity 'mode'.
Changed unit of 'Time left' to 'd' (days).
Fixed name of Breville Smart Air Connect in DEVICES.md

Ben Carson 3 vuotta sitten
vanhempi
commit
3563a84291

+ 1 - 1
DEVICES.md

@@ -111,7 +111,7 @@
 ### Air Purifiers
 
 - Breville Easy Air purifier
-- Breville Smart Air purifier
+- Breville Smart Air Connect purifier
 - essentials portable air purifier
 - Himox H05 and H06 air purifiers
 - Hosome air purifier

+ 2 - 15
custom_components/tuya_local/devices/breville_smartairconnect_purifier.yaml

@@ -13,7 +13,7 @@ primary_entity:
         - dps_val: false
           icon: "mdi:air-purifier-off"
     - id: 3
-      name: mode
+      name: preset_mode
       type: string
       mapping:
         - dps_val: "manual"
@@ -41,19 +41,6 @@ secondary_entities:
         class: measurement
         type: integer
         unit: µg/m3
-  - entity: select
-    name: Fan Mode
-    icon: "mdi:auto-mode"
-    category: config
-    dps:
-      - id: 3
-        type: string
-        name: option
-        mapping:
-          - dps_val: "auto"
-            value: "Auto"
-          - dps_val: "manual"
-            value: "Manual"
   - entity: switch
     name: Night mode
     category: config
@@ -105,7 +92,7 @@ secondary_entities:
       - id: 20
         name: sensor
         type: integer
-        unit: min
+        unit: d
   - entity: sensor
     name: Air quality
     class: enum