Im trying to make an automation, but i can’t figure out what I do wrong. The automation should turn on the light (for testing) when I enter the Garage Zone, if these conditions are right.
I’m driving
I’m not home
The light is off (here it would been garage door closed), but for testing I’m using a light
- id: '1605512253242'
alias: Kim Driving Home
description:
trigger:
- platform: geo_location
source: device_tracker.kims_iphone
zone: zone.garage
event: enter
condition:
- condition: device
device_id: 106318162e3197e26553d0e6325e93fd
domain: device_tracker
entity_id: device_tracker.kims_iphone
type: is_not_home
- condition: and
conditions:
- condition: state
entity_id: sensor.kims_iphone_activity
state: Automotive
- condition: state
entity_id: light.entre_5704285
state: 'off'
action:
- condition: state
entity_id: light.entre_5704285
state: 'on'
mode: single
Yes, as @Tinkerer wrote and if you want a simple automation, start simple. Start with a trigger and action and add conditions one by one to make it more complex.
Tough this was and pretty simple automation. I have made it in the build in automation tool. So I have not coded it.
But I can see now, that there is a hole lot to read.