Open stepsolar opened 6 months ago
- service: {{ 'switch.turn_' + ('off' if hvac_mode == 'off' else 'on') }}
change
{{ state('switch.tatano_state' ) }}
to
{{ states('switch.tatano_state' ) }}
Also change
{{ state('switch.spa_termo_sauna_auto_off' ) }}
to
{{ states('switch.spa_termo_sauna_auto_off' ) }}
The problem
I need your help, I wrote this code and it all works but when I turn off homeassistant it gives me an error, but the shutdown actually happens. How can I modify the code? Thank you
What version of Template Climate has the issue?
No response
What version of Home Assistant are you running?
No response
What type of installation are you running?
None
Example YAML snippet
Anything in the logs that might be useful for us?
Registratore: homeassistant.helpers.template Fonte: helpers/template.py:2377 Prima occorrenza: 13:34:09 (3 occorrenze) Ultima registrazione: 13:34:22
Template variable error: 'state' is undefined when rendering '{{ state('switch.tatano_state' ) }}' Template variable error: 'state' is undefined when rendering '{{ state('switch.spa_termo_sauna_auto_off' ) }}'
Registratore: homeassistant.helpers.script.termostato_sauna Fonte: helpers/script.py:1805 Prima occorrenza: 13:34:24 (1 occorrenze) Ultima registrazione: 13:34:24
Termostato Sauna: Error executing script. Error for callservice at pos 2: Template rendered invalid service: switch.turn
Additional information
No response