Pyhass / Hive-Custom-Component

A custom version of the home assistant hive component
MIT License
33 stars 17 forks source link

Hive Plugs no longer expose power consumption [BUG] #111

Closed alkissack closed 2 years ago

alkissack commented 2 years ago

Describe the bug Since loading core-2022.4 the template sensor that reported current power, an attribute, of Hive plug has stopped being reported and doesnt now appear to be listed as an attribute in developer tools.

To Reproduce Steps to reproduce the behaviour: Examine plug attributes and note the power is no longer visible. Template sensor:

Expected behaviour Plug power is measured and was available as an attribute

Screenshots image

Desktop (please complete the following information): core-2022.4.1 supervisor-2022.03.5 Home Assistant OS 7.6

Additional context logs: `2022-04-07 09:26:56 ERROR (MainThread) [homeassistant.helpers.event] Error while processing template: Template("{{ states["switch.hiveplug1"].attributes.current_power_w | round(2) }}") Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 407, in async_render render_result = _render_with_context(self.template, compiled, kwargs) File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1820, in _render_with_context return template.render(kwargs) File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 1291, in render self.environment.handle_exception() File "/usr/local/lib/python3.9/site-packages/jinja2/environment.py", line 926, in handle_exception raise rewrite_traceback_stack(source=source) File "