Hya,
my automations.yaml shows:
# ZONE - enter or leave
- alias: Zone Notifications
trigger:
- platform: zone
entity_id:
- device_tracker.pwmi6
zone: zone.home
event: enter
- platform: zone
entity_id:
- device_tracker.pwmi6
zone: zone.home
event: leave
- platform: zone
entity_id:
- device_tracker.pwmi6
zone: zone.luciana
event: enter
- platform: zone
entity_id:
- device_tracker.pwmi6
zone: zone.luciana
event: leave
action:
- service: notify.mobile_app_pwmi6
data:
message: >
{% if trigger.event == "leave" %}
{{ trigger.from_state.name }} left {{ trigger.zone.attributes.friendly_name }}
{% else %}
{{ trigger.from_state.name }} entered {{ trigger.zone.attributes.friendly_name }}
{% endif %}
# LIGHTS ON OR OF
- alias: Enter HOme
trigger:
- plattform: zone
entity_id:
- device_tracker.pwmi6
zone: zone.home
event: enter
action:
- service: switch.turn_on
data:
entity_id:
- switch.rl1ch0087dc
- delay: 00:05:00
- service: switch.turn_off
data:
entity_id:
- switch.rl1ch0087dc
and i’m getting the follwong error:
Logger: homeassistant.config
Source: config.py:443
First occurred: 10:06:41 AM (1 occurrences)
Last logged: 10:06:41 AM
Invalid config for [automation]: required key not provided @ data['trigger'][0]['platform']. Got None. (See /var/homeassistant/.homeassistant/configuration.yaml, line 17).
Any hint?
thx in advance.