Correct it is a port forwarding setup. I have the router routing traffic from port 443 externally to port 8123 on the HA server. It’s a Linksys router. Do you think it’s not routing properly? I didn’t think it could manipulate the traffic when it’s singed by an SSL cert. I’ve never had issues with port forwarding. I also have a VPN that I port forward to and that works fine.
Is your browser connected to HA via your public IP while adding the integration?
Yup, I have it setup with a DuckDNS domain and I’m accessing HA through that domain. It’s also setup with a Let’s Encrypt certificate.
@allenporter I added those debugging lines but I’m getting zero results for homeassistant.helpers.config_entry_flow
and homeassistant.helpers.config_entry_oauth2_flow
in home-assistant.log
. I can see them initializing with the correct debug level:
2020-12-31 17:17:56 DEBUG (MainThread)
[homeassistant.components.upnp]
async_setup, config:
OrderedDict([('default_config', {}), ('logger', OrderedDict([('default', 'debug'), ('logs', OrderedDict([('homeassistant.helpers.config_entry_flow', 'debug'), ('homeassistant.helpers.config_entry_oauth2_flow', 'debug')]....<omitting the rest>
I can also see nest
picking up all the config data from configuration.yaml
later in the same log line. I’ve checked the credentials again (and a second time by my son) to ensure we’re using the correct credentials. Famous last words but I’m VERY confident that the credentials are correct. We’ve CTRL+F’d all credentials to ensure they’re the same everywhere.
Again, the callback log lines, adding some more lines from the /api/config/config_entries/flow/
call which I didn’t include last time.
2020-12-31 17:19:33 DEBUG (MainThread) [homeassistant.components.http.view] Serving /auth/external/callback to 10.58.1.1 (auth: False)
2020-12-31 17:19:33 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event data_entry_flow_progressed[L]: handler=nest, flow_id=e3a3cfbad2cb43b899935d02331d2be2, refresh=True>
2020-12-31 17:19:33 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection] [547492612992] Sending {"id": 31, "type": "event", "event": {"event_type": "data_entry_flow_progressed", "data": {"handler": "nest", "flow_id": "e3a3cfbad2cb43b899935d02331d2be2", "refresh": true}, "origin": "LOCAL", "time_fired": "2020-12-31T22:19:33.748596+00:00", "context": {"id": "4b2b21bc203146dc5dfbfbe7dfc6cab9", "parent_id": null, "user_id": null}}}
2020-12-31 17:19:33 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.58.1.1 for /api/config/config_entries/flow/e3a3cfbad2cb43b899935d02331d2be2 using bearer token
2020-12-31 17:19:33 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow/e3a3cfbad2cb43b899935d02331d2be2 to 10.58.1.1 (auth: True)
...<farther down, same flow ID>
2020-12-31 17:19:38 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.58.1.1 for /api/config/config_entries/flow/e3a3cfbad2cb43b899935d02331d2be2 using bearer token
2020-12-31 17:19:38 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/flow/e3a3cfbad2cb43b899935d02331d2be2 to 10.58.1.1 (auth: True)
2020-12-31 17:19:38 DEBUG (MainThread) [homeassistant.components.http.auth] Authenticated 10.58.1.1 for /api/config/config_entries/entry using bearer token
2020-12-31 17:19:38 DEBUG (MainThread) [homeassistant.components.http.view] Serving /api/config/config_entries/entry to 10.58.1.1 (auth: True)
and then it’s the end of the log file after a few more unrelated lines.
I guess the main thing I’m wondering now is why am I not seeing any log lines for the OAuth flow??
Thanks so much for the suggestions so far, from both of you!