-
Notifications
You must be signed in to change notification settings - Fork 27
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
Comments
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. |
I believe this is fixed now? |
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'
The text was updated successfully, but these errors were encountered: