I disabled the Home Assistant Alexa skill and re-enabled it and my sensor showed up!
When the skill was re-enabled, Alexa did a “discover devices”. That might be the trick. I was expecting it to show up without that. I often get notifications from the Alexa app when a new device is added to Home Assistant.
edit: After doing this, I also had issues with Alexa not seeing my binary sensor update. A restart of HA fixed everything. I had been using the “template entities” reload on the server controls panel when I changed my binary sensor. I wonder if a full reboot triggers setup of that sensor with Alexa that a reload didn’t initiate.
Then in Home Assistant, go to Configuration > Home Assistant Cloud. Scroll down to your Integrations, then in the Alexa section, click Manage Entities. I bet your template sensors are all listed in the “Not Exposed Entities” list. For the entities you want to expose, click the red x, then select “expose entity”.
Up in the top right corner, there’s also a “Manage Domains” options. I have all of those turned off because I had way too many new entities showing up and cluttering Alexa. I find it’s a lot easier to just go in and manually expose new entities vs. deleting all entities I didn’t want.
I have an odd situation where I cannot use home assistant sensors in routines. If I do not have the endpoint client id etc… in the config then the devices can be added to routines BUT the routines don’t actually trigger. If i have the config filled in then again the devices show but are no longer able to be used for routines.
Devices do show up in alexa and the states show and update.
Integration is using aws lambda, dev skill etc… following the guides. “Send Alexa Events” is enabled in the skill. Alexa see’s the door and motion as binary sensors of type Motion Sensor and Contact Sensor but neither one can be used in routines.
Any advice on where to check or what might be going wrong?
Well, I’ve gone through this thread and cant see anything to help me out. I want HA to trigger Alexa routines.
I’ve had HA and Alexa linked for a couple of years now (not Nabu Casa) and can voice control my Tasmotized switches. I can also see lots of my HA entities in the Alexa app on my phone.
However, when i try to create a routine triggered by a Smart Home device, i’m told ‘no devices found’ despite having added device_class: door to an mqtt platform binary sensor and it being in the regular device list.
Any help appreciated.
Graham, can you explain exactly what it is that you are trying to do?
To me, that sounds like you want to have an automation or script in Home Assistant call a service to trigger an Alexa Routine. That is relatively easy to do using the Alexa Media Player custom integration available in HACS.
I have a Blitzwolf IR blaster that controls my telly and AV amp with voice commands to trigger Routines in Alexa. I haven’t found a way to integrate the blaster with HA so I want to HA to trigger those Routines. My reading of stuff so far is that Alexa should be able to see Entities that could trigger a Routine if the Entities were configured correctly. I tried with just one adding “device_class: door” but that does not appear in the the Smart Home Entity trigger list.
Since you have this already working with Alexa, I think option 2 should work for you.
With the scripts, my use case was sending a robovac to designated cleaning zones. Once I had this working reliably the rest was done in the Alexa app, such as the invocation to trigger them.
So with this entity, what would like to happen when the state changes? An announcement, or something else? You can also use Node Red to achieve this.
I have a Node Red flow, where Alexa notifies that a device needs charging. Once it reaches 80%, there would be another notification and the wall plug switched off.
Just how comfortable you feel with doing it. You would then have Tasmota flashed on it. If you are lucky, you may be able to Tuya convert OTA, if it doesn’t have the newer firmware.
Re Option 2, I will have a look at Voice Monkey Basic.
Re what I want to do with that entity state change, was to turn my Amp on or off. HA knows what state it is in so there would be no problem toggling it on when I wanted it off. Of course, it wouldn’t be the boiler entity, i picked that for now just to see if it worked. A lot of my HA entities appear in the All Devices list of the Alexa App, including the boiler one. But Nothing is listed when I try to create a new routine in alexa and pick (when this happens) Smart Home as the trigger.
Re flashing with Tasmota, the thing is working nicely with alexa ATM and I don’t want to lose any of the capability I already have. Flashing with Tasmota to re-create that will take a lot of effort. I’m not worried about the flashing bit as I’ve done that with 7 Sonoff S26 switches already and some ESP8266 devices I have. I have been experimenting with TasmotaIR/8266 but found it not to be that reliable and written my own sketches to read my IR controllers and replicate the codes. I’ve been a bit distracted of late with that project, but know I could do it with MQTT as the interface between my home made IR blaster and HA.
But I heard that Alexa routines could be triggered from HA and that’s what I am trying to do now.
Like you said, the device wasn’t listed in Smart Home Skills, but I created a routine by selecting it from the All Devices list. Created a routine. Worked first shot. Or this didn’t work for you?
I do get that “Create a Routine” option on some of my devices but not the Boiler one. It just shows me the state (open or closed because I told it the class was door i guess!).
On the other devices where i do get that option, it just takes me to the Routine list, not into a Template for a creating a new one.
It’s probably something really simple that I’m just missing.
Are you using Nabu Casa?