Răsfoiți Sursa

BlitzWoolf BWSH5: docs, fixes, tweaks

- remove some icons that should be OK as defaults
- move Spray mode entity to humidifier mode
- add missing dps as optional unknown attributes
- Guess dp 20 is timer remain since it is paired with timer
- Fix entity naming to conform to HA convention
- add config category to various option switches that are not primary functions
- trim unneeded quotes and readonly markers on read only entities
- make temperature_f visible for debugging
- shorten long entity name

PR #357
Jason Rumney 3 ani în urmă
părinte
comite
764f8fd5e9

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -160,5 +160,5 @@ Further device support has been made with the assistance of users.  Please consi
 - [Andreasjkoch](https://github.com/Andreasjkoch) for contributing support for Eeese Carl dehumidifiers.
 - [ppprpd](https://github.com/ppprpd) for contributing support for Netmostat N-1 thermostats.
 - [Pokemowka25](https://github.com/Pokemowka26) for assistance supporting Kyvol EA200 humidifiers.
-- [spuljko](https://github.com/spuljko) for contributing support for YYM-805SW aroma diffuser with nightlight.
+- [spuljko](https://github.com/spuljko) for contributing support for YYM-805SW aroma diffuser with nightlight and BlitzWoolf BWSH5 humidifier.
 - [raphaelcouzet](https://github.com/raphaelcouzet) for contributing support for Arlec motion sensor lights which were used to improve Deta motion light support.

+ 1 - 0
DEVICES.md

@@ -139,6 +139,7 @@
 
 ### Humidifiers
 
+- BlitzWoolf BWSH5 humidifier
 - Eanons QT-JS2014 purifying humidifier
 - Kyvol EA200 humidifier
 - Wetair WAW-H1210LW humidifier

+ 41 - 42
custom_components/tuya_local/devices/blitzwoolf_bwsh5-humidifier.yaml

@@ -1,5 +1,5 @@
 # sample DPS {'updated_at': 1674438037.778799, '1': True, '4': 'health', '5': True, '10': 24, '12': 75, '13': 55, '14': 77, '18': 'c', '19': 'cancel', '20': 0, '21': True, '22': 0, '23': 'level_1', '26': True, '35': True} 
-name: BlitzWoolf BWSH5 Humidifier
+name: BlitzWoolf BWSH5 humidifier
 products: 
   - id: lqzme7o0kzhumdxr
 primary_entity:
@@ -11,11 +11,27 @@ primary_entity:
       type: boolean
       mapping:
         - dps_val: true
-          icon: "mdi:air-humidifier"
           value: ON
         - dps_val: false
-          icon: "mdi:air-humidifier-off"
           value: OFF
+    - id: 4
+      name: mode
+      type: string
+      mapping:
+        - dps_val: "auto"
+          value: "Auto"
+        - dps_val: health
+          value: "Health"
+        - dps_val: baby
+          value: "Baby"
+        - dps_val: sleep
+          value: "Sleep"
+        - dps_val: humidity
+          value: "Humidity"
+        - dps_val: work
+          value: "Work"
+        - dps_val: manual
+          value: "Manual"
     - id: 13             
       name: humidity
       type: integer
@@ -25,31 +41,43 @@ primary_entity:
         max: 75
       mapping:
         - step: 5
+    - id: 22
+      name: unknown_22
+      type: integer
+      optional: true
+    - id: 23
+      name: unknown_23
+      type: string
+      optional: true
 secondary_entities:
   - entity: switch
-    name: "UV Sterilization"
+    name: UV sterilization
     icon: "mdi:sun-wireless"
+    category: config
     dps:
       - id: 21
         name: switch
         type: boolean
   - entity: switch
-    name: "Warm mist"
+    name: Warm mist
     icon: "mdi:fire"
+    category: config
     dps:
       - id: 26
         name: switch
         type: boolean
   - entity: switch
-    name: "Plasma"
+    name: Plasma
     icon: "mdi:dots-circle"
+    category: config
     dps:
       - id: 35
         name: switch
         type: boolean        
-  - entity: switch
-    name: "LED"
+  - entity: light
+    name: LED
     icon: "mdi:led-off"
+    category: config
     dps:
       - id: 5
         name: switch
@@ -68,7 +96,6 @@ secondary_entities:
         name: sensor
         class: measurement
         unit: "%"
-        readonly: true
   - entity: sensor
     name: Current temperature
     class: temperature
@@ -77,14 +104,11 @@ secondary_entities:
         type: integer
         name: sensor
         class: measurement
-        readonly: true
         unit: C
       - id: 12
         name: temperature_f
         type: integer
         unit: F
-        readonly: true
-        hidden: true
   - entity: select
     name: Timer
     icon: "mdi:timer"
@@ -120,38 +144,13 @@ secondary_entities:
             value: "11 hours"
           - dps_val: "12h"
             value: "12 hours"
-  - entity: select
-    name: "Spray mode"
-    category: config
-    icon: "mdi:scent"
-    dps:
-    - id: 4
-      name: option
-      type: string
-      mapping:
-        - dps_val: "auto"
-          value: "Auto"
-          icon: "mdi:fan-auto"
-        - dps_val: health
-          value: "Health"
-          icon: "mdi:heart-flash"
-        - dps_val: baby
-          name: "Baby"
-          icon: "mdi:baby-face-outline"
-        - dps_val: sleep
-          value: "Sleep"
-          icon: "mdi:weather-night"
-        - dps_val: humidity
-          value: "Humidity"
-        - dps_val: work
-          value: "Work"
-          icon: "mdi:electron-framework"
-        - dps_val: manual
-          value: "Manual"
-          icon: "mdi:car-shift-pattern"
+      - id: 20
+        name: remaining
+        type: integer
+        optional: true
   - entity: select
     # note: this is used only for device display. To adjust temperature sensor unit change it in entity settings
-    name: "Device display temperature unit"
+    name: Display temperature unit
     category: config
     icon: "mdi:thermometer-check"
     dps: