Creating a blueprint from an automation and a script that work together

I use the combination of an automation and a script to turn on my kitchen lights (triggered by a motion sensor) when it’s dark or not sunny and the lights haven’t been turned on manually. The script turns on the lights, waits for the motion sensor to turn off, then waits another 10 minutes before turning the lights off. The script uses mode: restart so that the lights stay on until there is no movement for 10 minutes.

I’d like to turn this into a blueprint so that I can reuse it elsewhere, but unless I’m mistaken a blueprint can either be for an automation or for a script?

Do I need to re-implement this just within an automation in order to create a blueprint?

1 Like

Automation BP or Script BP is true, sort of.
A BP Automation can certainly call a script or even a script BP and you can pass variables to the script or script BP so they can act on specific data.