Been wrestling with AI and an automation involving a template - HASS configurator seems happy with syntax, but a check in dev tools shows an error -
- id: '1777013558614'
alias: Water Heater On
description: ''
triggers:
- platform: numeric_state
entity_id: sensor.sun_solar_elevation
above: 30
conditions:
- condition: template
value_template:
- {{ states('sensor.monitor_bath_power_power_a') | float(0) < (states('sensor.primo_5_0_1_1_ac_power') | float(0) - 2000) }}
- condition:
numeric_state
entity_id: sensor.sensor_chookin_watertemp_temperature
below: 50
action:
- service: switch.turn_on
target:
entity_id: switch.switch_chookin_hotwater
mode: single
Configuration errors
Error loading /config/configuration.yaml: invalid key: "{"states('sensor.monitor_bath_power_power_a') | float(0) < (states('sensor.primo_5_0_1_1_ac_power') | float(0) - 2000)": None}"
in "/config/automations.yaml", line 679, column 0