Skip to content

Commit

Permalink
Plikc Neve X: code review changes
Browse files Browse the repository at this point in the history
- use English names
- remove misplaced 'force'
- user needs to set vacation duration to enter away mode
- use unspecified degrees for relative temperature to avoid conversion
  • Loading branch information
make-all committed May 25, 2024
1 parent f157b6c commit 3f50d77
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions custom_components/tuya_local/devices/plikc_neve_x_thermostat.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Termostato
name: Thermostat
products:
- id: 5kwgvcaqzzkzrftu
name: Plikc Neve X W
Expand All @@ -13,23 +13,25 @@ primary_entity:
- dps_val: false
value: "off"
- dps_val: true
value: heat
value: heat_cool
- id: 2
type: string
name: preset_mode
mapping:
- dps_val: auto
value: home
value: program
- dps_val: manual
value: boost
value: manual
- dps_val: temporary
value: boost
value: temp_override
hidden: true
- dps_val: holiday
value: away
constraint: Durata vacanza
constraint: holiday_duration
conditions:
- dps_val: 1
- dps_val: 0
value: "Set holiday duration!"
hidden: true
- id: 3
type: string
name: hvac_action
Expand Down Expand Up @@ -70,27 +72,27 @@ primary_entity:
max: 350
mapping:
- scale: 10
- id: 33
type: integer
name: holiday_duration
hidden: true
secondary_entities:
- entity: number
name: Calibrazione
mode: box
name: Temperature calibration
category: config
icon: "mdi:thermometer-check"
dps:
- id: 27
type: integer
name: value
unit: °C
unit: °
range:
min: -30
max: 30
mapping:
- scale: 10
step: 1
- entity: number
name: Durata vacanza
mode: box
force: true
name: Holiday duration
category: config
icon: "mdi:calendar-range"
dps:
Expand All @@ -110,7 +112,6 @@ secondary_entities:
type: boolean
name: button
optional: true
persist: false
- entity: lock
translation_key: child_lock
category: config
Expand All @@ -123,7 +124,7 @@ secondary_entities:
- dps_val: null
value: false
- entity: sensor
name: Tempo rimanente
translation_key: time_remaining
class: duration
category: diagnostic
dps:
Expand Down

0 comments on commit 3f50d77

Please sign in to comment.