albaintor / homeassistant_electrolux_status

Get the status from your Electrolux Care devices
MIT License
81 stars 20 forks source link

Failed to configure #28

Closed cedsp closed 6 months ago

cedsp commented 6 months ago

Core 2024.2.1 Supervisor 2024.01.1 Operating System Front-end 20240207.1 error_log-4.txt

When configuring, I get the failed to configure message.

Este erro originou-se de uma integração personalizada.

Logger: custom_components.electrolux_status Source: custom_components/electrolux_status/init.py:100 Integration: Electrolux Care Integration V2 (documentation, issues) First occurred: 09:54:11 (5 occurrences) Last logged: 10:04:34

Could not log in to ElectroluxStatus, Expecting value: line 1 column 1 (char 0)

albaintor commented 6 months ago

This error means that your credentials are not valid. Did you use the same login/password as in the app ?

cedsp commented 6 months ago

Yes. I use the same credentials as the electrolux home+ app. is the app we use here at LAT.

cedsp commented 6 months ago

The App requests a strong password, with capital letters, numbers and special characters. could this be a problem?

albaintor commented 6 months ago

No it shouldn't be an issue. Please post the homeassistant.log file

cedsp commented 6 months ago

home-assistant.zip

albaintor commented 6 months ago

From the logs the error comes from the library wrapper, I will forward this error to the creator of the library

 File "/config/custom_components/electrolux_status/__init__.py", line 94, in async_login
    token = await self.api.get_user_token()
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/electrolux_status/electroluxwrapper/oneAppApi.py", line 101, in get_user_token
    id_token = await gigya_client.login_user(self._username, self._password)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/electrolux_status/electroluxwrapper/gigyaClient.py", line 210, in login_user
    ids = await self.get_ids()
          ^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/electrolux_status/electroluxwrapper/gigyaClient.py", line 147, in get_ids
    data: SocializeGetIdsResponse = await response.json(content_type=None)
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/aiohttp/client_reqrep.py", line 1182, in json
    return loads(stripped.decode(encoding))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
albaintor commented 6 months ago

I have raised an issue on his side : https://github.com/Woyken/py-electrolux-ocp/issues/7

albaintor commented 6 months ago

Hi it should be fixed in the v1.0.12

cedsp commented 6 months ago

The problem was solved. thanks

slingshot74 commented 6 months ago

Just installed the new version, works again. Thanks!