Hello there,
I am currently running hass.io (HA version 0.92.2) on a Raspberry Pi and Home Assistant for iOS (Version 1.5.1).
I have created two automations: On should switch off my four devices when I’m not at home, and the other one should switch them on when I’m returning home.
I used the <> - States (in the Menu) for testing:
When I change the entity “device_tracker.andreas_iphonexr” from “away” to “home”, everything turns on, and if I turn it back to “away”, everything turns off - so the automations itself seems to work.
When it comes to tracking of my iPhone, the automations don’t get executed when I change my position. Every position-function is enabled in the app and I also get notifications on my iPhone when I leave the Home-area and when I enter it, so the tracking of my app seems to work and also seems to transfer the status correctly to HA (the entity “device_tracker.andreas_iphonexr” changes from “home” to “away” and the other way round properly, and I can see my iPhone on the HA-Map), but somehow, HA doesn’t react on this status-change and simply doesn’t do anything.
I’ve tried this a few times and it is 100% replicable so far, so it was never working I have also tried to reinstall the app, but without result.
I’m not sure if there is something wrong with my automation or if this is an iOS-App-problem or a problem of HA.
Does anyone have an idea how to make this work?
Thank you!
In my configuration.yaml, I have the following entry:
ios:
notify:
- name: alles
platform: group
services:
- service: ios_andreas_iphonexr
- service: html5
My two automations:
- id: notification_andreas_away
alias: 'Notification Andreas away'
trigger:
platform: state
entity_id: device_tracker.andreas_iphonexr
from: 'home'
to: 'away'
action:
- service: notify.alles
data:
title: "Andreas"
message: "Andreas is gone now"
- service: switch.turn_off
entity_id: switch.steckdose1
- service: switch.turn_off
entity_id: switch.steckdose2
- service: switch.turn_off
entity_id: switch.steckdose3
- service: switch.turn_off
entity_id: switch.steckdose4
- id: notification_andreas_home
alias: 'Notification Andreas at home'
trigger:
platform: state
entity_id: device_tracker.andreas_iphonexr
from: 'away'
to: 'home'
action:
- service: notify.alles
data:
title: "Andreas"
message: "Andreas is at home now"
- service: switch.turn_on
entity_id: switch.steckdose1
- service: switch.turn_on
entity_id: switch.steckdose2
- service: switch.turn_on
entity_id: switch.steckdose3
- service: switch.turn_on
entity_id: switch.steckdose4