From 22decc7f041a783607c2cf922e6eb06ff88d6302 Mon Sep 17 00:00:00 2001 From: spuljko Date: Fri, 27 Oct 2023 22:55:07 +0200 Subject: [PATCH 1/6] Update blitzwolf_bwsh5_humidifier.yaml Fixed recognition problems. Added problem and spray level --- .../tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index 916788fab7..ecb41fa6fb 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -1,4 +1,3 @@ -# sample DPS {'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: BlitzWolf BWSH5 humidifier products: - id: lqzme7o0kzhumdxr From 014d5273241ed8a061cdb5f90a0794c608ff00aa Mon Sep 17 00:00:00 2001 From: spuljko Date: Fri, 27 Oct 2023 22:56:43 +0200 Subject: [PATCH 2/6] Update blitzwolf_bwsh5_humidifier.yaml --- .../devices/blitzwolf_bwsh5_humidifier.yaml | 64 +++++++++++++------ 1 file changed, 44 insertions(+), 20 deletions(-) diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index ecb41fa6fb..8650a9e0a6 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -29,7 +29,7 @@ primary_entity: - id: 13 name: humidity type: integer - optional: true + #optional: true range: min: 35 max: 75 @@ -38,14 +38,6 @@ primary_entity: - id: 14 name: current_humidity type: integer - - 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 @@ -55,6 +47,7 @@ secondary_entities: - id: 21 name: switch type: boolean + #optional: true - entity: switch name: Warm mist icon: "mdi:fire" @@ -63,6 +56,7 @@ secondary_entities: - id: 26 name: switch type: boolean + optional: true - entity: switch name: Plasma icon: "mdi:dots-circle" @@ -70,7 +64,8 @@ secondary_entities: dps: - id: 35 name: switch - type: boolean + type: boolean + optional: true - entity: light name: LED category: config @@ -83,17 +78,30 @@ secondary_entities: icon: "mdi:led-on" - dps_val: false icon: "mdi:led-off" - - entity: sensor - deprecated: humidifier - name: Current humidity - class: humidity - category: diagnostic + - entity: select + name: Spray level + icon: "mdi:heat-wave" + category: config dps: - - id: 14 - type: integer - name: sensor - class: measurement - unit: "%" + - id: 23 + name: option + type: string + optional: true + mapping: + - dps_val: "level_1" + value: "Level 1 " + - dps_val: "level_2" + value: "Level 2" + - dps_val: "level_3" + value: "Level 3" + - dps_val: "level_4" + value: "Level 4" + - dps_val: "level_5" + value: "Level 5" + - dps_val: "level_6" + value: "Level 6" + - dps_val: "level_7" + value: "Level 7" - entity: sensor class: temperature dps: @@ -106,6 +114,7 @@ secondary_entities: name: temperature_f type: integer unit: F + optional: true - entity: select name: Timer icon: "mdi:timer" @@ -114,6 +123,7 @@ secondary_entities: - id: 19 name: option type: string + optional: true mapping: - dps_val: "cancel" value: "Off" @@ -153,6 +163,7 @@ secondary_entities: - id: 18 type: string name: option + optional: true mapping: - dps_val: c value: Celsius @@ -160,3 +171,16 @@ secondary_entities: - dps_val: f value: Fahrenheit icon: "mdi:temperature-fahrenheit" + - entity: binary_sensor + name: Low water + class: problem + category: diagnostic + dps: + - id: 22 + type: bitfield + name: sensor + mapping: + - dps_val: 0 + value: false + - dps_val: 1 + value: true From 9d542bd00bb4215389d2208461a6795c56f52662 Mon Sep 17 00:00:00 2001 From: spuljko Date: Sat, 28 Oct 2023 10:30:18 +0200 Subject: [PATCH 3/6] Fault code, optional dp 13 --- .../tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index 8650a9e0a6..d9f628044f 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -38,6 +38,10 @@ primary_entity: - id: 14 name: current_humidity type: integer + - id: 22 + name: fault_code + type: integer + optional: true secondary_entities: - entity: switch name: UV sterilization @@ -182,5 +186,4 @@ secondary_entities: mapping: - dps_val: 0 value: false - - dps_val: 1 - value: true + - value: true From fc170303a203d171372553835480c718937ef141 Mon Sep 17 00:00:00 2001 From: spuljko Date: Sat, 28 Oct 2023 10:32:06 +0200 Subject: [PATCH 4/6] Optional dp 13 --- .../tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index d9f628044f..ff2dc29d73 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -29,7 +29,7 @@ primary_entity: - id: 13 name: humidity type: integer - #optional: true + optional: true range: min: 35 max: 75 From 0ef3efea9c9467361653a6cad67605eca3ae9b4f Mon Sep 17 00:00:00 2001 From: spuljko Date: Sat, 28 Oct 2023 19:53:26 +0200 Subject: [PATCH 5/6] dp 22 water --- .../tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index ff2dc29d73..308f6b4dee 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -184,6 +184,5 @@ secondary_entities: type: bitfield name: sensor mapping: - - dps_val: 0 - value: false - - value: true + - dps_val: 1 + value: true From 596d4ab9a27dd057cca94a0ce5160ac621eb76eb Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 2 Dec 2023 20:30:08 +0900 Subject: [PATCH 6/6] Changes from review - represent spray level as a fan, move branding under products. --- .../devices/blitzwolf_bwsh5_humidifier.yaml | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml index 308f6b4dee..cac96024d8 100644 --- a/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml +++ b/custom_components/tuya_local/devices/blitzwolf_bwsh5_humidifier.yaml @@ -1,6 +1,7 @@ -name: BlitzWolf BWSH5 humidifier +name: Humidifier products: - id: lqzme7o0kzhumdxr + name: BlitzWolf BWSH5 primary_entity: entity: humidifier class: humidifier @@ -82,30 +83,33 @@ secondary_entities: icon: "mdi:led-on" - dps_val: false icon: "mdi:led-off" - - entity: select + - entity: fan name: Spray level icon: "mdi:heat-wave" category: config dps: + - id: 1 + name: switch + type: boolean - id: 23 - name: option + name: speed type: string optional: true mapping: - dps_val: "level_1" - value: "Level 1 " + value: 15 - dps_val: "level_2" - value: "Level 2" + value: 30 - dps_val: "level_3" - value: "Level 3" + value: 45 - dps_val: "level_4" - value: "Level 4" + value: 55 - dps_val: "level_5" - value: "Level 5" + value: 70 - dps_val: "level_6" - value: "Level 6" + value: 85 - dps_val: "level_7" - value: "Level 7" + value: 100 - entity: sensor class: temperature dps: