home-assistant / iOS

:iphone: Home Assistant for Apple platforms
https://companion.home-assistant.io
Other
1.53k stars 293 forks source link

MacOS App - SSID and BSSID sensors show as Not Connected even though I am connected to WiFi #2086

Open eldirinice opened 2 years ago

eldirinice commented 2 years ago

Device model, version and app version Model Name: MacBook Air (Retina, 13-inch, 2020) macOS Version: Monterrey 12.2.1 App Version: 2022.2 (2022.345) Safari Version: 15.3 (17612.4.9.1.8)

Home Assistant Core Version 2022.2.9

Describe the bug The BSSID and SSID sensors for my MacBook Air show as Not Connected, even though I am connected to WiFi and the Connection Type sensor indicates that I am connected to WiFi.

To Reproduce Connect to WiFi and update sensors. Under the Mobile App integration, examine device details for the MacBook Air. Connection Type will show WiFi, but BSSID and SSID will show Not Connected

Expected behavior BSSID and SSID should show the details of the WiFi network that I am connected to.

Screenshots (Personal/potentially identifying info blocked out, but the MacOS WiFi details show the name of the network and the expected BSSID.)

Screen Shot 2022-02-22 at 10 03 20 AM Screen Shot 2022-02-22 at 10 05 36 AM Screen Shot 2022-02-22 at 10 06 39 AM

Additional context

zacwest commented 2 years ago

What do the privacy permission rows at the top say in Preferences > Location?

eldirinice commented 2 years ago

Location permission is set to Always, location accuracy is Full.

image
leovj commented 2 years ago

I have the same problem with sensor SSID whit my Iphone. Even if my iphone connects to wifi, the sensor on HA remains not connected sometimes even for several minutes or hours ..

MacDada commented 1 year ago

Screenshot 2022-10-29 at 22 43 04

Turn on Location Services for Home Assistant and restart the app.

Apparently Apple considers WiFi name as a value that could identify your location, so they "protect" by Location permissions.

MacDada commented 1 year ago

Same thing on iPhone – you need to have Location Services turned on, with permissions for Home Assistant, to see the WiFi info.

eldirinice commented 1 year ago
Screenshot 2022-10-29 at 4 36 27 PM

Location Services has always been on for Home Assistant on my Mac and iPhone, but this problem persisted. Unfortunately, I'm in between homes at the moment and my HA instances is not currently set up, so I am unable to verify if this problem is still occurring. But I did want to point out that it wasn't a matter of Location Services being turned off for me.

MacDada commented 1 year ago

But I did want to point out that it wasn't a matter of Location Services being turned off for me.

Well, I also had it turned on and it didn't work. Turning it off and on again, then HA companion app restart, helped.

holocronweaver commented 2 months ago

Ran into this issue as well on iOS 17.5.1, HA Companion 2024.5.1. Strangely GPS-based location was being regularly updated, but not any other sensors such as SSID, BSSID, battery, etc. until I opened the HA app on the phone.

The issue began around 6:45 PM (see image below) - looks like the last updates were due only to 'significant location changes' and 'geographic region entered' until I opened the app around 8 AM the following day, at which point periodic and 'signalled' updates started again and all the sensors started updating once more. Maybe the background service that updates location is not also updating the other sensors? Or iOS is killing background updates to preserve battery?

image