I’m trying to get a light to come on 5 minutes before my alarm. I created a datetime helper. I have an automation that is triggered when my next alarm changes. But I can’t get the action for that automation to set the time I’ll use to trigger the other automation to turn the light on to work.
I’ve been using the UI and I’m very new to YAML. I set the action to Call Service and then input.datetime. Then in that section I have this code:
Thanks for you help. I corrected the formatting in the first post.
Turns out I thought skiboard was an HA default but I needed to change that to my actual sensor. I did that and the template editor validated the code and gave the outputs I would expect. I changed my automation and it started working.