Dang it! Thanks, for whatever reason I was thinking it needed to be a dictionary that was returned and not a list. Thanks and will do on the text in the future … that makes complete sense.
So I’m diving in a little more … and while the error goes away for the configuration, I’m not seeing any reference or ability to call up the scripts that I’ve placed in the scripts folder. Below is the sample script I’m using, and I’m unable to call that script from the Developer Tools. UI doesn’t seem to see that script anywhere for inclusion in automations, developer tools, etc.
Error:
Failed to call service script.lights_off. Unable to find service script.lights_off
Script:
lights_off:
alias: Lights OFF
sequence:
- delay: 0
- service: light.turn_off
data:
entity_id: all
Is there a good way to check that the scripts are being properly included other that what I’m looking at?
Ok, so… maybe I had automations and scripts backwards in my head. Take a look at my configuration, it’s linked in my avatar. It has exactly what you’re looking for with broken out scripts. Just copy/paste my config section for scripts and follow the correct convention in my yaml.