Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106113

1st Automation issue

$
0
0

I’ve been trying to build my first simple automation and I keep getting this one error which I have no idea about.
Yaml is:

alias: Turn Office Lights On
  trigger:
    platform: state
    entity_id: binary_sensor.office_office_motion_178
    to: on

  action:
    service: light.turn_on
    entity_id: light.office_office_lights_160

- alias: Turn off Office Light
  trigger:
    platform: state
    entity_id: binary_sensor.office_office_motion_178
    to: off
    for:
      minutes: "3"
  action:
    service: light.turn_off
    entity_id: light.office_office_lights_160

The error is :
Invalid config for [automation]: expected str for dictionary value @ data[‘to’]. Got None. (See /config/configuration.yaml, line 14).

Clearly I am doing something stupid. Can someone please point me in the right direction.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106113

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>