Git Product home page Git Product logo

smartthings---devices's Introduction

SmartThings---Devices

For deviceTypes to be used with SmartThings. Please see License for applicable use restrictions.

smartthings---devices's People

Contributors

sticks18 avatar treboreon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartthings---devices's Issues

Battery Reporting - Petsafe-Smart-Door.Groovy

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.

Amazon Alexa

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.

dimOnOff not working correctly

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.