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
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.
Already PM you the code, note: I’m totally new to Groovy and I’m writing the code with help from Google & Stackoverflow , so lots of code might be very naive.
Would I please be able to get a copy of that groovy file?
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.
OAuth required a clientID and secret which I can’t reveal, because with that any user can access our cloud server.
Are your users able to generate an api key then? To possibly get this to work
No, no per-user key available.
so this a dead end ?
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.
There is another API server, DTH and SmartApp for Xiaomi which listed Yeelight as supported.