Climate Set Temperature Syntax

I’m trying to write a simple automation to return the heating set point of the climate component to 19 degrees. I’ve checked with the online docs which look exactly the same as my yaml, but I keep getting " Invalid Config".

- alias: Reset Lounge Temperature
  trigger:
    platform: time
    at: "06:00:00"
    action:
      - service: climate.set_temperature
        data:
          entity_id: climate.lounge
          temperature: 19

I’m assuming the code has changed but have searched & can find no reference to the update ?

For reference this is the info get in the log:

2018-11-27 07:59:25 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [action] is an invalid option for [automation]. Check: automation->trigger->0->action. (See /config/configuration.yaml, line 68). Please check the docs at https://homeassistant.io/components/automation/

The reference to line 68 in config/configuration is !include automations.yaml

Thanks

That is not YAML. What you have on your system may be YAML, but unless you post it properly as per the instructions at the top of this page, we can’t really help.

Looks to me like action and the lines that follow are indented more than they should. I think action should be in line with trigger (at least that’s how they look in my files).

1 Like

Cheers Nick

I’d spent the best part of 2 hours looking at that convinced all was well :roll_eyes:. Only to find it’s something as simple as a formatting error.

Many Thanks