Any help with this problem I have would be appreciated. I’m trying to follow what Smart Home Junkie on this YouTube video Geofencing in Home Assistant - TUTORIAL - YouTube . I just can’t get it to work, my phone shows I have left the house and over the trigger distance my wife’s also. I checked proximity.home it also shows we are out over the distance. I have been searching on this site and Google also commented to Smart Home Junkie he said it should work am I missing something.
‘’'alias: geolocation_nest
description: "Set temperature based on if we leave or come home "
trigger:
- platform: numeric_state
entity_id: proximity.home
above: “3”
id: leaving_home
value_template: mi - platform: numeric_state
entity_id: proximity.home
id: arriving_home
below: “3”
value_template: mi
condition: []
action: - choose:
- conditions:
- condition: trigger
id:- leaving_home
sequence:
- leaving_home
- service: climate.set_temperature
data:
temperature: 74
target:
entity_id: climate.living_room
- condition: trigger
- conditions:
- condition: trigger
id:- arriving_home
sequence:
- arriving_home
- service: climate.set_temperature
data:
temperature: 71
target:
entity_id: climate.living_room
- condition: trigger
- conditions:
- service: notify.mobile_app_zfold
data:
message: "Temp Notification "
mode: single’’’
This is my 2nd try lets see if it works added dir_of_travel
‘’'alias: geolocation_nest
description: "Set temperature based on if we leave or come home "
trigger:
- platform: numeric_state
entity_id: proximity.home
above: 3
id: leaving_home
value_template: mi - platform: numeric_state
entity_id: proximity.home
id: arriving_home
below: “3”
value_template: mi
condition: - condition: state
entity_id: proximity.home
attribute: dir_of_travel
state: towards
for:
hours: 0
minutes: 1
seconds: 0 - condition: state
entity_id: proximity.home
attribute: dir_of_travel
state: away
for:
hours: 0
minutes: 1
seconds: 0
action: - choose:
- conditions:
- condition: trigger
id:- leaving_home
sequence:
- leaving_home
- service: climate.set_temperature
data:
temperature: 74
target:
entity_id: climate.living_room
- condition: trigger
- conditions:
- condition: trigger
id:- arriving_home
sequence:
- arriving_home
- service: climate.set_temperature
data:
temperature: 71
target:
entity_id: climate.living_room
- condition: trigger
- conditions:
- service: notify.mobile_app_zfold
data:
message: "Temp Notification "
mode: single’’’