Error with adding a helper

Hi,

For nordpool to do correction for fixed cost and vat I am following the instruction from the official site. For which I don’t understand they give this instruction with a picture instead of text I can copy. Anyway, I keep on getting this error. What am I doing incorrectly?

TemplateSyntaxError: expected token ‘name’, got ‘(’

{{ ((states(‘sensor.nord_pool_nl_current_price’) | (float(0) + 0.2528 ) * 1.21) | round (2) }}

Well, it is complaining about ( and you have more opening braces than close, so start with fixing that.

You cannot add a number to a float filter, so my guess is that is where the braces start going awry. Try removing the opening brace.

This is from the official page, where is mine different?

OMG I am blind, you already pointed it :slight_smile:

Working now, thanks!!

I edited the answer in a minute later, could be you read it before i did. Glad it works now.

1 Like