v.0.2.1 - display state

This commit is contained in:
GrKoR
2022-04-18 01:42:44 +03:00
parent 7f02c8843e
commit 75bdee1c2c
3 changed files with 23 additions and 6 deletions

View File

@@ -60,6 +60,10 @@ climate:
name: AC Indoor Temperature
id: ac_indoor_temp
internal: false # сенсор установлен как внутренний по дефолту (не попадёт в Home Assistant)
display_state:
name: AC Display State
id: ac_display_state
internal: false # сенсор установлен как внутренний по дефолту (не попадёт в Home Assistant)
visual:
min_temperature: 16
max_temperature: 32
@@ -83,4 +87,19 @@ climate:
supported_swing_modes:
- VERTICAL
- HORIZONTAL
- BOTH
- BOTH
switch:
- platform: template
name: AC Display
lambda: |-
if (ac_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