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

Error updating energy sensors #115

Open
unimatrixx0 opened this issue Jul 19, 2023 · 2 comments
Open

Error updating energy sensors #115

unimatrixx0 opened this issue Jul 19, 2023 · 2 comments

Comments

@unimatrixx0
Copy link

Has anyone this error in HomeAssistant:
How to fix it?

Logger: homeassistant.helpers.entity
Source: custom_components/panasonic_cc/panasonic.py:133
Integration: Panasonic Comfort Cloud (documentation)
First occurred: 7. Juli 2023 um 14:27:01 (5603 occurrences)
Last logged: 12:58:22

Update for sensor.buro_1_og_daily_energy fails
Update for sensor.buro_1_og_current_power fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 695, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 940, in async_device_update
await self.async_update()
File "/config/custom_components/panasonic_cc/sensor.py", line 164, in async_update
await self._api.update_energy()
File "/config/custom_components/panasonic_cc/panasonic.py", line 70, in update_energy
await self.do_update_energy()
File "/config/custom_components/panasonic_cc/panasonic.py", line 133, in do_update_energy
c_energy = data['parameters']['energyConsumption']
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
KeyError: 'energyConsumption'

fceller pushed a commit to fceller/panasonic_cc that referenced this issue Aug 6, 2023
@AnonymousRetard
Copy link

This has been broken for me for at least a week, probably a few weeks. Initially it felt like it would sometimes break on rebooting homeassistant and had a chance of working/not working on every home assistant reboot, but eventually I was never able to get any sensors or controls working after a lot of manual reboots.

Today I found this issue and tried to manually apply the pull request #116 . This seems to immediately have fixed this issue for me! The daily energy sensor is available as well, and without the fix no sensors or controls were available.

sockless-coding added a commit that referenced this issue Aug 16, 2023
@codyc1515
Copy link

I believe this is fixed now?

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