JaccoR / hass-entso-e

Integration for Home Assistant to fetch day ahead energy prices from European countries via ENTSO-e Transparency Platform
159 stars 25 forks source link

Not working anymore after upgrade to Home Assistant 2023.12 #133

Open chheiss opened 7 months ago

chheiss commented 7 months ago

Not working anymore after upgrade to Home Assistant 2023.12

ThorAlex87 commented 6 months ago

I too am having issues after upgrading to 23.12. I have three instances running (price with grid tariffs, pure electricity price and electricity minus tax which is the sales price for my solar), only the first one works now. The other two broke after i updated on Saturday, started working again on Sunday and are now broken again. Luckily the one that works is the only one I use for automations...

Edit: Suddenly it's working again...

I found this in the logs, no idea what to make of it...

Denne feilen stammer fra en tilpasset integrasjon.

Logger: custom_components.entsoe.coordinator Source: helpers/update_coordinator.py:300 Integration: ENTSO-e Transparency Platform (documentation, issues) First occurred: 9. desember 2023 kl. 23:07:33 (1089 occurrences) Last logged: 11:08:33

Unexpected error fetching ENTSO-e coordinator data: ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set s = {"cert": 0.01,"eur": float(states('sensor.kurs_eur')) } %} {{(current_price s.eur + s.cert) | float}}' but no default was specified Unexpected error fetching ENTSO-e coordinator data: ValueError: Template error: float got invalid input 'unknown' when rendering template '{% set s = {"eur": float(states('sensor.kurs_eur')) } %} {{(current_price s.eur) | float}}' but no default was specified Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 1916, in forgiving_float return float(value) ^^^^^^^^^^^^ ValueError: could not convert string to float: 'unknown'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 569, in async_render render_result = _render_with_context(self.template, compiled, kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/template.py", line 2247, in _render_with_context return template.render(kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 1301, in render self.environment.handle_exception() File "/usr/local/lib/python3.11/site-packages/jinja2/environment.py", line 936, in handle_exception raise rewrite_traceback_stack(source=source) File "