jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Connecting / setup free@home #161

Closed jovana closed 1 year ago

jovana commented 1 year ago

Hi,

I want to set up this custom_component but I have some issues connecting. I have enabled the API user in the sysAp.

Scherm­afbeelding 2023-05-25 om 12 32 38

After that, I added the info in configuration.yaml, and after a restart, it detect the sysAp box.

Scherm­afbeelding 2023-05-25 om 14 23 55

Click on the configure button and enter the details again.

Scherm­afbeelding 2023-05-25 om 14 24 47

It gives me the error "check the username". Checking the log I see only this:

023-05-25 10:26:06.273 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found
2023-05-25 10:26:18.844 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found
2023-05-25 10:28:02.149 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found
2023-05-25 10:28:10.681 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found
2023-05-25 10:32:26.622 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found
2023-05-25 10:33:17.741 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found
2023-05-25 12:24:52.419 ERROR (MainThread) [custom_components.freeathome.fah.settings] user not found

What can I do to fix this issue?

thx for helping! Jo

victorclaessen commented 1 year ago

Can you try the username you normally log into the SysAp with? (So not the one you see in the REST api)

jovana commented 1 year ago

Can you try the username you normally log into the SysAp with? (So not the one you see in the REST api)

Thx for the fast response.

I have tried also, the same result. Well, the strange thing is, I can log in to the box without any username, only enter the password. It seems like there is a simple login interface but I can enable the API. Login in on the cloud is also possible. Is there any command I can try to check the login using the commandline interface?

victorclaessen commented 1 year ago

🤔

jovana commented 1 year ago

🤔

  • Can you check in the app which user you are logged in with? In the top right corner there should be an icon of a person with a dropdown menu, which should say "Logged in as: xxxx"
  • Otherwise, can you check in the app under "User administration" which users there are?

YES!! This did the trick! The username is "Bewoner" (it's dutch for resident). Okay let's see what we can do now.

Thanks for helping!