Skip to content

Commit

Permalink
Split BHT-002 GBLW out from GALW due to incompatible hvac_action
Browse files Browse the repository at this point in the history
Some GBLW devices do appear to work with GALW config based on other
user reports, but some use a string rather than boolean to report
their heating state.

Issue #1684
  • Loading branch information
make-all committed Mar 4, 2024
1 parent f4c2856 commit db1c4b4
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 3 deletions.
1 change: 1 addition & 0 deletions ACKNOWLEDGEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -510,3 +510,4 @@ Further device support has been made with the assistance of users. Please consid
- [realdimik](https://github.com/realdimik) for assisting with support for Tongou ST463JWT three phase breakers and contributing support for SNT957W-DE temperature and humidity sensors.
- [jameskoziol](https://github.com/jameskoziol) for contributing support for second variant of Madimack Elite V3.
- [halmaizsolt92](https://github.com/halmaizsolt92) for assisting with support for SNT857W-TDE temperature sensors.
- [nk00li](https://github.com/nk00li) for assisting with support for BHT-002 GBLW thermometers that differ slightly from GALW in how they report the heating state.
1 change: 1 addition & 0 deletions DEVICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
- Beok TR8B thermostat
- Beok TR9B thermostat _(rebadged as Vancoo and perhaps others)_
- BHT-002-GALW thermostat _(rebadged as many different brands)_
- BHT-002-GABW thermostat _(some compatible with GALW, others subtly different)_
- Brade MC6 thermostat _(rebadged as many different brands)_
- ETOP-FCU thermostat (Jaga JRT-100TW)
- ETOP-HP thermostat (CH7100)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
name: Thermostat
products:
- id: v5214objiaepcaer
name: BHT-002 GBLW
primary_entity:
entity: climate
dps:
Expand Down
140 changes: 140 additions & 0 deletions custom_components/tuya_local/devices/bht002_gblw_thermostat.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Thermostat
products:
- id: v5214objiaepcaer
name: BHT-002 GBLW
primary_entity:
entity: climate
dps:
- id: 1
name: hvac_mode
type: boolean
mapping:
- dps_val: false
value: "off"
- dps_val: true
constraint: mode
conditions:
- dps_val: manual
value: heat
- dps_val: program
value: auto
- id: 2
name: mode
type: string
- id: 3
name: hvac_action
type: string
optional: true
mapping:
- constraint: hvac_mode
conditions:
- dps_val: false
value: "off"
- dps_val: true
mapping:
- dps_val: Warming
value: heating
- value: idle
- id: 16
name: temperature
type: integer
unit: C
range:
min: 50
max: 950
mapping:
- scale: 10
step: 5
- id: 19
name: max_temperature
type: integer
mapping:
- scale: 10
- id: 24
name: current_temperature
type: integer
mapping:
- scale: 10
secondary_entities:
- entity: button
name: Factory reset
class: restart
category: config
dps:
- id: 39
type: boolean
optional: true
name: button
- entity: switch
name: Window detect
category: config
icon: "mdi:window-open-variant"
dps:
- id: 8
type: boolean
name: switch
- entity: lock
translation_key: child_lock
category: config
dps:
- id: 40
type: boolean
name: lock
- entity: switch
translation_key: anti_frost
category: config
dps:
- id: 10
type: boolean
name: switch
- entity: select
name: Temperature sensor
icon: "mdi:thermometer"
category: config
dps:
- id: 43
type: string
name: option
mapping:
- dps_val: in
value: Internal
- dps_val: out
value: External
- entity: number
name: Maximum temperature
category: config
icon: "mdi:thermometer-chevron-up"
dps:
- id: 19
type: integer
name: value
unit: C
range:
min: 350
max: 950
mapping:
- scale: 10
step: 5
- entity: binary_sensor
class: window
category: diagnostic
dps:
- id: 25
type: string
name: sensor
mapping:
- dps_val: "close"
value: false
- dps_val: "open"
value: true
- entity: number
name: Temperature correction
category: config
icon: "mdi:thermometer-check"
dps:
- id: 27
type: integer
name: value
range:
min: -9
max: 9

0 comments on commit db1c4b4

Please sign in to comment.