Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95451

Why is this automation failing? trying two levels deep (yaml) automation

$
0
0

@yuvalabou wrote:

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

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>