Alexa config and include_dir_named

Tags: #<Tag:0x00007f326d5b8708>

Hi there,

Before 0.50 I was running Alexa config like this:

configuration.yaml:

alexa:
  intents: !include_dir_named alexa

And that refers to a dir named alexa having scripts like this:

ActivateSceneIntent.yaml:

action:
  service: scene.turn_on
  data_template:
    entity_id: scene.{{ Scene | replace(" ", "_") }}
speech:
  type: plaintext
  text: Ok!

After 0.50 I thought I only would need to change

alexa:
  intents: !include_dir_named alexa

to

alexa:
  intent_script: !include_dir_named alexa

in configuration.yaml, but that doesn’t work. As I don’t want to include a single file containing all intents, what am I missing here to get a full split config to work again?

I haven’t tried this myself, but if the intent script expects one dictionary entry (instead of many) then changing it to !include_dir_merge_named should resolve the issue.

Unfortunately, same result :expressionless:

As this was not answered properly and I did some try and error on this, here is how it should look like:

alexa:
intent_script: !include_dir_named alexa/

Maybe this helps others.