I am trying to get this to work, but am a little bit confused. I get the basic idea of exposing a binary value to alexa that can trigger a routine, I have created a template device as follows.
The problem I am confused by is what I need to put into value_template, I don’t have a an actual device in HA to track the actual state of the scene. such as a light within the scene. The curtains can’t be connect to the HA., which is why I am trying to use Alexa routine.
@Jeffrey_Ellin
Are you able to see the device in the Alexa app, and also trigger a routine based on the device’s state?
Are you using Nabu Casa?
For me (not using nabu casa), I can add the input_boolean and binary_sensor to the alexa app, but I don’t see any device listed as a trigger when I tried to go “When this happens” → “Smart Home”.
So I have worked around based on voice command sent by the Alexa Media Player. I described my workaround in my post here.
I’ve read though most of the posts in this thread trying to figure out where I’m going wrong. I’m using the Alexa Skill rather than Nabu Casa and have had the skill successfully linked for a while now. I have only recently needed to create a routine where I want it to toggle a binary sensor.
I have added the required entries into configuration.yaml - there are no errors in the logs relating to this so I assume everything is setup correctly. I’ve also restarted HA and relinked the skill.
I have created a door sensor from a template and it shows up in the Alexa device list after a rescan. The only issue I have is that when create the route and I try to select the binary sensor under devices, it is displayed right at the bottom of the list under the unsupported section.
Essentially you need three things to make this work:
You need a helper in Home Assistant: a Toggle helper
You need a way for things in Home Assistant to be visible to Alexa: the simplest solution is a Nabu Casa subscription and the Home Assistant Alexa Skill. You will then need to expose the toggle helper to Alexa.
A Routine in your Alexa app: This will respond to the change in state of the helper toggle and do whatever you set the routine to do.
I should have mentioned that I’ve tried this with a toggle helper as well. The strange thing there is that running the routing from the Alexa app on my phone via voice control works perfectly. If I ask any of my echo’s the same thing, I just get a ‘dum dum’ like response and it doesn’t work.
This did prompt me to do some more testing today though and I’ve found that for whatever reason, the voice command I was using just wouldn’t work. I tried changing it to something else that is similarly worded and it works without any issue!
I can use some help… I want to have an Automation whereby a TIME Trigger and a CALENDAR Condition runs a Alexa Routine. How do I do that ? I am not very familiar with Yaml and by far prefer the Visual Editor. Thanks !!!
I’ ve tried to create a binary sensor with device class “door” to act as a door sensor. It’s OK with HA but if I attempt to expose to Alexa trought Emulated Hue or HA Bridge, always detected as a light and can’t create a routine event.
My Goal is to be able to launch an Alexa routine from a virtual button on HA
I didn’t use Nabu Casa
Many Thanks
EDIT : " The Emulated Hue integration provides a simpler alternative to use utterances such as “Alexa, turn on the kitchen light” . However, it has some limitations since everything looks like a light bulb."
I tested it too but it didn’t work either, no error on the HA side but nothing happened on my echo dot. I therefore thought that it was necessary to trigger via the routine event
Is it possible to ENABLE/DISABLE (not trigger!) an Alexa rountine from HA?
I have configured a routine that detects motion through the built-in ultrasonic motion sensing of echo dot. I’d like to enable the routine when I’m not at home and disable it when I am at home.
@Didgeridrew
Just for the readers: your suggestion only works in some countries (it should in US and UK) but not in other countries (e.g. Italy, but I’ve seen many others complaining it does not work in their country too).
So in those other countries, you can’t enable/disable a routine just sending a voice command to Alexa, the only option is doing it through the app.
Maybe I am missing something here but I have set up the routine in Alexa as test, then created the below:
alias: Robovac Test
sequence:
service: media_player.play_media
target:
entity_id: media_player.office_echo_15
data:
media_content_id: Test
media_content_type: routine
metadata: {}
mode: single
There is an Alexa routine called test thats starts my Eufy Robovac. I would use the Eufy Custom Integration, but for some reason it finds my vacuum but all entities are unavailable.
The script in HA says its run, but nothing actually happens
I had a input_boolean in HA triggering a routine in Alexa. This was working flawlessly although it stop working about two weeks ago… The integration is working fine between HA and Alexa. If the input_boolean status changes from HA it gets updated in alexa and viceversa. If the routine is manually triggered from alexa it also works just fine… But for some reason the routine does not want to run when the input_boolean changes it’s value. I even tried creating a template switch and using the input_boolean as the status for the template switch but same results… the alexa routines are not being triggered when the value of the HA devices changes…