#Alexa actionable notification

1 messages · Page 1 of 1 (latest)

dawn sluice
#

add this

fields:
  text:
    description: The text you would like alexa to speak.
    example: What would you like the thermostat set to?
  event_id:
    description: Correlation ID for event responses
    example: ask_for_temperature
  alexa_device:
    description: Alexa device you want to trigger
    example: media_player.bedroom_echo
sequence:
  - service: input_text.set_value
    data:
      entity_id: input_text.alexa_actionable_notification
      value: "{\"text\": \"{{ text }}\", \"event\": \"{{ event_id }}\"}"
  - service: media_player.play_media
    data:
      entity_id: "{{ alexa_device }}"
      media_content_type: skill
      media_content_id: ```
#

with media_content_id: with your skill id

dawn sluice
dawn sluice
vale whale
#

/config/scripts.yaml

vale whale
#

@dawn sluice i'm try using service "reload" but not working

dawn sluice
#

data should be somthing like this:
{"text":"I noticed the TV was turned on, what would you like to play, sun next, hotstart or YouTube?","event_id":"actionable_notification_tv","alexa_device":"media_player._echo_flex"}

dawn sluice
#

change alexa device to your echo

vale whale
dawn sluice
dawn sluice
#

what is that script.reload?

vale whale
#

i don't know i found inside

dawn sluice
#

you have to run call service node
and select the scipt you added before

vale whale
#

i don't have activate_alexa_actionable_notification

dawn sluice
#

try to reload nodered or restart home assistant

vale whale
dawn sluice
#

try to see if you have other service

#

how are you running nodered? addon in home assistant?

vale whale
#

yes

vale whale
dawn sluice
dawn sluice
vale whale
dawn sluice
#

does it call service successfully ?

vale whale
#

Ok I think is ok now

#

now what should I write in the JSON?

dawn sluice
#

Are yu able you call service from developer tool ? Or does it show any error

dawn sluice
#

Replace all with your needs and device

vale whale
#

Ok work but Alexa response is null

vale whale
dawn sluice
vale whale
#

I'm try

dawn sluice
#

and run that call service and check if alexa talks back and asks you

#

if this part works ..we can move on to the next step

vale whale
#

same thing, Alexa answers me and waits but on the alexaresponse tag it remains null

dawn sluice
#

does alexa answers you with the text you added in data ?

dawn sluice
vale whale
dawn sluice
#

yu need to create like this

vale whale
# dawn sluice

but I need an on device Activity that is if I say a voice command to alexa

dawn sluice
#

you have to listen to event to get the feedback from you and do the further automation or script

vale whale
#

yes, what I meant is that in your way I can't activate my automation with my voice or am I wrong?

dawn sluice
#

you can automate

#

remove these and add the automation

vale whale
#

Ok

dawn sluice
#

in this

vale whale
#

where do i put them?

dawn sluice
vale whale
#

How do I connect them to each other?

dawn sluice
#

you don't have to connect...it will work listening from the events

vale whale
#

Ok I'm try

dawn sluice
#

you can automate from here

vale whale
#

alexa asks me the question i tell her yes and she just says okay without going on the speak routine

#

is working, than you ❤️❤️ goodnight you are the best

dawn sluice
vale whale
#

good morning! do you by any chance know how not to make Alexa say okay after answering?

dawn sluice
vale whale
#

ok

#

when i answer alexa's question she asks me the same question again

#

ok, now it seems to work

vale whale
#

@dawn sluice Hi! sorry, why when i tell alexa a two digit number this doesn't work?

#

only works with single-digit numbers

dawn sluice
#

you call it as seven four or seventy four?

vale whale
#

seventy four

vale whale
dawn sluice
#

try to set debug for the alexa event node and see what does it responds

#

like this

#

when ever you say something , this way you can check what alexa actually listened

vale whale
#

when i responde answer "what number was it?" (blue circle) she says "I'm sorry I can't use specific data in this case try with a relative date for example"

dawn sluice
#

i really dont understand what are yu tring to do

#

but this way you can debug anything

vale whale
#

I'm doing a test for color blind people, I put a number on the screen and they have to tell what number they see, only that when they say the two-digit numbers alexa tells me "I'm sorry I can't use specific data in this case try with a relative date for example"

dawn sluice
#

try to run the alexa script and try saying anything and check the debug on what alexa takes and share me the screenshot

vale whale
#

summary: "fifteen"
alexaResponse: "Sorry, I can't use specific dates in this case, try a relative date, for example ... in 5 hours"

dawn sluice
vale whale
vale whale
dawn sluice
# vale whale

try saying some other work and share me the debug output to make sure it works

#

actually change it to msg.payload.event.event_response

#

these are my responses, when i say seventy four and seven four

#

i want you to check like this and if it does not work i will help you fix it

vale whale
#

I noticed that in English it works but in Italian my language doesn't work

#

Any ideas to set number in my language?

vale whale
#

@dawn sluice

dawn sluice
vale whale
#

Shit

vale whale
#

Sorry if I disturb you, do you by any chance know how to automatically change "alexa_device" without writing it manually?