This is the error:
Invalid config for [automation]: expected a dictionary @ data[‘condition’][0]. Got None
extra keys not allowed @ data[‘conditions’]. Got None. (See /config/configuration.yaml, line 152). Please check the docs at https://home-assistant.io/integrations/automation/
# Start boiler 4 houres before Shabat/holiday when we are at home
- alias: 'Boiler: Before Shabat/Chag'
trigger:
platform: sun
event: sunset
offset: '-04:00:00'
condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: group.person
state: 'home'
- condition: time
weekday:
- fri
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: group.person
state: 'home'
- condition: state
entity_id: sensor.jewish_calendar_holiday_type
state: '2'
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.boiler
- service: input_boolean.turn_on
data:
entity_id: input_boolean.boiler_today
Thank you! that turned out to fix it, however - It still fails.
Log Details (ERROR)
Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /config/configuration.yaml, line 152). Please check the docs at https://home-assistant.io/integrations/automation/ Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /config/configuration.yaml, line 152).
# Start boiler 4 houres before Shabat/holiday when we are at home
- alias: 'Boiler: Before Shabat/Chag'
trigger:
platform: sun
event: sunset
offset: '-04:00:00'
condition:
condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: group.person
state: 'home'
- condition: time
weekday:
- fri
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: group.person
state: 'home'
- condition: state
entity_id: sensor.jewish_calendar_holiday_type
state: 'erev_yom_tov'
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.boiler
- service: input_boolean.turn_on
entity_id: input_boolean.boiler_today
Yes thank you, figured it out myself but still - can’t find any other new automation since it has been working until now.
care to look inside?
much aprriciated…
# Boiler
- alias: 'Boiler Timer'
hide_entity: False
trigger:
platform: template
value_template: '{{ states.sensor.time.state == states.sensor.boiler_time_long.state }}'
condition:
condition: state
entity_id: input_boolean.boiler_timer_status
state: 'on'
action:
- service: switch.turn_on
entity_id: switch.boiler
- service: input_boolean.turn_on
entity_id: input_boolean.boiler_today
# Start boiler at 18:00 every day when we are at home
- alias: 'Boiler: Regular heating'
trigger:
platform: time
at: '18:00'
condition:
condition: and
conditions:
- condition: time
weekday:
- sun
- mon
- tue
- wed
- thu
- condition: state
entity_id: group.person
state: 'home'
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.boiler
- service: input_boolean.turn_on
entity_id: input_boolean.boiler_today
# Start boiler 4 houres before Shabat/holiday when we are at home
- alias: 'Boiler: Before Shabat/Chag'
trigger:
platform: sun
event: sunset
offset: '-04:00:00'
condition:
condition: or
conditions:
- condition: and
conditions:
- condition: state
entity_id: group.person
state: 'home'
- condition: time
weekday:
- fri
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
- condition: and
conditions:
- condition: state
entity_id: group.person
state: 'home'
- condition: state
entity_id: sensor.jewish_calendar_holiday
state: 'erev_yom_tov'
- condition: state
entity_id: input_boolean.boiler_today
state: 'off'
action:
- service: switch.turn_on
entity_id: switch.boiler
- service: input_boolean.turn_on
entity_id: input_boolean.boiler_today
# Turn off boiler after 45 min every time
- alias: 'Boiler: Turn off after 45 min'
initial_state: 'off'
trigger:
platform: state
entity_id: switch.boiler
state : 'on'
for: 00:45:00
action:
- service: switch.turn_off
entity_id: switch.boiler
- service: input_boolean.turn_on
entity_id: input_boolean.boiler_today
# Set Boiler input_boolean to 'on' even if turned-on manually
- alias: 'Boiler: set input_boolean to on'
trigger:
platform: state
entity_id: switch.boiler
state : 'on'
action:
- service: input_boolean.turn_on
entity_id: input_boolean.boiler_today
# Reset Boiler counter
- alias: 'Boiler: Reset daily counter'
initial_state: 'on'
trigger:
platform: time
at: '00:00:00'
action:
- service: input_boolean.turn_off
entity_id: input_boolean.boiler_today