Closed highground88 closed 2 years ago
Currently, the goal of this project is not to do everything like Wemo etc. For example the web interface looks horrible, so the way ESPHome is meant to be used is together with a Home Automation solution (like Home Assistant or OpenHAB).
These hubs should be in charge of relaying stuff to Alexa, Google Home etc (and it's very easy to set it up too for them). Why? Running yet another service on these tiny ESPs is just asking for trouble (talking mostly about memory usage here)
Sure I understand, thank you for the feedback. I had hoped it was a simple addition that it would be picked up by Alexa in addition to HA. At the moment I'm still learning, but the Tasmota style WeMo emulation has been a favourite with the wife approval factor... I will need to spend more time obviously (and apparently a subscription now) to implement the remaining devices into Alexa.
Hi Otto,
Just on the off chance that this might be something you hadn't seen or considered. I've thought about this some more and perhaps, memory dependant, this could be an optional library to include?
This is not to use the device in the Wemo interface - it's simply to allow Alexa etc to recognise the ESP as a switch automatically, which saves extra configuration (e.g. no mqtt required).
Please feel free to comment or close as you wish - appreciate your hard work.
Yes I am aware of that library but I still do not think it's good to include. It would also be difficult because the web_server component uses the same port too (so using that library would probably not be possible)
which saves extra configuration (e.g. no mqtt required).
Have you seen the new native API for esphome? With that it's just a couple of clicks to get the esp connected to HA.
I've just started using the native API and it is indeed excellent, and all the sensors you've included is fantastic.
But for me at the moment I'm still using Tasmota on roughly half of my devices, purely because I can voice control them with Alexa due to the WeMo emulation, without having to pay a monthly cloud subscription for the HA component for just a few devices. When money is tight this option has a much higher Wife Approval Factor too.
If things change down the line I really do think something like this would be a fantastic option to include, but it does sound like there are a few hurdles.
Well if ESPs can emulate wemo I think HA can do the same. Haven't checked, but I think there's a high chance somebody already implemented wemo emulation for HA (either integrated or as a custom component)
I am using the Home Assistant Hue bridge emulation with Google Home and can vouch for that. I haven't tried it with Alexa yet.
I am using Home Assistant and it doesn't emulate Wemo devices. It has support for emulated Wemo devices, which is what I believe this request is about, which would be redundant to HA since HA has ESPHome as an integration. However, it would greatly increase the ease of using Alexa with ESPHome for users that don't have Alexa working with HA because they are not using HA.cloud or have an Amazon developer setup with an endpoint. IMO, this is a big happy factor for a lot of people and even opens possibilities of using ESPHome independent of HA. DISCLAIMER: I have not tried the Hue bridge emulation but from what I read, i am not looking for something that exposes everything (with the option to exclude) but rather have the opt-in for esp8266 / 32 devices via esphome.
FWIW, I just tried to setup the emulated hue option in HA with Alexa and ran into a roadblock. The Alexa skill for Hue requires you to link to a Hue account but that account requires you to select your Hue bridge before it will work. It doesn't detect the emulated bridge in HA, so I was unable to complete the link. On the other hand, my Wemo devices simply work with Alexa without fuss. It would be great if esphome could be configured to look like a Wemo light to Alexa.
Not sure if this issue is still being monitored or considered, but this new code may be of interest and is only 80 lines - unsure of port usage, but this would provide voice support to simple devices.
It would also be difficult because the web_server component uses the same port too (so using that library would probably not be possible)
The port in the web_server can be changed so I don't see this as impossible (or even difficult. Maybe just throw a compile error if it's left to the default of 80 and if the fauxmo is also enabled. Could be done with a few #ifdef statements.)
And one benefit of the Wemo/fauxmo is that it doesn't require an external server at all. It's all done directly between the Alexa and the Wemo device. So if a server goes down somewhere (other than the Alexa server) it'd still work.
I LOVE the GUI for ESPHome in HA. I love how simple it is to get all the sensors and anything I add into the sketch right into HA and it all just WORKS! So awesome, and thank you!
I have to add to the list of hands raised saying easier Alexa integration via this method would be the tipping point. I can't run routines in Alexa on my ESPHome entities, shoot, I can't even get the entities exposed and working properly from HA into Alexa. The Emulated Hue integration has been busted for months, thankfully just got a ton fixed but still a ways to go (maybe arrive to all in an HA update or two in the future)... switched to trying Node-Red.
There are two pallets being maintained, one uses a third-party cloud server to match up the alexa entities with the HA entities and translate messages... the other keeps as much as we can local. The local one is node-red-contrib-amazon-echo. Unfortunately this pallet has very little documentation on how to actually use it in various ways. The furthest I can figure out is that I have to create fake entities for Alexa to recognize, sniff out the unique IDs those were given, then endlessly parse messages to both match up those IDs with HA entity names, changing json values based on the matching, then again parse what the action is depending on if it's an ON/OFF action or just a Dimmer and don't get me started on colors and..ugh.
TL;DR - Search for "ESPHome devices in Alexa" and it's a big hole of why doesn't this exist? Thankfully this github thread came up, and it also says it doesn't exist.
I'm stuck in Tasmota until I can get Alexa to discover and properly command ESPHome devices. What about Hue Bridge? We have a HA API component we just call in the ESPHome yaml... WeMo and Hue Bridge have been standard on Tasmota for a long time. Adding a voice assistant integration method seems like a no-brainer - ESPHome sensors to trigger routines or automations in Alexa is another huge reason.
Take a look at https://github.com/custom-components/alexa_media_player
It has ways of sending commands to Alexa to start/stop media play (such as Pandora or such) but it also has ways of sending strings to Alexa to be ran through its TTS engine as well as ways to trigger Alexa routines. So this may resolve at least some of your issues.
any development in adding the emulation to esphome?
Fantastic work on the current state of esphomeyaml!!! Have just started playing with it this week and it's a dream in most respects. But.. onto the topic at hand: Missing WeMo support
Currently I'm using Tasmota and a mixture of others for my ESP's, however I would love to fully move over, but unless I'm mistaken the ability to emulate a WeMo device (or similar), to allow discovery in Alexa and Google Home, is missing.
Adding this ability into the system would provide voice control for switches etc, and potential simple binary sensors to communicate and work within these AI systems (routines etc..)
I