Default run mode?

I know I can set the run mode within a blueprint-using automation with mode: restart, but putting that directly in a blueprint causes the following error:

2023-11-18 01:11:28.385 ERROR (MainThread) [homeassistant.components.automation] Failed to generate automation from blueprint: Invalid blueprint: extra keys not allowed @ data['blueprint']['mode']. Got 'restart'

Can I set the default run mode within a blueprint somehow?

If I’m not wrong, you should put it in the root, not under the blueprint key.

Eg.:

mode: restart
blueprint:
    blabla...

Interesting, thank you. I’ll try that!

Sorry. Just came back to say your suggestion worked :slight_smile:

1 Like