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

Entities not Updating in Kiosk Mode #140

Closed
1 of 2 tasks
Julimos opened this issue Jan 20, 2024 · 8 comments
Closed
1 of 2 tasks

Entities not Updating in Kiosk Mode #140

Julimos opened this issue Jan 20, 2024 · 8 comments
Labels
Huawei Issue Issue with Huawei, contact Huawei

Comments

@Julimos
Copy link

Julimos commented Jan 20, 2024

Describe the bug
After an Update of the Fusionsolar App/Kiosk Website (?) entities are not Updated anymore

** Debug information **
Answer the questions below before submitting a new issue.

Checked the URL, it is still working, also added a new Hub that does not work as well.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Fusion Solar Entities'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Data should be updating

Screenshots

Desktop (please complete the following information):

  • OS: [Home Assistant Core 2024.1.4]

Additional context

@srusinov
Copy link

I suppose this is the same issue as on my end:

Unexpected error fetching FusionSolarKiosk data: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fusion_solar/sensor.py", line 79, in async_update_kiosk_data
data[f'{DOMAIN}-{kiosk.id}'] = await hass.async_add_executor_job(api.getRealTimeKpi, kiosk.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/fusion_solar/fusion_solar/kiosk/kiosk_api.py", line 37, in getRealTimeKpi
jsonData[ATTR_DATA] = json.loads(html.unescape(jsonData[ATTR_DATA]))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Maybe the protocol changed recently?

@psleutel
Copy link

After deleting the integration and adding it again everything worked again

@Julimos
Copy link
Author

Julimos commented Jan 21, 2024

Works again since today

@magilla13
Copy link

This issue started to me today.
All the entities are unavailable. If I delete the app and reinstall it is working but loosing all the historical data...

@tijsverkoyen
Copy link
Owner

What happens if you just restart Home Assistant?

@Julimos
Copy link
Author

Julimos commented Jan 22, 2024

For me, restarting did not help.
But still works as reported yesterday.

@magilla13
Copy link

Restart itself didn't help, but somehow today started to work again properly...

@tijsverkoyen tijsverkoyen added the Huawei Issue Issue with Huawei, contact Huawei label Jan 23, 2024
@tijsverkoyen
Copy link
Owner

Ok, so it works for everyone again?
I'm going to close the issue. Feel free to reopen it if it is not resolved. Although I think it is more Huawei related then to this integration

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

No branches or pull requests

5 participants