I can access HA from my iPhone app and iPhone safari (using the direct IP address), and my Mac app and some browsers on my Mac as well. Just not chrome and safari on my Mac.
I tried everything: setting IP_ban to false, DNS Cache flush, changing the IP of my computer, clearing data and cookies, restarting. Nothing is working. Whenever I login from chrome or safari on my computer, it just says: "Unable to connect to Home Assistant. Retrying in __ seconds..."
The log error:
Logger: homeassistant.components.http.ban
Source: components/http/ban.py:136
integration: HTTP (documentation, issues)
First occurred: December 4, 2024 at 6:45:53 PM (29 occurrences)
Last logged: December 4, 2024 at 10:49:30 PM Login attempt or request with invalid authentication from Mac (192.168.1.170).
Requested URL: '/auth/token'. (Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36)
Any suggestions at all would be greatly appreciated.
Can I get some clarification on what system the home assistant is installed on or the home assistant itself?
I’m assuming it’ll connect correctly over your phone? Or other devices?
Does your Mac act as a HomeKit hub in any way?
Edit:
without much knowledge of your instance(I’m running on proxmox and through a pile of thrift store hardware)
Check and Clear IP Ban
Test Login with Private/Incognito Mode
Validate SSL/TLS Settings
Reboot the Router
Test with Another Mac User Profile
Please don’t make me start a mac machine just so I to can learn that there are some oddly specific thing with macs and Home Assistant. Homekit should be integrated somehow when you can.
I have a Ras Pi 5 running Proxmox. HAOS Is a VE on the Proxmox.
No my mac isnt any type of homekit hub.
I am able to access HA on my mac using :8123 on DuckDuckGo browser. For some reason though I cant get it to work on Chrome or Safari on my computer. It works on chrome and safari on other macs and my iPhone, just not my mac.
I tried Incognito, clearing data/cookies. And made sure there is no IP Ban.
Also tried restarting and rebooting everything obviously…
Not sure what else it could be…
Check for Extensions or Plugins
Disable All Extensions
In Chrome: Go to chrome://extensions/ and toggle them off.
In Safari: Go to Safari > Preferences > Extensions and disable everything.
Have you tried Flushing the DNS Cache:
Open Terminal and run: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Go to System Preferences > Network > Advanced > TCP/IP and click Renew Lease
If you’ve edited /etc/hosts in the past, make sure there’s nothing in there interfering with your HA hostname or IP
Verify the SSL certificate being used
Go to chrome://flags/ and search for insecure.
Enable “Allow invalid certificates for resources loaded from localhost” and test again.
If you’re using HTTPS, test with http://[IP_ADDRESS]:8123 to rule out certificate-related issues.
Open Developer Tools:
In Chrome: Right-click > Inspect > Console tab.
In Safari: Enable Developer mode in Preferences, then go to Develop > Show Web Inspector > Console tab.
Look for Errors:
Check for any blocked requests, CORS issues, or security warnings.
Do the other macs or ios devices that do work have a homekit app or something? Is your osx the latest?
I had issues connecting iOS devices before but homekit and the homekit bridge integration(on ha) seem to improve this and I’m unsure why.