Hi,
I am new to home assistant and require some help…
What I want to achieve is that I receive notifications when I am not home, Kodi is idle and fibaro detected motion.
-
alias: Bewegung Wohnzimmer
initial_state: ‘on’
trigger:- platform: state
entity_id: sensor.fibaro_system_fgms001zw5_motion_sensor_burglar
state: ‘8’ - platform: state
entity_id: device_tracker.julians_iphone
state: ‘home’
to: ‘not home’
condition:
condition: and
conditions: - condition: state
entity_id: sensor.fibaro_system_fgms001zw5_motion_sensor_burglar
state: ‘8’ - condition: state
entity_id: device_tracker.julians_iphone
state: ‘not home’ - condition: state
entity_id: media_player.kodi
state: ‘idle’
action:
service: notify.ios_julians_iphone
data:
title: 'Bewegung im: ’
message: ‘Wohnzimmer’ - platform: state
The log produces the following error:
2017-09-04 19:27:10 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [state] is an invalid option for [automation]. Check: automation->trigger->0->state. (See /home/homeassistant/.homeassistant/configuration.yaml, line 69). Please check the docs at https://home-assistant.io/components/automation/
I greatly appreciate any help…