I can’t figure out where to make the mistake ?
Home Assistant 2023.3.0.dev20230208
Frontend 20230208.0.dev - latest
- id: setHeatingThermostat
alias: set_heating_thermostat
description: Set all heating thermostats at midnight
initial_state: true
mode: single
trigger:
- platform: time
at: "01:00:00"
condition:
- condition: state
alias: "Thermostat control activated"
entity_id: input_boolean.heating_thermostat_enabled
state: "on"
action:
- condition: state
alias: "Thermostat control for holydays activated"
entity_id: input_boolean.holiday_enabled
state: "on"
- service: climate.set_temperature
data:
temperature: "{{ states('input_number.thermostat_holiday_temp') | float }}"
target:
entity_id:
- climate.thermostat_office
- climate.thermostat_wc
- climate.thermostat_kitchen
- climate.thermostat_wohnzimmer1
- climate.thermostat_wohnzimmer2
- climate.thermostat_bad
- climate.thermostat_kinderzimmer1
- climate.thermostat_kinderzimmer2
- condition: state
alias: "Thermostat control for holydays deactivated"
entity_id: input_boolean.holiday_enabled
state: "off"
sequence:
- variables:
newtemp: >-
{% if is_state('sensor.thermostat_hc1_summer_mode', 'Sommer')%}
{{ states('input_number.thermostat_summer') | float(0.00) }}
{%else%}
{{ states('input_number.' ~ {{ repeat.item }}) | float(0.00) }}
{% endif %}
- repeat:
for_each:
- climate.thermostat_office
- climate.thermostat_wc
- climate.thermostat_kitchen
- climate.thermostat_wohnzimmer1
- climate.thermostat_wohnzimmer2
- climate.thermostat_bad
- climate.thermostat_kinderzimmer1
- climate.thermostat_kinderzimmer2
- thermostat_schlafzimmer
- thermostat_fitnessraum
sequence:
- service: climate.set_temperature
data:
temperature: "{{ newtemp | float(0.00) }}"
target:
entity_id: "~ climate.{{ repeat.item }} ~"
- delay:
milliseconds: 200
Error:
Automation with alias 'set_heating_thermostat' could not be validated and has been disabled:
extra keys not allowed @ data['action'][2]['sequence'].
Got [OrderedDict([('variables', None), ('newtemp', "{% if is_state('sensor.thermostat_hc1_summer_mode', 'Sommer')%}\n
{{ states('input_number.thermostat_summer') | float(0.00) }}\n{%else%}\n {{ states('input_number.' ~ {{ repeat.item }}) | float(0.00) }}\n{% endif %}")]),
OrderedDict([('repeat', None), ('for_each', ['climate.thermostat_office', 'climate.thermostat_wc',
'climate.thermostat_kitchen', 'climate.thermostat_wohnzimmer1', 'climate.thermostat_wohnzimmer2', 'climate.thermostat_bad',...
Can someone help me with that.
Thanks