homebridge-ewelink icon indicating copy to clipboard operation
homebridge-ewelink copied to clipboard

Devices compatible with ewelink with more options than just on/off

Open Leonoerlemans opened this issue 5 years ago • 4 comments

Dear Howanghk,

Thank you for this great plugin, which is simple to use! I have bought some ewelink compatible devices I wanted tot try:

  1. simple on/off touch: works great with the plugin
  2. dimmer (on/off brightness): only on/of switch appears in homekit, no brightness
  3. curtain controller(close/open/pauze): only on/of switch appears in homekit for open and close.

when there are extra functions (different service) to the the switch they are not recognised by homekit and therefor they can't be used in homekit.

Is there a possibility this can be changed?

Thnks!

Leonoerlemans avatar Mar 23 '19 17:03 Leonoerlemans

Hi @Leonoerlemans, this plugin only support basic on / off switch now, as that is what the original author gbro115 write this plugin for. Then a contributor MrTomAsh added support for multi-channel device. I am the third major contributor to this plugin, I added login support so that users won't have to know how to use Charles to make this plugin work. As you can see, none of the author and contributors have a device with those extra functions. Therefore none of us wrote support for those functions. If you happen to have those devices, please consider adding support for those functions! This project is open source and have a relaxed license that you are free to modify the code and share your work. You can look into the source code, it's written in Javascript which is fairly easy to understand and write. Once you're done with the extra functions, you are welcome to send a pull request so the functions can be merged into this fork.

howanghk avatar Mar 25 '19 06:03 howanghk

Thank you @howanghk for your reply. My Java is not good, infact I just bought a book to understand. So I am far from adjusting this plugin. I hoped someone with the same devices could contribute to a solution. I also do understand that you can’t honor every request and solve someone else’s issues. Thank you anyway for this fork

Leon

Leonoerlemans avatar Mar 26 '19 22:03 Leonoerlemans

Hi @Leonoerlemans, javascript and Java are two completely different things. There are tons of free javascript learning material on the Internet. Just google for "learn javascript" and pick the one you feel comfortable to start with. You would need to know the basics only, as most tutorial assume we use javascript with a web page, but in our case we use javascript "server-side", which don't attach to a web page.

howanghk avatar Mar 27 '19 04:03 howanghk

Thank you @howanghk for your reply. My Java is not good, infact I just bought a book to understand. So I am far from adjusting this plugin. I hoped someone with the same devices could contribute to a solution. I also do understand that you can’t honor every request and solve someone else’s issues. Thank you anyway for this fork

Leon

Hello, I followed your conversation! I am exactly in the same case as you, I bought a switch for a curtain and I would like to see it work like this one https://www.youtube.com/watch?v=WF0hb_ZBf3E I do not know anything about programming I'm looking for solutions to my level, I 'hope someone can help us. Sorry for English I translated with Google.

VictorBling avatar Apr 05 '19 13:04 VictorBling