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

Nordpool sensor unavailable after upgrading to 2025.2.1 #473

Open
juhavt opened this issue Feb 10, 2025 · 1 comment
Open

Nordpool sensor unavailable after upgrading to 2025.2.1 #473

juhavt opened this issue Feb 10, 2025 · 1 comment

Comments

@juhavt
Copy link

juhavt commented Feb 10, 2025

Version of the custom_component

0.0.17

Homeassistant version

HA Core 2025.2.1. Last working version 2025.1.4.

Configuration

additional_costs: "{{ (states('input_number.energy_price_additional_costs') | float + states('input_number.energy_price_marginal_nordpool') | float) | round(8) }}"

Describe the bug

After the upgrade sensor value is unavailable if using input.number in additional_costs. The values of input.number variables are available and the template works in template editor.

As a quick & dirty fix user can define the default values but loses the ability to change the additional costs with the input_number variables.

additional_costs: "{{ (states('input_number.energy_price_additional_costs') | float(default=[value]) + states('input_number.energy_price_marginal_nordpool') | float(default=[value])) | round(8) }}"

Debug log


ValueError: Template error: float got invalid input 'unknown' when rendering template '{{ states('input_number.energy_price_additional_costs') | float + states('input_number.energy_price_marginal_nordpool') | float }}' but no default was specified

@Lemming16
Copy link

Same problem here. 🙁

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

2 participants