EDIT: I’m an idiot! I had notifications off on my phone. So that works fine.
However I cant seem to create any working automations that runs depending if I am home or not.
I have two automations - just for trying - and neither of them runs since the status of my phone stays ‘unknown’. I’ll add the YAML-code for both automations.
Thanks!
Automation 1
alias: “Notis: Eric kom hem”
description: “”
triggers:
- trigger: state
entity_id:- person.eric_thoren
to: home
conditions:
actions:
- person.eric_thoren
- action: notify.mobile_app_sm_f731b
metadata: {}
data:
message: Eric kom hem
title: Notis
mode: single
Automation 2
alias: “Notis: Bakre garagedörr öppnades”
description: “”
triggers:
- type: opened
device_id: 90f6160bdb952bcc9c0326caed1eaebc
entity_id: 8edc7cb6b6bedbbc0534833d07aacc88
domain: binary_sensor
trigger: device
conditions: - condition: state
entity_id: person.eric_thoren
state: not_home
actions: - action: notify.mobile_app_sm_f731b
metadata: {}
data:
message: Bakre garagedörr öppnades
title: Notis
mode: single
State of the phone:
Text