Hi!
I don’t know whether it’s the server or the homeassistant-app.
It seems I deleted locative too early. In the beginning everything worked as it should, but for a few days (homeassistant app and server always at newest version) location tracking doesn’t work anymore.
My wife just left, her state is still ‘home.’.
Now I looked at the logs and on the other hand, the ‘Patrick getting home’ automation gets constantly called, even as I’m at home all the time:
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.components.http] Serving /api/services/device_tracker/see to 192.168.1.1 (auth: True)
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.core] Bus:Handling
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=, entity_id=device_tracker.iphone_7_von_patrick_kormann, new_state=<state device_tracker.iphone_7_von_patrick_kormann=home; gps_accuracy=65, latitude=38.69773854283456, entity_picture=https://www.gravatar.com/avatar/e774b8a82d512c04b976f39dfd292e72.jpg?s=80&d=wavatar, battery=100, friendly_name=iPhone 7 von Patrick Kormann, lon
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.core] Bus:Handling
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.components.automation] Executing Patrick kommt nachhause
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.core] Bus:Handling
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.helpers.script] Script Patrick kommt nachhause: Running script
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.helpers.script] Script Patrick kommt nachhause: Executing step call service
Apr 25 13:45:41 cs hass[8344]: 17-04-25 13:45:41 INFO (MainThread) [homeassistant.core] Bus:Handling
I guess I have to check for from: to: states? … This wasn’t necessary before, when state was home already, nothing happened. I guess the problem is that it says ‘old_state=’ here? but in locations tab it clearly shows state=home …
On the other hand, no updates whatsoever from my wife.
Edit: It wasn’t working till yesterday, but after upgrading to the newest homeserver I thought it’s OK again. But now I’m not sure whether the ‘no update’ from my wife thingy is actually a problem with the internet connection.