kakopappa / arduino-esp8266-alexa-multiple-wemo-switch

multiple belkin wemos switch emulator using ESP8266
https://sinric.pro
MIT License
308 stars 196 forks source link

Dimmer Module #33

Open Braandn opened 6 years ago

Braandn commented 6 years ago

Is it possible to add a Dimmer Module to the system, so that you can say "Alexa set the light to 20%" if yes, could you post an example?

kakopappa commented 6 years ago

Sorry, dimmer modules are not supported. This project supports only turning on/off.

To Alexa set the light to xxxx you have to make an Amazon Skill.

I am in the process of building a smart-home-skill for everyone and about 90% of the work is done now. I will update this issue when it's completed.

kakopappa commented 6 years ago

Hello Past few weeks I have been working on a smart home skill and a website which allows you add development boards such as WEMOS D1 to Alexa eco system without emulating as a belkin switch. Mainly, because some people have issues in the UDP broadcast and different Alexa devices such as ECO, DOT has different XML formats and this is logic is quite difficult to code. So, I belive moving forward using the smart home skill is the right thing to do;

So, I would like to invite everyone to give it a try.

  1. Goto sinric.com

  2. Create an account

  3. Use the API key displayed on the home screen to connect your WEMOS D1 to sinric. Here is the code . Just replace the API KEY https://github.com/kakopappa/sinric/blob/master/arduino_examples/switch_example.ino

  4. Install smart home skill from https://www.amazon.com/dp/B078RGYWQQ/ref=syps?s=digital-skills&ie=UTF8&qid=1515150398&sr=1-18&refinements=p_n_date%3A14284925011

4.1 Link, eneter you login details to sinric.com

  1. Discover.

  2. Rate the Skill so other people can easily find it!

You can turn on/off same like emulating a belkin device.

No need to say like Alexa ask sinric to turn on bedroom lights. Simple as a Alexa turn on bedroom lights.

If you have any issue or comments report it here; https://github.com/kakopappa/sinric

Thanks kakopappa

Aircoookie commented 6 years ago

@Braandn I've developed a sketch called Espalexa (https://github.com/Aircoookie/Espalexa) based on kakopappa's single switch (https://github.com/kakopappa/arduino-esp8266-alexa-wemo-switch) project. It might suit your needs since it supports dimming, however only with one switch (could quite easily be extended for more, though).

This works because it uses the Philips Hue protocol instead of the Belkin Wemo one. Won't create a PR though since it is too different from this project.

Thank you, @kakopappa ! wouldn't have been able to get this to work without your code as a foundation. By the way, great work on your Sinric project! I have no use for it at the moment, but I really appreciate that you offer it for FREE and make it easier to connect to the Alexa service! Thank you 👍

MacSass commented 6 years ago

Hi, while kakopappa is working on the Alexa Skill, which might provide the smoothes road for the future - I can really recommend the current implementation from Aircookie - he has added support for dimming as well as multiple devices (emulates hue) - works perfectly for me. Regards - MacSass

arman4455 commented 6 years ago

@kakopappa Thanks! I got sinric to work with the example blind code. would you be able to make some code based on that so i can open and close the blinds? essentially control the servo?

Thanks, Arman

rramesh68 commented 4 years ago

@kakopappa I tried downloading the switch_example.ino and when I try to compile it i get the following error "json' was not declared in this scope" against this line String deviceId = json ["deviceId"];.

I am a novice. Kindly advise on the way forward.

Thanks Ramesh

kakopappa commented 4 years ago

You are missing the json library. Install ArduinoJson library first

On Mon, 9 Mar 2020 at 12:15 AM rramesh68 notifications@github.com wrote:

@kakopappa https://github.com/kakopappa I tried downloading the switch_example.ino and when I try to compile it i get the following error "json' was not declared in this scope" against this line String deviceId = json ["deviceId"];.

I am a novice. Kindly advise on the way forward.

Thanks Ramesh

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kakopappa/arduino-esp8266-alexa-multiple-wemo-switch/issues/33?email_source=notifications&email_token=ABZAZZTFQUXVXUFAJAZTF43RGPHBPA5CNFSM4EJ25ZU2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOE3SJY#issuecomment-596228391, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZVOIRYCLH2SIKPGWQ3RGPHBPANCNFSM4EJ25ZUQ .