jobvk / Home-Assistant-Windcentrale

Provides Home Assistant sensors for multiple wind turbines from the Windcentrale
https://jobvankoeveringe.com/projects/windcentrale/
Apache License 2.0
14 stars 3 forks source link

problem with loggin in with 0.1.4 #17

Closed mjrider closed 2 years ago

mjrider commented 2 years ago

Checklist

The problem

I'm getting the following error while loggin in, and i cannot setup the integration.

2022-02-20 09:09:57 INFO (MainThread) [custom_components.windcentrale.wind] Colllecting windshares
2022-02-20 09:09:57 INFO (MainThread) [custom_components.windcentrale.wind] {'@id': '1', 'id': '31fb3523-5490-4ea........snipped personal info.........}
2022-02-20 09:09:57 ERROR (MainThread) [custom_components.windcentrale.config_flow] Unexpected exception when submitting windcentrale config

the snipped content contains the windcentrale items e.d.

What is version of Home Assistant Core did you recieve the bug?

core-2022.2.9

What is version of Home Assistant Supervisor did you recieve the bug?

supervisor-2022.01.1

What is version of Home Assistant Supervisor?

supervisor-2022.01.1

What is version of the Windcentrale integration?

0.1.4

Example Code snippet

No response

Anything in the logs that might be useful for us?

i did try if it was a user/pass problem, and the process passes the stage where it collect the information from the windcentrale, i can see a full dump in the log of the windcentrale i have. It seems to break while processing those settings, and it aborts back to the config flow

Additional information

No response

jobvk commented 2 years ago

Hey @mjrider,

It looks like home assistant can't read the json file properly. Could you send the whole json file, but replace all personal data with "private" Then I can try to find where the problem is.

Thanks in advance

mjrider commented 2 years ago

hello, just checking, i cannot find a file of the type json with the content, if so, what would be the filename? or did you need the full line i provider before, but with more information then i gave before

jobvk commented 2 years ago

You need to get the JSON from home assistant log page

Step 1

Add code below to configuration.yaml

logger:
  default: warning
  logs:
    custom_components.windcentrale: info

Step 2

Restart your home assistant

Step 3

Step 4

got to the log page ../config/logs

and press the LOAD FULL HOME ASSISTANT LOG

image

Step 5

Copy the JSON text that is below the black box json2 The red block is your private access token

Step 6

Copy the text in too a JSON file and hide all your personal information with "private".

Step 7

Send the JSON file to me. So I can fix the problem.

jobvk commented 2 years ago

@mjrider Your still having this problem?