iOS icon indicating copy to clipboard operation
iOS copied to clipboard

HA-iOS does not report location when server restarts.

Open janiversen opened this issue 2 years ago • 0 comments

iOS device model, version and app version

Model Name: ipad air Software Version: newest App version: newest

Home Assistant Core Version

dev

Describe the bug I have 3 servers in 3 distinct locations (home, “summerhouse” and “development”. My ipad have HA-iOS installed, and all 3 servers have the ipad as device-tracker for person.

Normally it works nicely, I leave a site, the server sets “not-home” and the new site changes to “at home”.

BUT when a server fails (happens more often to me, than many others since I develop quite a lot in core in a couple of integrations), and the ipad moves it is never detected, and I am suddenly at home in 2 places.

To Reproduce Start server start ha on ipad secure UI shows “Home” Stop server move ipad to a new site or simply turn it off Start server Person continues to be “home”

Expected behavior a) when server restarts it should set device-tracker ipad to unknown or “Not-home” until location is confirmed b) When HA-ios sees the server reconnects it should automatically send location (I know I can do it manually).

Screenshots

Additional context

I am a bit unsure if the problem is in HA-ios or in the frontend integration, but since the frontend integration runs on the server I opted to report it here.

If can get me a code pointer, I am more than happy to give it a try (I am used to “swift” among a number of other languages). I have for a while been looking at this repo, because I have a few ideas I would like to try out, but never got around to doing so.

janiversen avatar Sep 05 '23 11:09 janiversen