Hi,
I already managed to create some automations, but I´m stuck on this one when doing the config check.
The goal is to turn off 2 power sockets when my daughter is leaving, as she only visits me every 2 weeks. But before turning of the sockets, her raspberry and surface tablet shall shutdown gracefully.
this is the code and I don´t get what´s wrong, as it shows me an “Error loading /config/configuration.yaml: mapping values are not allowed here”
Any suggestions?
- id: '0031'
hide_entity: false
alias: amy-steckdosen-aus-wenn-weg
trigger:
- entity_id: device_tracker.google_maps_100570646164841679632
event: leave
platform: zone
zone: zone.home
condition:
- entity_id: device_tracker.androidnokia
platform: state
to: away
action:
- service: media_player.kodi_call_method
data:
entity_id: media_player.kodi_surface
method: System.Shutdown
- service: media_player.kodi_call_method
data:
entity_id: media_player.kodi_amy
method: System.Shutdown
- delay: 00:00:30
- service: switch.turn_off
entity_id: switch.socket02
- service: switch.turn_off
entity_id: switch.socket03
Thanks,
Philipp