Closed garyo closed 7 months ago
The config for username and 2fa has been moved into the standard Home Assistant location, the aarlo.yaml
file now contains the less used configuration items. You have 2 choices:
.storage/core.config_entries
to match your setup" twrecked The config for username and 2fa has been moved into the standard Home Assistant location, the aarlo.yaml file now contains the less used configuration items. You have 2 choices:
modify the Aarlo entries in .storage/core.config_entries to match your setup delete and recreate the Arlo instance on the integrations page"
I'm having the same issue can't get 2FA to work any more. What is the aarlo.yaml file and where should it be located? second I don't have aarlo in my .storage/core/core.config_entries, what should be there?
I'm trying to recreate my aarlo config from scratch but it's not working yet. I removed the integration in the UI and deleted aarlo.yaml
and restarted, then re-configured from scratch (using IMAP for 2FA) but it fails to configure.
Do I also need to remove the aarlo entries in .storage/core.device_registry and .storage/core.entry_registry before re-setting up?
I'm getting several errors, but one repeating one is this -- looks like it's trying to connect to an MQTT host (I didn't configure anything like that, just username/password/2fa IMAP and imap user/pass/host):
2024-04-02 08:16:18.611 ERROR (ArloEventStream) [pyaarlo] general-error=gaierror
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/pyaarlo/backend.py", line 526, in _mqtt_main
self._event_client.connect(self._arlo.cfg.mqtt_host, port=443, keepalive=60)
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 914, in connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/socket.py", line 828, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/socket.py", line 963, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
socket.gaierror: [Errno -2] Name does not resolve
@garyo set your backend to sse
, if you are on v0.8 try the fix in #871
@ramdisk00 what version are you on?
Yes I am on the latest v0.8 aarlo, just updated via HACS. I deleted the integration, created the aarlo.yaml
file as in #871, but then the config flow hung. So I deleted that file, restarted, went through the config flow, got the mqtt errors as above, and then recreated aarlo.yaml
to set the sse backend. And sure enough, it's working now! Thanks!
I do have one question remaining. I see that the config entries, including passwords, are now stored in .storage/core.config_entries
. Can I use my secrets file with that, like !secret arlo_username
? (Either by typing that in to the config flow, or hand-editing the core.config_entries
file?)
re: the secret's file; I'm not sure but I would think not. That's all controlled by the HA team.
But glad it's working.
I didnt do any upgrades to home assistant, still on 2024.1.3. Just did a reboot of the server. On reboot got the same errors that garyo was getting (mqtt). I ended up doing what twrecked suggested and modifying my configuration.yaml file (I am using hass-aarlo v7.4.2)
aarlo: backend: sse (left everything else the same)
restarted home assistant and the arlo integration is working again.
Thanks!
I updated to the latest version a while ago (aarlo 0.8.1a5 with pyarlo 0.8.0.4), things seemed to be working, but now I can't authenticate. In the my.arlo.com website, I have push auth set up to my Android phone. That works OK (I get the notification, approve, and can log in on the website).
I moved my aarlo config into
aarlo.py
, like this (I commented out the old gmail auth, since I'm not using that anymore):but I get these errors on startup:
and in the logs, I see it's still trying to use imap I think: