I’m on day 3 of my Home Assistant journey and I feel like I’m making progress, but I’m getting some errors that are really confusing me.
I’ve made some basic automations to control my speakers and lights in my front room:
- alias: 'Front room lights off when no motion and kodi spmc idle for 20 minutes'
trigger:
platform: mqtt
topic: smartthings/Motion - Front Room Window/motion, smartthings/Motion - Front Room Top/motion
payload: 'inactive'
for:
minutes: 20
condition:
condition: state
entity_id: media_player.kodi_front_room, media_player.spmc_front_room
state: 'idle'
for:
hours: 0
minutes: 20
seconds: 0
action:
service: light.turn_off
entity_id: group.front_room_lights
# AUTOMATION - Front Room Subwoofer #
- alias: 'Kodi playing turn on subwoofer'
trigger:
platform: state
entity: media_player.kodi_front_room, media_player.spmc_front_room
to: 'playing'
from: 'idle'
action:
service: homeassistant.turn_on
entity_id: switch.subwoofer
- alias: 'Kodi not playing turn off subwoofer'
trigger:
platform: state
entity: media_player.kodi_front_room, media_player.spmc_front_room
to: 'idle'
from: 'playing'
action:
service: homeassistant.turn_off
entity_id: switch.subwoofer
These are throwing up these errors, but the line references don’t match my configuration.yaml:
2017-09-14 15:14:02 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [for] is an invalid option for [automation]. Check: automation->trigger->0->for. (See /config/configuration.yaml, line 564). Please check the docs at https://home-assistant.io/components/automation/
2017-09-14 15:14:02 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [entity] is an invalid option for [automation]. Check: automation->trigger->0->entity. (See /config/configuration.yaml, line 564). Please check the docs at https://home-assistant.io/components/automation/
2017-09-14 15:14:02 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [entity] is an invalid option for [automation]. Check: automation->trigger->0->entity. (See /config/configuration.yaml, line 564). Please check the docs at https://home-assistant.io/components/automation/
2017-09-14 15:14:02 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [for] is an invalid option for [automation]. Check: automation->trigger->0->for. (See /config/configuration.yaml, line 564). Please check the docs at https://home-assistant.io/components/automation/
Can someone tell me what I’m doing wrong please.
Also, how do I combine the default lines:
group: !include groups.yaml
automation: !include automations.yaml
with the groups and automations I’ve created to remove two more errors e.g.
group: !include groups.yaml
Central Heating:
name: Central Heating
entities:
- climate.hive_heating
Or,
group:
!include groups.yaml
Central Heating:
name: Central Heating
entities:
- climate.hive_heating
Thanks in advance