Returning snips.say response to site speech was initiated from

I’ve been using intent_scripts with snips including using snips.say to provide feedback with everything running on the same box. This works fine but now I have an additional satellite unit (RPi + speaker + mic) and I am unable to direct the snip.say service call back to the source site_id because I can’t work out how/if it is possible to determine this when using .yaml.

Anyone know if I can extract the source site_id using the templating language?, e.g.:

    intent_script:
      TurnOnLights:
        action:
          - service: light.turn_on
            data_template:
              entity_id: some_light
          - service: snips.say
            data:
              text: 'OK'
              site_id: {{ some magic here! }}

Have you found the solution for that ?

Yes, it works out of the box if you just use speech, e.g.

  TurnOnLights:
    action:
      - service: light.turn_on
        data:
          entity_id: light.some_light
    speech:
      text: "Light turned on"

There is an optional parameter for the speech section called async_action which is a Boolean and will determine if the speech is sent at the same time the service call is made, or wait until the service call is finished.

Where did u get those informations from? I’d like to read a bit about this

thanks found it… you can also use snipsas tts. I use it for it no and you analso use data_template for example telling you sensor states

snips_fenster:
    sequence:
      service: snips.say
      data_template:
        text: >
             {% if is_state('group.windows_doors', 'on') %}
             Achtung! Folgende Fenster oder Türen sind noch offen: {{ dict((states|selectattr('entity_id', 'in', state_attr('group.windows_doors', 'entity_id'))|list)|groupby('state'))['on']|map(attribute='name')|list|join(', ') }}
             {% elif is_state('group.windows_doors', 'off') %}
             Alle Fenster und Türen sind geschlossen
             {% endif %}

This will return whihwindows in group.windows_doors are open