#ios_and_mac-archived
1 messages · Page 65 of 1
the weird thing is the title bar never updates
but yea, right clicking on the menu bar icon did the trick
do you have it set to hide the dock icon? the main menu bar is tied to that, so i put the things you may need in the right-click yup - glad you found it
Morning guys!
Does your iPhone disconnect from wifi when the screen is locked? Because of that the device tracker entity from the Unifi integration changes from "Home" to "Away" all the time. Is it possible to change that behavior? Thank you!
yes, it's normal for the phone to drop off wifi when it's asleep
if you want to use your phone as a presence device, you need to allow remote access to your HA instance manually, or via something like Nabu Casa cloud
or use the tracker in conjunction with something else to improve the accuracy, such as a door opening
"you need to allow remote access to your HA instance manually"
What do you mean?
This iPhone in particular doesn't have Hass app installed on it.
I was hoping to use the Unifi integration to detect when some friends are at my place and make some automations based on that. Android phones seem to work fine , but iPhone doesn't, it connects and disconnects all the time when the phone is idle. (I was able to test on just one iPhone 11)
This channel is for the app
And like I said, that's normal
You wanted #integrations-archived
You're right. Sorry. Gonna ask there as well
Should I delete the post here?
Hi guys, I have read all ip ban related posts, but cant find a solution. My iPhone keep getting ip banned every day on celurar and also wifi. I use only external IP (duckdns) to connect to my HA, so my all devices at home cant acces HA either when it gets banned. When I clear all the IPbans, i get another ban in few minutes. The only device that causes it is my iPhone, reinstalling the app did not help. Any suggestion ?
Having a strange issue with the iPhone widgets on the most recent app. Using the "action" widget, I can select whatever I want. Using the 'open page' widget, however, I can't tap the 'choose' link.
what version of the app? what is the user agent being banned? is the app being signed out?
restarting your phone may help. at least double check the websocket connection is working in app settings > server, that's required for the open page widget to load the list of pages.
The app just shows blank page, when I log in via PC i get "Banning IP address Too many login attempts from:xxx" App version 2022.3
So I delete all banned IPs from /config/ip_bans.yaml and it works for few minutes until I get banned again
After a week out of my house, I came back home and got all my friends IP banned because my phone connected to their wifi.
can you share the full ban log?
you can redact the IPs - mostly curious about the rest
2022-07-05 16:38:47 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from 78.108.xx.xx (78.108.xx.xx). (Home Assistant/2022.3 (io.robbie.HomeAssistant; build:2022.358; iOS 15.5.0)) 2022-07-05 16:38:47 WARNING (MainThread) [homeassistant.components.http.ban] Banned IP 78.108.xx.xx for too many login attempts
I can see just mine IP now
so definitely the app and not the frontend. weird the app isn't being signed out too. the full app logs may be helpful to see exactly what is erroring. you can either read through them (it's not gonna be easy) or share them with me (either with https://wormhole.app or dropping them here: https://www.dropbox.com/request/CtVWqILBXZ41tmFSGK2y) and i can take a look.
app settings > debug > export logs. to get at them.
Should I export the log now, or after I get banned again ? Does it matter ?
Thank you for your time helping me, I apreciate it a lot
I am already banned, so I am exporting it now
Do you need all the files like backup.realm etc?
I just wanted to make sure I am not leaking all my HA credentials here posting the full log here😁
I uploaded it with my name JirkaAerox
you don't need to include the realm file. sorry i'm starting my work day so it may take me a bit to take a look
Sure ! Thank you.
can i also ask something about homekit and doorbell
not here. #integrations-archived
do you know roughly when the first ban log occurred? might be useful to tie it into the app logs. chances are what you saw in the logs was a post-ban log rather than pre-ban.
the first log i see in your logs is, unfortunately, the app already having been banned
did you set your device's clock forward to august?
and october?
i think that made the certificate become considered invalid, which maybe caused the app to open a websocket connection but not give auth credentials which i think HA may treat as invalid auth, i vaguely recall
I do not even remember when it started. But I know that like a year ago I did not have this issue at all, then I updated the app, and started to see these log attempts.
i think - reset the app / log it out, and let's see if it happens again. not sure what is going on exactly.
I increased the number of invalid attempts to 10, I can see that I get invalid login from time to time, but the app still works when I open it, so it needs to have correct auth.
It seems like some part of the app is doing something weird
How can I reset the app correctly? I have tried like 10 times to log out, delete the app, but the problem is still the same.
Should I delete all tokens in HA? I got like 100 of them, only because of my phone got logged out so meny times, when banned.
Ah, that's the ticket. One of my servers isn't accessible from the network I'm currently on so the WS connection can't be opened.
i believe it'll fall back to offering the ones it could find after a delay, i forget how i implemented it
this should be good enough. if you're getting banned right away we can track the initial ban to the app. it's hard to tell what the starting event is without the timing
I setup a proxy on my fw and soon later my HA app reset itself, needed to delete my companion integration and login again yada yada
Because i believe it still used the internal url and in combination with the proxy got a invalid result back..
Is this something fixable or is this behaviour expected?
I am using Nabu Casa for remote access, which works fine. But when I am at home and connected with my wifi, it still uses the internet connection and is ignoring the internal url. This happens even when my internet is down - I can't access home assistant anymore though sitting in my living room . Using a webbrowser I can access HA using the internal url. The setting in my app always shows Remote UI Url as connection.
As it is also slower using Nabu Casa than access directly, I want it to use the internal url when connected to my wifi. I reinstalled the app on the iPad and iPhone, same result. Any ideas please?
Did you set the SSID for the internal URL in the app settings?
(It’s in settings -> companion app -> your server name -> internal URL)
if your proxy requires logging in manually, e.g. it redirects to some application login screen which sets a cookie to permit access, you're likely going to keep running into issues. the app doesn't understand this flow. if you mean something else then i'm not sure i follow - why would your reverse-proxy be spitting back 4xx errors logging you out?
Yes, I did. But it still shows Remote UI URL as connection.
The proxy spit out 4xx because the app accessed it from a unknown net (the reverse proxy did not expect this ip).
So its a normal behaviour that you get logged out instantly on a single 4xx?
I did not even open the app, this happened in the background.
Proxy was just to test other things
if the app gets an auth error when refreshing its token, it assumes it has been logged out, yeah. the app doesn't support this authenticating reverse proxy flow.
hm, a warning would be cool 😄 instead of bam - logged out! it's not even a flow change, it was my reverse proxy not allowing access to this proxy. all works fine if the proxy ip would have been allowed I believe.
just a minor thing though
Hi all, I'm having trouble debugging/troubleshooting the login flow. I'm one of the many who's put my home-assistant instance behind an authenticating proxy (also for internal traffic) and the auth_header component. Right now my symptom is that when I log in on the iOS app, it just loads the home-assistant homepage but doesn't return control to the app. I've exempted /api/websocket from the authentication flow, and I've set up my authentication such that requests with auth headers that would give a 2XX on GET /api/ are passed through.
I'm trying to figure out what precisely is happening, but I can't seem to get at any of the debugging data. I've tried running the CI artifact in the iOS simulator on my Mac, and I was hoping the logfiles would go into the console or somewhere else I can read them, but they don't seem to have done so. In an ideal world I'd be able to dig in and figure out where the process is going wrong between the app login intent being passed through in the redirect URI, the app intercepting the intent, the app taking that token and connecting using websockets/API, or whatever it is that's going on.
Quite unfamiliar with iOS and Mac development, so while I can see that the logs are being put in a file somewhere, I can't see any way to get at them... except by exporting them through the settings window, which of course I can't access unless I've already logged in successfully.
... maybe I can add an export button to the onboarding screen at least
Hi, may I ask you to check my log I just uploaded again ? I just arrived home and got immediately banned. I got banned about 14:40-14:45 😣 . Thank you !
what was the user-agent of the first error log about the auth details being wrong?
i don't see the app doing anything to get itself banned as far as i can tell, it wakes up to find itself getting 403s
You mean this ? https://ibb.co/D9Xy9J8
can you look in the full logs for all the "login attempt…" and pastebin them (https://my.home-assistant.io/redirect/logs/)
There is nothing now :/ probably because I deleted the ip ban and restarted HA
hmm. next time it happens, save the full HA log from the logs page, it will be helpful for timing data to see what the app may have done at the exact time it got banned.
Ok, thank you for your time.
Update on this thread:
- The easiest way to get good debugging information was to try it out on Mac instead of iOS, where there's a lot more latitude to get at the logs.
- The issue in this particular case was that my authenticating proxy (oauth2-proxy) was silently stripping the redirect URLs out of the authentication request (that is, the authentication request to my SSO provider) because they contained a // - just needed to allowlist the domain with
--whitelist-domain.
Hope these show up in Google and help somebody else out in the future.
oh darn i wish i had seen your earlier message, could have saved you some time. you may also run into issues with the authenticating proxy after login since the api calls and websocket connections from the app won't include any cookie data it sent.
at some point i hope to figure out if i can support these proxies. i've been working on esoteric login things (untrusted ssl, client certs) lately and it's in a similar area.
Hi,
Is there a reason that you can’t select the color in a Complication with a template? There are a lot use cases to use that
Hi @calm drift, little update about the IP banning the iPhone
`Logger: homeassistant.components.http.ban
Source: components/http/ban.py:125
Integration: HTTP (documentation, issues)
First occurred: July 8, 2022 at 12:55:02 PM (2 occurrences)
Last logged: July 8, 2022 at 12:55:03 PM
Login attempt or request with invalid authentication from 78.108.xx.xx (78.108.xx.xx). (Home Assistant/2022.3 (io.robbie.HomeAssistant; build:2022.358; iOS 15.5.0))`
This just looks like if the phone used wrong password, isn't it ? This time I have no log from the app, because I noticed it too late, but the app was working like always. The homeassistant log I remember from previous bans looks just the same.
the app logs keep for around 3 days so it should still be there
2022-07-08 23:58:03.131 [Info] > Home Assistant Version: 2022.3 Build: 2022.358 PID: 25485
The log starts after the ban. I will make sure I have all the logs next time . Jesus I am so unlucky.
the logs rotate to dated files in the app's export too
Yes. Because that feature hasn’t been implemented.
Ok. I start a feature request 😂
I have a couple of questions
is it possible in the app to swipe from view to view?
and also, i am considering using a ipad mini for a remote, for HA and one or two other programs, is there a good free (or at least no subsription) "kiosk mode"-like app for ios? That lets the ipad mainly just show those to apps?
Are the clear-notification tags just a hit or mis? It works for a very limited time (read one or two times...) but after that it's not longer working. Is this a known issue or is there another reason i experience this behaviour.
is there a way to get notified of how many windows have been left opened ? I have a windows counter card, but it would be really nice if i could get a notification when i leave home, that like 3 windows are left open. And best if its possible to do that in UI ...
You'll need to be specific about the part you want help with
yeah they are not super reliable. apple unfortunately has denied us the permission to make it reliable. the app needs to be launched by the notification to do the clear, which is throttled for battery reasons.
oh darn i wish i had seen your earlier
oh sorry i just now noticed You're response.. so im getting a notification 2 Window opened, but i would like to get 2 Windows opened, so that the word Window changes to Windows when its more than one left open https://dpaste.org/3QHJE
And second question ( Got sent here from #general-archived ) trying to get blinds closed when i activate sleep focus on my iPhone, but from what i've understood so far, only do not disturb is used as a focus here, or can i also use focus profiles i've created on my own ?...
There is only a single sensor for all focus profiles. It is on if any focus mode is active and off if none are.
Ok so then the idea I had wouldn’t work 🙂
Does the iOS beta version of the mobile app support client certs like the Android version? I installed through TestFlight but it didn't prompt like the Android version did.
Ah looks like it's a WIP https://github.com/home-assistant/iOS/discussions/1788
no obvious explosions or general failures using the app with the iOS 16 public beta
The widgets on the lock screen are pretty underwhelming, but the whole build seems pretty stable
your notify targets probably got renamed to notify_iphone
I saw that the phone name changed in the app settings, but my existing service remains and works
in addition to the "new" ones
maybe it'll be a problem if I restart
that would be my fear. apple still hasn't said anything about permission to read device names. may need to add a hack.
notifications were the first thing I tried
yeah, it created another mobile_app instance that was frozen to my old iOS version and status, but the related service still worked. I removed it and the new one just wants to be known as "mobile_app_iphone"
if that's the only issue, it'll be a success
... that would explain notifications not working for me right now 🤦♀️
As we can set our device name in the app, would it make sense to use that for the notify service id? Well, a slugified version of it
I personally have two iPads, and while that's not that normal, I can imagine more people having multiple devices signed into their account which are actually shared devices.
the device name you set in the app is used for the notify service name too
seems....snappier
too bad those keep changing back to the name the user sets in their device (and use/set those for all sensors. I keep having to rename those every time the app is logged out for some reason. Couldnt the Mobile app integration remember those settings ?
example: my device is called 'My mobile phone' so all entities/sensors get that name. I want to rename 3: device_tracker, activity and geocoded_location, simply because I have rather complex templates, which copy the complete config and only need the 'name' I set in the mobile_app. 'device_tracker.marijn_app, sensor.marijn_app_geocoded_location, sensor.marijn_app_activity' etc etc for all family members.
device_tracker is ok, and remains untouched when a re-registration happens. The sensors however always get renamed to the original device name... as the app regularly logs off family members, you can understand how nice it would be if Integration Mobile_app would 'remember' the settings
Installed iOS 16 Public Beta, and as expected, my notification service was renamed to notify.mobile_app_iphone. I changed the name of my device in the app settings to match my iPhone device name (e.g., John's iPhone), but the newly created notification service removed the apostrophe in the device name (e.g., notify.mobile_app_johns_iphone) rather than replacing it with an underscore (e.g., notify.mobile_app_john_s_iphone), so it still doesn't match the old notification service.
Any suggestions for renaming the mobile_app notification service so I don't have to go through and change all of my automations? (I really don't want to do that anyway for consistency with other devices/entities that use an underscore in lieu of a special character.) I suppose for now I could change the device name in the app (e.g., John_s iPhone or John s iPhone), but that's a temporary hack at best and could create issues with the friendly name of related entities in Home Assistant.
Open to any other ideas!
I use a script to send notifications and that's the only place I have the actual mobile_app service. Limits the changes
That's definitely on my list. I use a single script for TTS notifications, but haven't gotten around to streamlining and tidying up all of my iOS and Telegram notifications...
For now, changing the device name in the app to John s iPhone and subsequently renaming my mobile device in Home Assistant to John's iPhone appears to have done the trick.
it's possible the apostrophe in the device name is a curly ' and that's changed differently than a straight ' - can you tell if they are identical?
I do know that Iphones ' is slightly different than other OS system's had a similar issue while programming.
Hmmm, I actually thought about that, but I couldn’t get the iOS keyboard to type a straight apostrophe. I’ll try pasting a straight apostrophe and see whether that makes a difference.
Thanks for the suggestion.
That seems to have done the trick. I did have to paste in a straight apostrophe as I never could get the iOS keyboard to type one.
Would it be worth creating an issue on core about the disparate treatment of straight vs curly/iOS-style apostrophes when config flow is creating entity ids?
i think there's a shared "slugify" that home assistant uses which is an external library
You can also see what it's going to do by pasting something like this into
-> Templates:
{{ slugify('abc') }}
Presence at home. I have used both WiFi/router detection and the companion app/mobile integration, but lately my WiFi has disconnected on my iPhone, resulting in several automation beeng triggered, which I don´t want, obviousely.
Will I actually need/benefit from the WiFi detection when using the companion app?
I don’t use it. Personally, I rely exclusively on the location data from the companion app for my prestige detection, but your mileage may vary.
Hey Everyone,
Incase anyone is interested I made a Shortcut that toggles the state of an Home Assistant Entity between ON/Off using the Home Assistant API.
You can get a Home Assistant API Token by going your Home Profile Page and then scrolling to the bottom and clicking "Create Token". Answer the setup questions or read the comments to setup the Shortcut.
https://www.icloud.com/shortcuts/28f7a8cec95d4186a2ee2f7dcf4f75d4
Hope this helps someone 🙂
Aidan
Forgive me, but isn’t this supported out of the box with the native service calls?
But, again, isn’t that already a feature of shortcuts? I don’t mean to be rude or take away from what you’ve built, but I’m trying to understand what new capabilities this provides that aren’t already offered by the existing native service calls within the Shortcuts app.
I understand, to my knowledge you can’t get the current state of an Entity with the provided Home Assistant shortcuts actions.
this is getting so frustrating... whenever I leave my local network, my iPhone App gets banned on its nabucasa url, though the ip-bans is listed at 127.0.0.1. in the app I have the cloud for external url.. I need to delete the in-bans.yaml file restart and relogin.. (and after that rename several of the entities in mobile_app, because the integration isnt smart enough to remember those, even though the device should have a unique_id). Why o why did this start happening since 2022.7..
what request is getting banned? what's the user-agent in the log?
heck, i got to wait for it to happen again.... I switched off network just now (and immediateley the app was kicked out of the connection). No error just yet though, only the nabucasa link is denied for now
i don't really know what that means. if the app was signed out it stores the reason in the event log.
Logger: homeassistant.components.http.ban
Source: components/http/ban.py:124
Integration: HTTP (documentation, issues)
First occurred: 20:18:12 (1 occurrences)
Last logged: 20:18:12
Login attempt or request with invalid authentication from localhost (127.0.0.1). (Home Assistant/2022.3 (io.robbie.HomeAssistant; build:2022.358; iOS 15.5.0) Alamofire/5.4.4)
Could this be it ?
Ive also noticed the location is constantly updated. Even when not moving at all ( watching a movie just now) and enormous amounts of loggings happened .. might explain the battery drain I am seeing lately….
And the toggles on the zones can’t be toggled ?
I have the Fellow EKG electric kettle, which uses BLE protocol through an iOS app to turn the kettle on and off, set temperature, etc. There is a small amount of research that I found into this topic, but implementation seems to be quite involved in writing test code, which I’m not too sure how to do yet. Anyone else have this kettle and thought about best way to get this working or know of something in HACS that might be useful?
Hello, i can't find .homeasisstant folder on my mac - any idea why?
so this:```2022-07-15 12:48:56 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from localhost (127.0.0.1). (Home Assistant/2022.3 (io.robbie.HomeAssistant; build:2022.358; iOS 15.5.0) Alamofire/5.4.4)
hi maybe its not for here but i am going crazy please can somebody help
Every six weeks i get Apple every 30 or so minutes asking do we approve of a login! I have no idea which intergration it is in HA. I have icloud , IOS and mobile phone would you know ?
I have tried disabling them i was sure it was icloud
but still gtting prompts after disabling it
do you have more than 1 server for this server? send logs (https://wormhole.app or https://www.dropbox.com/request/CtVWqILBXZ41tmFSGK2y) and i can take a look. just need to match timestamps. not sure why it was spamming the server yesterday though.
the iOS app is definitely not going to do anything iCloud-related, almost certainly it's the iCloud integration
Hi @calm drift not sure if it is iCloud i am just getting a logging in approve on all our iphones and iPads connected to IOS but we have no idea what intergration it is ?
I guess it is not the IOS intergration but if iCLoud is disabled why we still getting them, the whole family gets them thats how i know its a HA intergration
are you sure it's disabled?
more than 1 server: not sure I get what you mean. Its my main HA instance, and I connect either over the wifi or 4G.... sometimes it logs 127.0.0.1, sometimes it logs my iphone devices name.
in the app's settings at the top, do you see just 1 server entry?
will throw some logs if and when it happens, but for now, (after disabling the Google TTS setting) it has yet to come back. So even though Paulus said it couldnt be it, I wonder if it could...)
o sorry, no I have 3
are the 3 for distinct servers or is there overlap?
overlap as in what? identical entities/trackers?
if 127.0.0.1 got banned for some other reason, the app will definitely log the http.ban entries because it doesn't know not to send network calls. so it might be worth figuring out why the server thinks the network calls are coming from 127.0.0.1 -- maybe you need a trusted_proxies entry for it
like are the 3 suppose to be 3 or are there suppose to be less?
fixed it
no there are supposed to be 3. they're different devices
was it the icloud one, or something else?
its very weird you have to keep disabling it then after a few you get an warning app need configuring and icloud pops up even if disable you re enable refresh then ad you apple details very weird
the disable maybe is more of a 'request' unless you restart, i'd guess
cheers anyway have a good weekend andthing coming new to ios app ?
always and never, depends on free time 🙂 it's been a busy year for me at work so far, so less attention to HA, but weird TLS situations should be easier in the app. and if you grab the TestFlight app (and aren't on iOS 16) it'll keep your sensors live-updated when Local Push is on, which can be pretty good.
on the zones: any reason this is logged so constantly, even when not moving at all? I now have only zone enter/exit enabled and Push, which calms it done a bit, but I dont understand why it constantly updates all zones
Sensors ofc are useful updating, but the zones?
how constantly? if you tap into it, what does it say the reason for the location update is?
in location history the subtitle is the cause of it
Like this
tap into one of them, do you have 2 zones that are near each other there?
that does seem abnormal, but i'm not sure what's going on. it could also be that it's stuck in a loop like: (1) update location, triggering zone changes (2) zone changes triggered entry (3) entry causes location update, repeat
as said, Ive disabled the background fetch for now, but thats really not optimal ofc, as I want my phone to be tracked. It should only happen on moving though. And, I can see it updating All zones also, not just the ones I am travelling through
background fetch is unrelated to those geographic enter/exit, but those are tied 1:1 with the zones themselves
clearly something weird is going on
in event log do you see anything with: "Initially monitoring" in it? how many zones do you have?
I also added some track_ios: false to some of them ( I have rasther a lot of zones...)
the app has to minimize the number of zones it tracks, which means when location updates happen it may swap which ones are tracked to only do closer ones, but it's suppose to ignore any events that happen during that swap
do your zones overlap the location you're at?
no, my zone.home is the default, made by the original configuration.yaml settings, and no overlaps
39 zones
i think some kind of bug is happening causing it to update locations when it's thinning the tracked zone list (to keep within apple's maximum monitored regions) -- logs are probably the best bet to see what is happening at least
it's possible the logic to ignore updates for about-to-change zones is happening too soon or not enough
what version of iOS is this?
15.5
Guess this is what is happening, so a bug after all https://github.com/home-assistant/core/issues/37029#issuecomment-1186029985 (which hasn't occurred after having disabled tts: platform: google_translate btw)
weird! maybe it's causing 127.0.0.1 to be reported oddly. guess the additional logging will help
Hey so was there a way of getting my childrens ipad and iphones update when something changes on their phone/ipad? Like when their battery drops.. when their device goes into charging mode etc?
What I can see on their "Last Update Trigger" its really stuff that doesnt happens a lot since their units mostly is at home.
Last Update Trigger on their units is Significant Location Change, Geographic Region Exited and Siri.
Isnt a trigger "Battery drop" or "Plugged into charging" etc a good trigger as well? Or is there only these major changes that trigger an update on their IOS devices?
My Samsung trigger each time I plug it into charging for example..
Still without Bans.. ;/) gives some space for another issue: whenever I open the app via a widget on my iPhone the tab icons aren’t displayed… even a pull down refresh won’t make them appear
Closing the app and reopening via the icon on the Home Screen is always ok
On the widget: I have a set of shortcuts pointing to only 1 of my 3 servers. And yet it always asks which server I want to open. I can select any but ofc the other 2 show Not found. Isn’t it a bug it asks for those servers even if the shortcut is clear in itself ?
Look at setting up personal automations in the shortcuts app on their devices. The home assistant app can fire an event for you which will trigger things. And/or you can just update the sensors.
if the device is mostly at home, the next release (whenever i finish it, or in testflight beta now) will live update most sensors if local push is set up and working. so battery state will update immediately. only works when on wifi with an ssid set up with an internal url.
what kind of shortcut?
awesome thx!
@shadow valve posted a code wall, it is moved here --> https://hastebin.com/ajererexiq
I need help configuring the "synced actions" for the iOS app in the configuration.yaml. Whenever I add an action there the configuration file seems to silently fail to load (all sensors and integrations are unavailable).
Validation says that the configuration.yaml is valid and the logs don't show anything.
Home assistant container v2022.7.5
The configuration: https://pastebin.com/FUWhBysA
(Yes I am aware I've defined the icons in two different ways, I believe the issue is with the icon so I was testing)
Why is GPS updated so infrequently and what can I do to make it quicker with minimal extra battery drain? OwnTracks?
Quicker will mean more battery drain, that's unavoidable
OwnTracks is certainly one option, I used it, works well if you get it right
Not sure how much more frequent it can manage on iOS though, given the rate limiting done by Apple
One option is to train iOS to keep the app awake by simply launching it more often.
Alternatively, you can write automations to have Home Assistant actively ping your phone to request updates. Unfortunately, this is not 100% effective.
The last option is to create an iOS Shortcut that automatically updates Home Assistant whenever your phone is unplugged or plugged in (or whatever other trigger you like). In my experience, this is nearly 100% reliable - and instant.
Personally, I use all three methods and have very little issues with any of my sensors updating. I hope this helps.
Honestly I'd want to replicate Life360's functionality with their updates when someone is looking at the map thing, although that would be hard to do, wouldn't it?
Hey all 🙂 any idea why im not getting critical notification here ? https://dpaste.org/NJoHc
I've used a setup for doing that from iOS before. It kills your battery if you share it at a rate someone can follow you exactly, but it was handy for the events I was at.
For the tracking I used this:
https://github.com/aaronpk/Overland-iOS
And it sent the data to my own install of this:
https://github.com/aaronpk/Compass
got my problem, spacing 🙂
That and a good editor (such as the VS Code add on Frenck so generously maintains), will save you hours of headaches.
im slowly getting used to headaches when dealing with HA, its like a thing that comes together with using HA in my case 🙂 im just so into all this today that i somehow copied the lines correctly and then removed the correct spacing, after checking the original code, i found the difference 🙂
the app optimized for "are you in a zone?" as an answer. anything more accurate will be complicated for battery usage - the app should be generally around 1-3km accurate otherwise depending on cell towers.
for like 6 months we've been waiting for apple to respond to our request for permission to use a feature that would allow the server to reliably ping the phone for a location update. think when viewing the map, the phone is asked to update. perhaps if they ever do so, it can be more similar to Find My.
why o why is the app always renaming the entities back to the ios devices name and entity_id upon re-login, instead of keeping it named the user overrides in the integration settings? I want the IOs device to have some cryptical name so it can not be discovered on the train to be mine, but want to name it differently in HA.
it should have a unique_id to be able to do so and remember that?
when the integration is created i think it loses the old customization logic, so it isn't the app doing anything different so much as resetting. the app really doesn't intend for you to be signing out.
Yeah but somehow we regularly get logged out… auto magically. Or purposely, when the local only devices return home…
But even so, couldn’t this be made so it does keep?
yeah maybe. i'm not sure how the core side of it works. it definitely re-connects to the integration it had before because the device id matches.
ideally we solve why you're getting signed out
See above , I added some logic for the logout
I thought I had it fixed by renaming the device ( first only renamed some entities) but unfortunately not, and though the device name remains changed, the entity_ids all return to the original
Why not just run Life360? The basic app is free and you can replicate the paid alert features with HA.
Wife has HA and Life360 tracking and the Life360 entity is almost always more accurate.
Privacy
Sorry, wrong reply BigBlackBear.
anybody fix the ios16 notification problem ?
its sending on my phone but if ı click 2 times call service its sending 1 time
i love the widget that lets me load a scene on android.. the same exists on ipad but instead of just loading the scene, it also opens the home assistant ap.. is there a way to change that?
you'll need to use the shortcuts.app widget - only apple widgets are allowed to do work without opening the app.
i don't know how this would be possible but make sure you correct the device name if you have not.
İf you want ı can record video @calm drift
sure that may be helpful
Thanks!
am I completely blind or is the companion app for mac os only available from the app store now? there always used to be a direct download available as well
new to ios.. damn shortcuts looks pretty cool
It really is. Play with the automations tab—specifically personal automations and turning off "ask before running". So handy 😄
download is available on github https://github.com/home-assistant/iOS/releases
TY! bookmarking that everywhere I can think of
is there anything that can be done to increase the effectiveness of the ios App reporting sensor information while backgrounded? I have one family member who's sensors update, but seemingly do so at a sporatic interval. fwiw: iphone 13.
said family member doesn't open the app all that often
You can use shortcuts personal automations to update the sensors periodically.
Speaking of which, if you have multiple servers, which one(s) will be updated by the shortcuts action "Update sensors"?
You're saying I can 1) build a shortcut that triggers the HA app to send updated sensor information and 2) that can be configured to run automagically on some regular basis?
oh wow that's a really good idea
there's literally an "Update Sensors" action in shortcuts -- that makes it really easy, we run into the same issue @thin cedar
depends on the sensor though I guess... probably not very useful for location and things that are constantly changing
curious if the Update Sensor shortcut thing actually tells the OS to update the values of the sensors -- or if it just tells HA to send the current data to the server
"Send a sensor update to Home Assistant" - I'd assume that means it just sends data, no updating what the current status is
the example I just saw was someone wanted phone charging status, so they made an iPhone automation for when the phone is charging to run the "Update Sensors" HA action and it seemed to work flawlessly, so I'm optimistic it does both?
still have to do #2 above
yeah, you can set up automations to run based on a few triggers (not as much as android would allow), but you can have it run based on location, time of day, etc...
"Update Sensors" sends the latest values.
in the latest testflight beta, as long as the app is connected to Local Push (so internal url working and on wifi for it), sensors should update mostly instantly. https://home-assistant.io/ios/beta
all of them, it is an indiscriminate and intentionally simple action
Awesome! That's absolutely perfect 😄
Hey 🙂 trying my luck in #installation-archived but it’s been pretty quiet, so I’m trying my luck also here since it’s kinda mac related 🙂 im unable to connect to my HA config with samba share, using HA OS on VM on Mac, Samba Share installed and running, tried these adreses \192.168.x.y\config
://\192.168.x.y\config
smb://192.168.x.y/config
smb://192.168.x.y without any success. Trying to connect to it on mac through desktop, go, connect to server, and im using the ip that i see in my router for HA, tried the DuckDNS in the beginning but was told its not the right way 🙂
None of that is related to the iOS app
iOS and Mac ?…
points to the category
Apps
Android, iOS and Mac apps
Not general Android, iOS and Mac help and advice
Yep!
What you're asking is more a question for Google
hello, I am trying to install Home Assistant on my Macbook air. I am very new to all of this and pretty much don't know anything. I followed the instructions from this Youtube video https://www.youtube.com/watch?v=hej6ipN86ls, but when I go to run the UI using this command "hass —-open-ui" it doesn't work. Can anyone help me?
Doesn't seem related to the Mac app