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

Solarlog integration setup fails #134038

Open
schmetzyannick opened this issue Dec 26, 2024 · 1 comment
Open

Solarlog integration setup fails #134038

schmetzyannick opened this issue Dec 26, 2024 · 1 comment
Assignees

Comments

@schmetzyannick
Copy link

The problem

I have a solar log 500. The initial setup is not working at all.
I have reset the solar log to factory defaults. Home assitant is a frech installation inside a docker container (network_mode is host).

What version of Home Assistant Core has the issue?

core-2024.12.5

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Solar log

Link to integration documentation on our website

https://www.home-assistant.io/integrations/solarlog

Diagnostics information

Failed setup, will retry: 'utf-8' codec can't decode byte 0xf6 in position 1051: invalid start byte

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-12-26 16:13:18.412 DEBUG (MainThread) [homeassistant.components.solarlog.coordinator] Start async_setup
2024-12-26 16:13:18.413 DEBUG (MainThread) [solarlog_cli.solarlog_connector] Start testing extended data available
2024-12-26 16:13:18.413 DEBUG (MainThread) [solarlog_cli.solarlog_client] HTTP-request header: {'Content-Type': 'text/html'}
2024-12-26 16:13:18.413 DEBUG (MainThread) [solarlog_cli.solarlog_client] HTTP-request body: {"740": null}
2024-12-26 16:13:18.625 DEBUG (MainThread) [solarlog_cli.solarlog_client] HTTP-request successful: <ClientResponse(http://192.168.8.87/getjp) [200 OK]>
<CIMultiDictProxy('Date': 'Thu, 26 Dec 2024 16:13:19 GMT', 'Server': 'IPC@CHIP', 'Content-Type': 'text/html', 'Transfer-Encoding': 'chunked')>

2024-12-26 16:13:18.633 ERROR (MainThread) [homeassistant.components.solarlog.coordinator] Unexpected error fetching solarlog data
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in __wrap_async_setup
    await self._async_setup()
  File "/usr/src/homeassistant/homeassistant/components/solarlog/coordinator.py", line 72, in _async_setup
    if logged_in or await self.solarlog.test_extended_data_available():
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/solarlog_cli/solarlog_connector.py", line 58, in test_extended_data_available
    await self.client.parse_http_response(
        await self.client.execute_http_request('{"740": null}')
    )
  File "/usr/local/lib/python3.13/site-packages/solarlog_cli/solarlog_client.py", line 132, in parse_http_response
    text = await response.text()
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.13/site-packages/aiohttp/client_reqrep.py", line 1265, in text
    return self._body.decode(encoding, errors=errors)  # type: ignore[union-attr]
           ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 1051: invalid start byte

Additional information

Device: Solarlog 500
Firmwarevesrion: 2.2.0

@home-assistant
Copy link

Hey there @Ernst79, @dontinelli, mind taking a look at this issue as it has been labeled with an integration (solarlog) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of solarlog can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign solarlog Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


solarlog documentation
solarlog source
(message by IssueLinks)

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

No branches or pull requests

2 participants