What am I missing?
It just doesn’t work. I tried using the front end automation using a condition of driving = true for Life360. However that never worked and from looking at the trace it appeared it was because the driving attribute of true was a Boolean while anything you could put into conditions statement always turned true into a string, and I figured true ≠ ‘true’.
So I switched it to a template looking at the life 360 attributes, but that isn’t working either. And I know it’s because of the driving clause. I don’t want to take it away though because if I’m not driving and let’s say just walking my dog or going for a jog when I arrive home I don’t want my back gate opening. I only want that opening when I’m in my car and come home.
Thanks I’m advance for anyone who helps me here. I’m sure it’s something minor.
Alias: Arrive at home
description: When Kyle arrives --> open gate and if at night —>turn on backyard
trigger:
- platform: zone
entity_id: person.kyle
zone: zone.home
event: enter
condition:
- condition: template
value_template: '{{ state_attr("device_tracker.life360_kyle_williams", "driving") == true}}'
action:
- device_id: 204914c98ea2f27d4fe99aa08fca4251
domain: cover
entity_id: cover.williams_gate
type: open
mode: single