Smartthings support


#41

Hi there. I’m interested in porting the work you’ve done thus far on Yeelight for Smartthings to Hubitat, a local-processing smart home controller. Is there somewhere that I can access the app and drivers you’ve created for Smartthings? Hubitat also uses groovy for their drivers and apps, so porting existing devices is relatively easy. @weiwei


#42

Let me find the code and share to you. However, SmartThings are cloud-to-cloud interface, you may need to do pretty much code change.


#43

Already PM you the code, note: I’m totally new to Groovy and I’m writing the code with help from Google & Stackoverflow :grin:, so lots of code might be very naive.


#45

Would I please be able to get a copy of that groovy file?


#46

https://www.yeelight.com/bindir/page.groovy
https://www.yeelight.com/bindir/dev_handler.groovy


#47

Thanks, i copied in the smart app and enabled oauth. It allows me to pick the server singapore or north america but when you go to sign in it just gives invalid client.


#48

OAuth required a clientID and secret which I can’t reveal, because with that any user can access our cloud server.


#49

Are your users able to generate an api key then? To possibly get this to work


#50

No, no per-user key available.


#51

so this a dead end ?


#52

I can’t send PM’s yet, but we would love to discuss local control of Yeelight Bulbs on Hubitat Elevation. Reviewing your API it appears you can support UPNP discovery and direct local control of the bulbs. Please let me know how to contact you @weiwei to discuss.

Thanks,

Patrick


#53

There is another API server, DTH and SmartApp for Xiaomi which listed Yeelight as supported.


#54

@weiwei. as @pstuart is suggesting. Yeelight should be controllable via Local LAN. Since more and more (Specifically in Northamerica) are adopting Smartthings. It will be good selling point for Yeelight as well.