heat_save template working (to be improved in messages and log)

This commit is contained in:
2024-10-26 17:38:27 +02:00
parent 1971490dc8
commit 1880ee053a
2 changed files with 21 additions and 140 deletions

View File

@@ -47,7 +47,7 @@ actions:
- choose:
# if finestra is open
- conditions: >
{{ is_state('sensor_status', 'on') }}
{{ is_state( sensor_status, 'on' ) }}
sequence:
- action: climate.set_hvac_mode
metadata: {}
@@ -59,11 +59,11 @@ actions:
metadata: {}
data:
message: >
Climate {{ states('sensor_status') }} OFF
Thermostat OFF
title: HA template 'heat_save' DEBUG
# if finestra is closed
- conditions: >
{{ is_state('sensor_status', 'off') }}
{{ is_state( sensor_status, 'off') }}
sequence:
- action: climate.set_hvac_mode
metadata: {}
@@ -75,16 +75,17 @@ actions:
metadata: {}
data:
message: >
Climate {{ states('sensor_status') }} HEAT
Thermostat HEAT
title: HA template 'heat_save' DEBUG
default:
- action: notify.mobile_app_ttrabatt_iphone15pro
metadata: {}
data:
title: HA template 'heat_save' ERROR
message: >
Bad Conditions state {{ states('sensor_status') }}
sequence:
- action: notify.mobile_app_ttrabatt_iphone15pro
metadata: {}
data:
title: HA template 'heat_save' ERROR
message: >
Bad Conditions state {{ states( sensor_status ) }}
# - if:
# - condition: state