freeathome icon indicating copy to clipboard operation
freeathome copied to clipboard

After entering username/password nothing happens

Open colinwilke opened this issue 3 years ago • 11 comments

Uploaded and included the files and I do see the extension in Home Assistant, it also detects my installation correctly (correct IP), however when asked for username and password nothing happens. If I enter a non-existing username it says user not found so it must be somehow connecting. However there is no message when entering a wrong password. The wheel just spins indefinitely… any idea? Much appreciated.

colinwilke avatar Jan 31 '22 15:01 colinwilke

Same here. Running latest 2022.2.1 HA on a QNAP NAS. F@H access point is at firmware 3.0

n3m3sis1983 avatar Feb 04 '22 10:02 n3m3sis1983

Hello, Sorry for the late reaction. Can you set the logger level in the configuration.yaml to info? After restart of Home Assistant you should see extra logging in Configuration/Setting/Logs, Load Full Home Assistant Log. Can you show the last entries of freeathome?

jheling avatar Feb 09 '22 17:02 jheling

image

n3m3sis1983 avatar Feb 09 '22 19:02 n3m3sis1983

Here we go, thanks a lot for your efforts:

2022-02-09 21:25:53 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration freeathome which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-02-09 21:26:08 INFO (MainThread) [homeassistant.bootstrap] Setting up stage 2: {'map', 'script', 'input_select', 'tts', 'usb', 'system_health', 'mobile_app', 'media_source', 'blueprint', 'counter', 'energy', 'network', 'scene', 'input_boolean', 'dhcp', 'logbook', 'ffmpeg', 'input_datetime', 'camera', 'input_button', 'homekit', 'timer', 'zone', 'default_config', 'updater', 'sun', 'diagnostics', 'input_text', 'history', 'tag', 'upnp', 'my', 'unifiprotect', 'rpi_power', 'zeroconf', 'automation', 'trace', 'ssdp', 'group', 'met', 'input_number', 'freeathome'} 2022-02-09 21:26:13 INFO (MainThread) [homeassistant.setup] Setting up freeathome 2022-02-09 21:26:13 INFO (MainThread) [homeassistant.setup] Setup of domain freeathome took 0.0 seconds 2022-02-09 21:27:20 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:28:20 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:29:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:30:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome File "/config/custom_components/freeathome/config_flow.py", line 133, in async_step_import File "/config/custom_components/freeathome/config_flow.py", line 93, in async_step_user File "/config/custom_components/freeathome/fah/settings.py", line 21, in load_json 2022-02-09 21:31:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:32:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:33:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:34:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:35:21 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: freeathome 2022-02-09 21:37:01 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that accessed discovery_info.get('name') instead of discovery_info.name; this will fail in version 2022.6. Please report issue to the custom component author for freeathome using this method at custom_components/freeathome/config_flow.py, line 50: if not zeroconf_info.get("name", "").startswith("free@home"): 2022-02-09 21:37:01 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that accessed discovery_info['name'] instead of discovery_info.name; this will fail in version 2022.6. Please report issue to the custom component author for freeathome using this method at custom_components/freeathome/config_flow.py, line 53: friendly_name = zeroconf_info["name"].split(":",1)[1].split(".",1)[0] 2022-02-09 21:37:01 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that accessed discovery_info['host'] instead of discovery_info.host; this will fail in version 2022.6. Please report issue to the custom component author for freeathome using this method at custom_components/freeathome/config_flow.py, line 55: await self.async_set_unique_id(zeroconf_info["host"]) 2022-02-09 21:37:01 WARNING (MainThread) [homeassistant.helpers.frame] Detected integration that accessed discovery_info['host'] instead of discovery_info.host; this will fail in version 2022.6. Please report issue to the custom component author for freeathome using this method at custom_components/freeathome/config_flow.py, line 60: CONF_HOST: zeroconf_info["host"], 2022-02-09 21:40:15 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] Connect Free@Home [email protected] 2022-02-09 21:40:15 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] version: 3.0.0 2022-02-09 21:40:16 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:17 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:18 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:19 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:20 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:21 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:22 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:23 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:24 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:25 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:26 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:27 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:28 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:29 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:30 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:31 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:32 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:33 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection 2022-02-09 21:40:34 INFO (MainThread) [custom_components.freeathome.fah.pfreeathome] waiting for connection

colinwilke avatar Feb 09 '22 20:02 colinwilke

This is very strange. The component is stuck at the login. I'm still on an older version of the firmware, but a number of users have confirmed that it still works with the 3.00 firmware. @Tho85, do you have a clue?

jheling avatar Feb 11 '22 06:02 jheling

Maybe it is related to the combination of SysAp 1 and firmware 3.0?

Am 11.02.2022 um 07:26 schrieb jheling @.***>:

 This is very strange. The component is stuck at the login. I'm still on an older version of the firmware, but a number of users have confirmed that it still works with the 3.00 firmware. @Tho85, do you have a clue?

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.

colinwilke avatar Feb 11 '22 10:02 colinwilke

@colinwilke @n3m3sis1983 Could you try to setup the integration manually, i.e. click "Add integration" in the bottom right corner, search for free@home, and enter the details there.

I suspect that something is off with the hostname advertised through zeroconf. Maybe we better switch this to the announced IP address, just to be sure.

Tho85 avatar Feb 11 '22 12:02 Tho85

If I enter a non-existing username it says user not found so it must be somehow connecting. However there is no message when entering a wrong password.

Yeah, the implementation is a bit strange there. We first check the available user names from a list obtained via HTTP from the SysAP, and afterwards connect via XMPP to validate the password. This may be the reason why testing for the username works, but not for the password.

Tho85 avatar Feb 11 '22 12:02 Tho85

When manually adding the integration including IP address I do get the same waiting for connection entries - unfortunately. Any other ideas?

colinwilke avatar Feb 11 '22 13:02 colinwilke

I had the same logs some time ago. I also have the older SysAP 1.0. and the latest firmware 3.0 and i can confirm that it runs very well. Mayby this could help you: https://github.com/jheling/freeathome/issues/95#issue-848296427

eic1cr avatar Feb 12 '22 14:02 eic1cr

I don't understand why this error occurs. As far as I can see, it only concerns SysAP 1.0 with firmware 3.0, right? It would be great if someone with knowledge of Wireshark could have a look why it seems to be impossible to start an XMPP connection. I have a SysAP that works with the latest firmware, so I can't really dig into this...

Tho85 avatar Feb 20 '22 17:02 Tho85