howanghk / homebridge-ewelink

Homebridge plugin to control Sonoff relays with OEM firmware
MIT License
81 stars 46 forks source link

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

Open Leonoerlemans opened 5 years ago

Leonoerlemans commented 5 years ago

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!

howanghk commented 5 years ago

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.

Leonoerlemans commented 5 years ago

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

howanghk commented 5 years ago

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.

VictorBling commented 5 years ago

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.