Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Log #54

Closed
zhooley opened this issue Mar 15, 2021 · 12 comments
Closed

Error in Log #54

zhooley opened this issue Mar 15, 2021 · 12 comments

Comments

@zhooley
Copy link

zhooley commented Mar 15, 2021

Hi!

I try a loxone binding in Home Assistan on a Synology docker.
A fill the ip, port, username and password and i get this error in log:
Logger: homeassistant.config_entries
Source: custom_components/loxone/api.py:785
First occurred: 2:47:28 (1 occurrences)
Last logged: 2:47:28

Error setting up entry PyLoxone for loxone
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 248, in async_setup
result = await component.async_setup_entry(hass, self) # type: ignore
File "/config/custom_components/loxone/init.py", line 131, in async_setup_entry
if not await miniserver.async_setup():
File "/config/custom_components/loxone/miniserver.py", line 128, in async_setup
res = await self.api.async_init()
File "/config/custom_components/loxone/api.py", line 347, in async_init
res = await self.acquire_token()
File "/config/custom_components/loxone/api.py", line 541, in acquire_token
key_and_salt.read_user_salt_responce(message)
File "/config/custom_components/loxone/api.py", line 785, in read_user_salt_responce
self.key = value['key']
TypeError: string indices must be integers

Please help me!
Thank You

@JoDehli
Copy link
Owner

JoDehli commented Mar 16, 2021

Have you tried it on a normal installation without docker?

@zhooley
Copy link
Author

zhooley commented Mar 16, 2021 via email

@JoDehli
Copy link
Owner

JoDehli commented Mar 16, 2021

Have you got access thru the official loxone app?

@zhooley
Copy link
Author

zhooley commented Mar 16, 2021

Yes, but my loxone port is 80 not 8080.

I also tried with wrong password, and then it was in the log:
ERROR (MainThread) [custom_components.loxone.miniserver] Error connecting to loxone miniserver.

I don't know what the problem might be

@JoDehli JoDehli pinned this issue Mar 17, 2021
@JoDehli
Copy link
Owner

JoDehli commented Mar 21, 2021

@zhooley I started a little gui program to check to connection. https://github.com/JoDehli/LoxGui
What OS do you use? Windows? I need to pack it as executable first.
Then you can test it. If this program can access and you use the same settings in the synology
and you have still the problem then it is a problem with the synology
docker environment.

I let you know when and where you can download the executable.

@zhooley
Copy link
Author

zhooley commented Mar 21, 2021 via email

@JoDehli
Copy link
Owner

JoDehli commented Mar 21, 2021

@zhooley here you can try this little gui for the connection to the loxone.

https://github.com/JoDehli/LoxGui/releases/tag/v0.1

Download the zip and unpack it and start the exe file. It is so big because I packed the whole python installtion into
this file. If you can you can only download the source and install the python and the needed packages
by yourself.

As a little site note: If you tried to connect from one pc a few times with wrong credentials this ip will
be blocked for a certain time. You must then change the ip of this pc or try it from a other machine with
different ip address.

@JoDehli JoDehli unpinned this issue Mar 21, 2021
@zhooley
Copy link
Author

zhooley commented Mar 22, 2021 via email

@zhooley
Copy link
Author

zhooley commented Mar 22, 2021

I have gen1 loxone miniserver.

Here is the error:

Try to connect...
Got Config from Loxone. Port and Host ok.
Traceback (most recent call last):
File "main.py", line 87, in connect_to_loxone
File "C:\Users\Joachim\Desktop\gui\LoxGui\api.py", line 364, in async_init
File "C:\Users\Joachim\Desktop\gui\LoxGui\api.py", line 559, in acquire_token
File "C:\Users\Joachim\Desktop\gui\LoxGui\api.py", line 803, in read_user_salt_responce
TypeError: string indices must be integers

@JoDehli
Copy link
Owner

JoDehli commented Mar 22, 2021

Ok this good. Because it is something with your credentials not with the synology.

can you paste one line from the config data tab:
the miniserver type:

"miniserverType": 0,

What type do you have?

@zhooley
Copy link
Author

zhooley commented Mar 22, 2021 via email

@zhooley
Copy link
Author

zhooley commented Mar 22, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants