For deviceTypes to be used with SmartThings. Please see License for applicable use restrictions.
sticks18 / smartthings---devices Goto Github PK
View Code? Open in Web Editor NEWFor deviceTypes to be used with SmartThings
For deviceTypes to be used with SmartThings
Hi,
I realize this is ancient, and I appreciate you making it. It has worked great over the years.
There has been some change resulting in the battery reporting as 0% all the time.
I found if you change the 2 lines: (126,127)
def pct = (volts - minVolts) / (maxVolts - minVolts)
result.value = Math.min(100, (int) pct * 100)
to:
def pct = (((volts - minVolts) / (maxVolts - minVolts)) * 100)
result.value = Math.min(100, (int) pct)
It corrects the problem. At least currently. (10/25/2018)
Thanks again.
First off, thank you for some good code! Since Hue is no longer working with devices like this I found this to be a huge help. My only issue is that I use Alexa to turn on and off most of my Lights and set colors. This code does allow Alexa to turn on and off the RGB lights and set color it is not working to turn on/off the white light of RGBW.
I just started brainstorming this tonight but thought you might have a simple answer for something like this. Perhaps a 2nd call when requesting white to push out the on off to the white? Something like requesting white turns white on along with the rgbs while requesting any other color turns white off.
Device Handler: My-GE-Link-v3.groovy
I haven't been able to get dimOnOff to work correctly. When I turn my bulb on or off, it's an instant transition. Looking at the code I wonder if it's related to the following switch statement (line 269).
if (dimOnOff == "Yes"){ switch (dimOnOff){ case "InstantOnOff":
The variable "dimOnOff" has a value of Yes or No, which is getting checked on line 269. Then in the switch statement is expecting a value of "InstantOnOff", "NormalOnOff", etc. Shouldn't the switch statement be checking against a variable other than dimOnOff?
Button presses, no matter which I press, do nothing when pairing the Lutron Connected Bulb Remote to SmartThings with this Device Handler.
What's going on here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.