cancel
Showing results for 
Search instead for 
Did you mean: 

Duplicate Action Error

Mckillio
Community Member

I'm trying to get my front door light to turn on when the doorbell detects motion and turn off after five minutes but I get a "The current Struct has duplicate fields [actions]" error. What am I doing wrong here? The last "actions" in bold is where I'm getting the error. 

metadata:
name: Turn on light when doorbell detects motion
description: If the doorbell detects motion, turn on front door light
automations:
- starters:
- type: device.event.MotionDetection
device: Doorbell - Front Door
actions:
- type: device.command.OnOff
devices:
- Front Door Light - Front Door
on: true
- starters:
- type: device.state.OnOff
device: Front Door Light - Front Door
state: on
is: true
actions:
- type: time.delay
for: 5min
condition:
type: device.state.OnOff
device: Front Door Light - Front Door
state: on
is: true
actions:
- type: device.command.OnOff
devices:
- Front Door Light - Front Door
on: false

0 REPLIES 0