Changing the FauxmoESP library so it uses the words "open" instead of turn on

palashag
Posts: 1
Joined: Thu Dec 24, 2020 10:58 pm

Changing the FauxmoESP library so it uses the words "open" instead of turn on

Postby palashag » Thu Dec 24, 2020 11:08 pm

Hi
I built an electrically controllable door that I want to control with Alexa, using ESP32 as the microcontroller. I am therefore using the FauxmoESP library. However, the library was initally meant for lights, and thus in order to access a device using ALexa, the keywords will be "Alexa, turn on/off [insert device name]". Since my device is a door, I want it the keywords to be "Alexa, open/close [insert device name]". Any advice on how to do this? I have searched through the library source code and havent found an easy fix yet.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Changing the FauxmoESP library so it uses the words "open" instead of turn on

Postby WiFive » Fri Dec 25, 2020 3:09 pm

I think it is something that would be in the Amazon code and there is no way to change it on the fauxmo side. This is a legacy integration that Amazon did back when echo was still new so that something would work with echo right away. All the newer integrations use Alexa skills in the cloud.

gregBaker
Posts: 1
Joined: Sat Mar 27, 2021 3:06 pm

Re: Changing the FauxmoESP library so it uses the words "open" instead of turn on

Postby gregBaker » Sat Mar 27, 2021 3:20 pm

Better late than never ...maybe.

The most simple way is to use "Alexa Routines" (Alexa app under menu/routines) to define a customized "Alexa, open garage door" command that sends an integer percent value to the ESP32.

I hacked a library similar to "fauxmo" for myself:
https://github.com/gsb/Alexa2ESP

Check out the first example in the ESP32Examples folder:
Alexa2ESP/examples/ESP32Examples/alexa2esp_32 Example-1/

Should be all that you need.

Greg

Who is online

Users browsing this forum: No registered users and 107 guests