Skip to content

Homekit values don't update, only when integration reloaded #125

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

Open
cb29983 opened this issue Apr 15, 2025 · 8 comments
Open

Homekit values don't update, only when integration reloaded #125

cb29983 opened this issue Apr 15, 2025 · 8 comments

Comments

@cb29983
Copy link

cb29983 commented Apr 15, 2025

I've removed and re-added the integration to try and solve, but the same issue is occurring. Everything loads correctly initially, but it doesn't update at all unless you force it by reloading the integration.
I've set up an additional read only access to the sems portal. It was working fine, but after recent updates it stopped.

[

Image

](url)

@TimSoethout
Copy link
Owner

TimSoethout commented Apr 15, 2025

That's odd. Can you provide debug logging? See readme.

And which version are you running?

@cb29983
Copy link
Author

cb29983 commented Apr 15, 2025

I'm using version 7.2.0-beta
I'll grab you the logs :)

@cb29983
Copy link
Author

cb29983 commented Apr 15, 2025

This error originated from a custom integration.

Logger: homeassistant
Source: custom_components/sems/sensor.py:311
integration: GoodWe SEMS API (documentation, issues)
First occurred: 14 April 2025 at 4:12:08 pm (2340 occurrences)
Last logged: 8:04:17 am

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1552, in _async_process_registry_update_or_remove
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1148, in _async_write_ha_state
self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1085, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1029, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/config/custom_components/sems/sensor.py", line 311, in state
return data["etotal"]
~~~~^^^^^^^^^^
KeyError: 'etotal'

@TimSoethout
Copy link
Owner

Image Can you try enabling debug logging? Open the integration details and click Enable Debug Logging.

@TimSoethout
Copy link
Owner

I'm hoping to see (part) of the JSON message from the API. Maybe etotal is indeed missing.

What hardware do you have? A goodwe HomeKit it seems? Or an inverter?

@cb29983
Copy link
Author

cb29983 commented Apr 18, 2025

Hi Tim, i have 2x GW5K-DT Invertors and a 3 phase home-kit power monitor. The invertors update fine, but the home kit doesn't.
I've turned on debug logging - what do you need, sorry? How can i send the log data to you?

@lunchplease
Copy link

Sorry to piggyback but I've had issues these past 3 days where I'm not getting any data but no errors reported. I'm running on am old dell optiplex machine VM on HA 15.2/2025.4.3

@TimSoethout
Copy link
Owner

Hi Tim, i have 2x GW5K-DT Invertors and a 3 phase home-kit power monitor. The invertors update fine, but the home kit doesn't. I've turned on debug logging - what do you need, sorry? How can i send the log data to you?

You can just copy/paste the relevant logging here. Or upload as a file.

Do you both, @cb29983 and @lunchplease, still have the issue?

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

3 participants