Workday sensor keeps giving errors

Hi, seems really simple but somehow i keep getting errors on a basic alarm automation.

Error loading /config/configuration.yaml: mapping values are not allowed here
in “/config/automations.yaml”, line 194, column 13

Think it is something really obvious, but simply cant find it

Hi, welcome back. Please follow posting rules in regards to code. Please don’t post photos of code.

As to your issue, you need a space between - and condition. You then need to line up entity_id and state with the newly positioned condition.

- condition: state
  entity_id: blah
  state: blah

You also need to correctly indent the action section

1 Like

Oh wow… you guys rock! sorry about the screenshot… wont happen again :stuck_out_tongue:

If you are using Visual Studio Code, I suggest you install the following two Extensions:

Screenshot from 2020-06-09 11-48-30

Home Assistant Config Helper will simplify the process of composing automations and scripts while minimizing syntax errors.

indent-rainbow provides visual confirmation that lines are properly indented.

1 Like