Hi all,
I am running HASSIO on Rpbi3b+ and I have a problem with the new update. Before the update i always used ‘automation:’ in my configuration.yaml but in the new update this isn’t needed anymore. In 0.103 you need to get the automation files in ‘automations.yaml’. So I did it, following the tutorials on the homeassistant site and the release notes. I needed to give every automation an ID, so I did. Also i had to add some different files to the config files:
#configuration.yaml
automation: !include automations.yaml
automation old: !include_dir_merge_list automations
#automations.yaml
- id: kerstmis
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Uit2'
action:
service: light.turn_off
entity_id:
- Kerstboom
- id: kerstmis1
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Aan2'
action:
service: light.turn_on
entity_id:
- Kerstboom
- id: slaapkamer
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Uit1'
action:
service: switch.turn_off
entity_id:
- switch.sonoff_1000874e43
- switch.fp
- switch.tv
- id: slaapkamer1
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Aan1'
action:
service: switch.turn_on
entity_id:
- switch.sonoff_1000874e43
- switch.fp
- switch.tv
- id: slaapkamer2
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Aan1'
action:
service: light.turn_on
entity_id:
- light.bedstrip
- light.bureau_led
- id: slaapkamer3
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Uit1'
action:
service: light.turn_off
entity_id:
- light.bedstrip
- light.bureau_led
- id: woonkamer
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Uit'
action:
service: light.turn_off
entity_id:
- light.vloerlamp_bank
- light.mozaiek_lamp
- id: woonkamer1
trigger:
platform: event
event_type: ios.action_fired
event_data:
actionName: 'Aan'
action:
service: light.turn_on
entity_id:
- light.vloerlamp_bank
- light.mozaiek_lamp
- id: woonkamer2
trigger:
platform: state
to: 'on'
entity_id: switch.lampenknop
condition:
- condition: state
state: 'on'
entity_id: light.vloerlamp_bank
action:
service: light.turn_off
entity_id: light.vloerlamp_bank
- id: woonkamer3
trigger:
platform: state
to: 'on'
entity_id: switch.lampenknop
condition:
- condition: state
state: 'off'
entity_id: light.vloerlamp_bank
action:
service: light.turn_on
entity_id: light.vloerlamp_bank
- id: woonkamer4
trigger:
platform: state
to: 'on'
entity_id: switch.lampenknop
condition:
- condition: state
state: 'on'
entity_id: light.mozaiek_lamp
action:
service: light.turn_off
entity_id: light.mozaiek_lamp
- id: woonkamer5
trigger:
platform: state
to: 'on'
entity_id: switch.lampenknop
condition:
- condition: state
state: 'off'
entity_id: light.mozaiek_lamp
action:
service: light.turn_on
entity_id: light.mozaiek_lamp
But now with these changes there still remains an error message saying:
Invalid config for [automation]: not a valid value for dictionary value @ data[‘action’][0][‘entity_id’]. Got None. (See /config/configuration.yaml, line 22). Please check the docs at Automation - Home Assistant
(line 22 is a blank line before the ‘automation:’ in configuration.yaml)
Now the automations don’t work, has anyone got a clue why?