heat_save template working (to be improved in messages and log)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user