i use this custom component for sending tts message from HA to Alexa.
but i want to trigger a skill.
skill is https://alexa.amazon.co.uk/spa/index.html#skills/dp/B07H3LFKW1/?ref=skill_dsk_skb_ys
got the skill id - 33256ba0-d14b-4eb3-a3b5-d6a040485131
i want this skill to be triggered when HA meets a condition.
eg. when xiaomi room temp is 15 deg, i want my climote heating to be switched on.
i usually tell alexa - Alexa ask climote to turn on the heating
how can i do this from home assistant using this alexa media player?
can i send a message to alexa to trigger a skill?
i saw this link but still dont know how to send the exact command to switch on heating
anyone who can help me with the steps to configure and use this?
entity_id: meida_player.my_echo_dot
media_content_id:
media_content_type: skill
how to send my message to alexa - Alexa ask climote to turn on the heating
got to know on reddit HA forum that this can be used for custom skills only along with alexa actions.
is that correct? can we not use this to call regular skills?
You want an event when you speak to a specific echo device? You can probably monitor the last_called attribute and see when that goes true and whether the last_called_timestamp changes. Someone else will have to explain the implementation but it’s probably similar to the Last Alexa templates people have made. We may be able to expose an event too, but it’s basically detected as described above.
I don’t know what “not allowed” means. If it’s a blank captcha, enter anything and it should refresh it. Regardless, logs are necessary to debug further.
I found this was an easy way to trigger a skill:
In the alexa app (eg. iOS), create a Routine that runs a skill.
Then use this integration to run your Routine.
thanks for the help.
unfortunately i cant use routine because, routine can only open a skill.
i cant send the message in routine for eg - ask climote what is the temperature
The sensors associated with the devices are all disabled:
Kitchen do not disturb switch - grayed out
Kitchen next Alarm - Unavailable
Kitchen next Reminder - Unavailable
Kitchen next Timer - Unavailable
...all others grayed out
I was able to get Pandora to stream to my Amazon Spot with the code below. The first press of the button starts the stream, but there is no way to stop it unless I verbally tell Alexa to stop. Any suggestions on how to fix this.
So I updated to 0.112 Beta, and got the configure prompt and keep getting “Failed to call service configurator/configure. /ap/cvf/approval/poll”
Tried downgrading both HA to 0.111.4 as well as Alexa Media Player (after just downgrading HA didn’t work) to 2.8.6, both now back to latest (2.8.7 and 0.112 beta) since the downgrade didn’t resolve
This is in the log:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
connection.context(msg),
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 1260, in async_call
task.result()
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/core.py", line 1295, in _execute_service
await handler.func(service_call)
File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/configurator/__init__.py", line 235, in async_handle_service_call
await self.hass.async_add_job(callback, call.data.get(ATTR_FIELDS, {}))
File "/home/homeassistant/.homeassistant/custom_components/alexa_media/configurator.py", line 28, in configuration_callback
setup_platform_callback, hass, config_entry, login, callback_data
File "/home/homeassistant/.homeassistant/custom_components/alexa_media/configurator.py", line 177, in setup_platform_callback
await login.login(data=callback_data)
File "/srv/homeassistant/lib/python3.7/site-packages/alexapy/helpers.py", line 104, in wrapper
return await func(*args, **kwargs)
File "/srv/homeassistant/lib/python3.7/site-packages/alexapy/alexalogin.py", line 431, in login
site, data=self._data, headers=self._headers, ssl=self._ssl,
File "/srv/homeassistant/lib/python3.7/site-packages/alexapy/aiohttp/client.py", line 506, in _request
traces=traces,
File "/srv/homeassistant/lib/python3.7/site-packages/alexapy/aiohttp/client_reqrep.py", line 308, in __init__
self.update_host(url)
File "/srv/homeassistant/lib/python3.7/site-packages/alexapy/aiohttp/client_reqrep.py", line 369, in update_host
raise InvalidURL(url)
alexapy.aiohttp.client_exceptions.InvalidURL: /ap/cvf/approval/poll
I’m guessing at what the actual issue is because your config would only allow discovery of the media player for the kitchen and excludes everything else. So I’d say your’e pretty successful at excluding devices.
If you include both include_devices and exclude_devices you will only be able to exclude what is in your include list. The reason is include is more restrictive and only items in there will be included. So with your config, you’ve only included the Kitchen so only that media player will be discovered.
You must include every sensor you want if you are using include_devices. Right now your config will only include the base media player and none of the extra switches/sensors. So the fact they even appear is probably because at one point they were discovered before you applied the filters but now are dead because you didn’t say you wanted them included again.
The next sensors only populate with data if there is actually a next alarm, reminder, or timer. Otherwise they are unavailable so you can hide them.
You are logged in the wrong domain so they’re not getting information so will appear as unavailable.
Use the media_player.media_stop command. But this would only work if the stop command works in a routine in the Alexa app. I haven’t tested it with pandora so if doesn’t work there, then we can’t do anything.
You found a new Amazon login page apparently. File a bug report and provide the requested logs so we can examine the page. Until we handle it, your only workaround is hoping Amazon gives you another login page.
Thanks - I removed the include_devices section and now I can see that the do no disturb sensor is now available for my Kitchen echo. I originally had it like that (without an include section) in an attempt to get excluding to work as I expected - that items listed wouldn’t show up as devices. However it still shows all of the excluded devices?