mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-09 04:56:59 +03:00
advanced example for v.0.2.1 updated
This commit is contained in:
@@ -65,8 +65,12 @@ climate:
|
|||||||
show_action: true
|
show_action: true
|
||||||
indoor_temperature:
|
indoor_temperature:
|
||||||
name: ${upper_devicename} AC Indoor Temperature
|
name: ${upper_devicename} AC Indoor Temperature
|
||||||
id: ac_indoor_temp
|
id: ${devicename}_indoor_temp
|
||||||
internal: true
|
internal: false
|
||||||
|
display_state:
|
||||||
|
name: $upper_devicename Display State
|
||||||
|
id: ${devicename}_display_state
|
||||||
|
internal: false
|
||||||
visual:
|
visual:
|
||||||
min_temperature: 16
|
min_temperature: 16
|
||||||
max_temperature: 32
|
max_temperature: 32
|
||||||
@@ -100,3 +104,18 @@ sensor:
|
|||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
unit_of_measurement: "dBa"
|
unit_of_measurement: "dBa"
|
||||||
accuracy_decimals: 0
|
accuracy_decimals: 0
|
||||||
|
|
||||||
|
|
||||||
|
switch:
|
||||||
|
- platform: template
|
||||||
|
name: $upper_devicename Display
|
||||||
|
lambda: |-
|
||||||
|
if (id(${devicename}_display_state).state) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
turn_on_action:
|
||||||
|
- aux_ac.display_on: aux_id
|
||||||
|
turn_off_action:
|
||||||
|
- aux_ac.display_off: aux_id
|
||||||
Reference in New Issue
Block a user