Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106474

Question: Executing a script from Alexa, Google; and a respective notify/announcement on same device

$
0
0

I have the below Home Assistant script which is accessible via Alexa and Google platforms via Nabu Casa:

alias: Where is Daddy
sequence:
  - data_template:
      data:
        type: announce
      message: Daddy is at {{states('sensor.sm_g781v_2_geocoded_location')}}.
      target: media_player.mka_net_echo_dot
    service: notify.alexa_media
mode: single
icon: mdi:map-marker-radius

I am, able to say “Where is Daddy” on any of my Alexa or Google devices; and, get a respective voice response. However, the problem is that it will only announce the response on only a specific hard-coded target: media_player.mka_net_echo_dot; which isn’t very useful if I’m in a different room.

QUESTION: Is it possible for the script to capture what platform\device the script is executed on in a variable; then execute a respective announcement/response on the same platform\device? Or, possibly a different method?

If it is currently impossible to do, is it feasible to add a feature like this? Maybe with all the new assistant features being added, this may be possible soon?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106474

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>