Skip to content

Commit

Permalink
Thermoval TVT40: merge into identical Saswell C16 config
Browse files Browse the repository at this point in the history
Even product ids match
  • Loading branch information
make-all committed Dec 22, 2024
1 parent eb34cee commit bb17643
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 281 deletions.
58 changes: 41 additions & 17 deletions custom_components/tuya_local/devices/saswell_c16_thermostat.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: C16 WiFi thermostat
name: Thermostat
legacy_type: thermoval_tvt40_thermostat
products:
- id: jIRwsT5yLPJO41Po
name: Thermoval TVT 40 / Saswell C16
primary_entity:
entity: climate
translation_only_key: thermostat
Expand All @@ -21,21 +23,19 @@ primary_entity:
mapping:
- dps_val: Smart
value: program
icon: "mdi:home-thermometer"
- dps_val: Anti_frozen
value: away
icon: "mdi:snowflake-melt"
- dps_val: Manual
value: manual
icon: "mdi:cursor-pointer"
- id: 4
name: unknown_4
type: integer
- id: 5
name: current_temperature
type: integer
mapping:
- scale: 10
constraint: sensor_select
conditions:
- dps_val: "0"
value_redirect: floor_temperature
- id: 6
name: floor_temp_limit
type: integer
Expand All @@ -54,6 +54,7 @@ primary_entity:
type: integer
mapping:
- scale: 10
hidden: true
- id: 9
name: hvac_mode
type: boolean
Expand All @@ -69,15 +70,6 @@ primary_entity:
- id: 12
name: schedule
type: string
- id: 21
name: unknown_21
type: boolean
- id: 22
name: power_rating
type: integer
- id: 23
name: unknown_23
type: integer
- id: 24
name: hvac_action
type: string
Expand All @@ -89,10 +81,24 @@ primary_entity:
- dps_val: Cooling
value: cooling
- id: 26
name: unknown_26
name: antifreeze_settings
optional: true
type: integer
secondary_entities:
- entity: binary_sensor
class: problem
category: diagnostic
dps:
- id: 4
name: sensor
type: bitfield
mapping:
- dps_val: 0
value: false
- value: true
- id: 4
name: fault_code
type: bitfield
- entity: lock
translation_key: child_lock
category: config
Expand Down Expand Up @@ -225,3 +231,21 @@ secondary_entities:
range:
min: 0
max: 3500
- entity: sensor
name: Power Consumption Duration
category: diagnostic
icon: "mdi:clock"
dps:
- id: 23
name: sensor
type: integer
class: measurement
unit: h
- entity: button
translation_key: factory_reset
category: config
dps:
- id: 21
type: boolean
optional: true
name: button
264 changes: 0 additions & 264 deletions custom_components/tuya_local/devices/thermoval_tvt40_thermostat.yaml

This file was deleted.

0 comments on commit bb17643

Please sign in to comment.