Call service

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:
  • 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

Maybe you should post the code of your automation

How about sharing your yaml code to give folks a chance to make a more educated guess.

Hello h00etn,

This would help as well.
There are a lot of helpful hints in that FAQ document, maybe give it a read?

Thanks for coming here and asking a question.
Would you be so kind as to adjusting the format of your code so that we can read it properly & check the YAML spacing, etc. Editing your original is the preferred way. It is very hard for us to tell what is what when the text formatter jumbles everything like that.
Use the </> button or this:

Here is an example of how to fix it from the site FAQ Page.
How to help us help you - or How to ask a good question.

1 Like