Strange error in template

Why does this happen?
Here is the state of the two entities:

Then when I add this line it errors.
Why?
And where does the complaint about lower come from?


It looks like something to do with holiday_mode being on?

The last line in the second screenshot has its closing parenthesis ) in the wrong place.

It should not be after 'on' but immediately after the Input Boolean’s entity_id. It represents the closing parenthesis for the states() function.

Same mistake in the third screenshot.

No it’s due to the template syntax error I described.

1 Like

Doh!!

Thanks.
I can’t believe I missed that…

1 Like