Hi, wondering the difference between ‘data’ and ‘target’ as I’m seeing below? In this case, I’m wanting to turn my lights on 60 minutes before sunrise using the switch, and then set the scene (which is to dim the lights to 50%) after 2.5 seconds. I noticed that transition is used common for delay, but in my blob I am seeing target, not data as in the examples above. Also, does it matter the order? Meaning do I need to change it around to switch the light on first and then call the scene in code? Thanks much!
alias: Turn on Garage and Porch Lights at Sunrise - Automation
description: ''
trigger:
- platform: sun
event: sunrise
offset: '-60'
condition: []
action:
- service: scene.turn_on
target:
entity_id: scene.dim_garage_and_porch_lights_at_9
transition: 2.5
metadata: {}
- type: turn_on
device_id: 66a47bb533cd30bd22dbb8963272dd06
entity_id: switch.front_garage_and_porch_lights
domain: switch
mode: single
Well, after adding the yaml and going back to the graphical UI, it seems there is actually a graphically way to do the delay which would have saved us both some time. I guess it got me into yaml for a bit, though! Thanks