Aircoookie / Espalexa

Alexa voice control for ESP8266/ESP32 (including brightness and color!)
MIT License
542 stars 134 forks source link

Make switch instead of light #89

Open itsjustvenky opened 4 years ago

itsjustvenky commented 4 years ago

Hi, First of all this is a great library and I really appreciate for the great work. Currently I see the espalexa devices as lights in alexa app, but how can me make it switch ? Thanks.

itsjustvenky commented 4 years ago

I found this code which makes esp device as "Plug". Any chance we can add this into Espalexa ? https://raw.githubusercontent.com/kakopappa/arduino-esp8266-alexa-wemo-switch/master/sinric.ino

mharmon12 commented 4 years ago

I was researching the same thing. We need to change he cpp code so that onoff doesn't default to dimmable.

I need to understand what was tried (if anything) that didn't work for onoff. Alexa supports "Plug" or devices that are simple "onoff". The device type is power.

Can someone show me the code where it broke for "onoff" and I will look at fixing it?

imtiazasghar665 commented 2 years ago

sir How can we solve this problem.....??

orifer commented 2 years ago

Still waiting, is there something?