I’ve recently moved to a new home and taken the opportunity to start from scratch and, hopefully, not repeat some of my former mistakes.
I’m stuck at what I believe should be a simple automation. I’d like my front porch light to come on as I approach my home if the sun is down.
I’ve created two zones, “Home” and “Home Wide”.
“Home” is basically just my street and “Home Wide” is the whole of my small town.
My reasoning is that if I’m only going a few blocks, walking the dog for example, then I want to look for a state change in my trackers (Android phone and Tile) from “Home Wide” to “Home”.
If I’ve been further away, then I want to look for a change from “Away” to" Home Wide".
The light never comes on.
My trackers are working properly, they indicate the transition from “Home” to “Home Wide” to “Home” as I walk the dog, but the automation never triggers.
Here’s my yaml:
alias: Lights On Arrive Home
description: ""
triggers:
- trigger: state
entity_id:
- person.pitcritter
to:
- Home Wide
from:
- not_home
- trigger: state
entity_id:
- person.pitcritter
from:
- Home Wide
to:
- home
conditions:
- condition: state
entity_id: sun.sun
state: below_horizon
enabled: true
actions:
- action: light.turn_on
metadata: {}
target:
entity_id: light.front_stairs
data: {}
mode: single
What am I missing?