Looking for a tech assist

I’m rebuilding my HA on an RPI 3B running Hassbian. I have an Aeotec Z-Stick up and running with a Neo CoolCam PIR sensor connected. I also have my Hue lights switched over but I;m having trouble moving over my automations. Actually, this will be a new automation, and my first one using the Automation Editor in HA.

I have created two automations, one to turn on a Hue bulb when motion is detected, and the other to sense the state change and wait 10-minutes before turning the same Hue bulb off.

I can manually trigger both automations and the bulb turns on or off as it should. However, I cannot get the motion part working.

Here is what I have:
Name: Patio Light On
Trigger Type: State
Entity: binary_sensor.neo_coolcam_battery_powered_pir_sensor_sensor
To: On
Action Type: Call service
Service: light.turn_on
Service data: {“entity_id”:“light.patio”}

Can someone please help point me to what I’m missing?

Thanks,

Bg

Here’s what the automation editor created:

- id: '1546566264560'
  alias: Patio Light On
  trigger:
  - entity_id: binary_sensor.neo_coolcam_battery_powered_pir_sensor_sensor
    platform: state
    to: 'On'
  condition: []
  action:
  - data:
      entity_id: light.patio
    service: light.turn_on
- id: '1546572119556'
  alias: Patio Light Off
  trigger:
  - entity_id: binary_sensor.neo_coolcam_battery_powered_pir_sensor_sensor
    for: 00:10:00
    platform: state
    to: 'off'
  condition: []
  action:
  - data:
      entity_id: light.patio
    service: light.turn_off

Check this link, see if it helps

You are missing the “initial_state: true”. This should work after a restart:

- id: 'Patio Light On'
  alias: Patio Light On
  initial_state: true
  trigger:
    - entity_id: binary_sensor.neo_coolcam_battery_powered_pir_sensor_sensor
      platform: state
      to: 'On'
  action:
    - service: light.turn_on
      entity_id: light.patio

- id: 'Patio Light Off'
  alias: Patio Light Off
  initial_state: true
  trigger:
    - entity_id: binary_sensor.neo_coolcam_battery_powered_pir_sensor_sensor
      for: 00:10:00
      platform: state
      to: 'off'
  action:
    - service: light.turn_off
      entity_id: light.patio

Right you are! I figured it would be some mundane detail that I screwed up, like placement of a decimal point…

Thanks!