#Automation can't be displayed + maybe stopped working

1 messages · Page 1 of 1 (latest)

spiral skiff
#

So I just wondered why my water heater wouldn't switch on when the electricity price is quite low.
I wanted to take a look into the automation, but if I open it via Settings --> Automations&Scenes --> Click on the name I only get a blank page.

The automation is still present in the automations.yaml file.
I found some newline character (\n and other things in there, that seem wrong to me:

    - conditions:
      - condition: template
        value_template: "{{ is_state('switch.boiler', 'on') and \n   states('sensor.electricity_price_4_levels_24h')|int
          > 3 }}\n"

Surely that last \n shouldn't be there? I removed all of them, but it still doesn't show in the GUI.

--> How to fix this?
--> What broke this?

( The automation seems to be still working, I tweaked some thresholds a bit and it switched. Not sure why the last 3 days are different from last week, but that is not important.)