GithubHelp home page GithubHelp logo

smartthings-ps's Introduction

Welcome to my SmartThings Repository

Here you will find my created SmartApps and Device Handlers as listed below.

Please note I acknowledge all original developers of updated Smart Apps & Device Handlers where appropriate

Smart Apps

ABC Advanced Button Controller - Updated 2020-05-05

Updated Features

  • Added Inovelli Red Series Switch (may also support Black Series)
  • Added ZRC-90 Scene Controller
  • Added Zen27
  • Added Ikea Button (5 buttons)
  • Added WS200+ Switch & Dimmer
  • Added Sonos Integration (Beta)
  • Updated Lightify Device Handler to allow Colour Temperature settings

This is an updated version of ABC by Stephan Hackett (See original repository here).

Updated Features

  • Added support for Philips Hue Dimmer
  • Added option to control Color Temperature
  • Code improvements

Device Handlers

Hue Dimmer Switch

This is an updated version Hue Dimmer Switch by Stephen McLaughlin (See original repository here)

Updated Features

  • Added support for Smart App button numbers (1,2,3,4)
  • Added option to switch between button names or numbers

Lightify Bulb -ABC

This is an updated version **Lightify Bulb ** by Scott Gibson (See original repository here)) This has corrected colour temperature to work with ABC and a few other tweaks

Zigbee Switch Power

This is an updated version Zigbee Power Switch by SmartThings (See original repository here)

Updated Features

  • Added support for Salus SP600 Smart Plug

Aqara Cube Controller (MFKZQ01LM).

It is based on code by @DroidSector & @ClassicGod and would not be possible without their work.

To pair your Aqara Cube Controller with SmartThings HUB follow the instructions outlined here: https://community.smartthings.com/t/xiaomi-zigbee-outlet-steps-to-pair-any-xiaomi-zigbee-device/67582

This DTH offers 3 modes of operation (that can be changed in the settings):

  1. Simple (set by default)- designed for backwards compatibility with the previous DTH - presents only 7 buttons for basic gestures like shake, 90-degree flip, 180-degree flip, slide, knock, rotate right and rotate left.
  2. Advanced - presents 36 buttons for maximum functionality. Buttons are assigned as follows:
  • buttons 1 to 6 - "push" event on face 0 to 5 activation (corresponds to face pointing up)
  • buttons 7 to 12 - "push" event on slide gesture with faces 0 to 5 pointing up
  • buttons 13 to 18 - "push" event on knock gesture with faces 0 to 5 pointing up
  • buttons 19 to 24 - "push" event on right rotation with faces 0 to 5 pointing up
  • buttons 25 to 30 - "push" event on left rotation with faces 0 to 5 pointing up
  • buttons 31 to 36 - "push" event on shake gesture with faces 0 to 5 pointing up
  1. Combined - with this DTH will present 43 buttons assigned as follows:
  • buttons 1 to 7 - basic actions just like in Simple mode
  • buttons 8 to 43 - actions from Advanced mode moved by 7 positions.

I recommend using the Advanced mode

DTH also offers emulated "Three-Axis" capability for easy usage in SmartApps like Mood Cube. It is dependent on the selected face and affected by the limitation mentioned below.

Due to limitations imposed by data sent by the hardware there are some things to keep in mind:

  • The device sends orientation only on those gestures:
  • 90-degree flip
  • 180-degree flip
  • slide
  • knock
  • Because of that orientation data for rotation and shake events is based on the last know orientation.
  • Device does not send any data if a gesture is unrecognized - rotating the cube randomly in the air and placing it down will most likely not send any event.
  • The DTH will correct the last known orientation and send missing flip/face activation events if needed as soon as it's got the orientation data from the device.
  • Due to the above rotation and shake events can execute for wrong faces if the flip gestures are not performed correctly (like rotating the cube randomly in the air)

Installation

To install the ABC Manager Smartapp

  • Login to the Smartthings IDE at https://graph.api.smartthings.com/
  • Click My Locations and select your home location
  • Click My SmartApps
  • Click New SmartApp
  • Fill out the Name, Namespace, Author and Description
  • Click From Code tab
  • Copy the raw code from the abc-manager.src file and paste in the From Code box
  • Click Create
  • Click Publish, For Me

Next, create the ABC Child Creator

  • Click My SmartApps
  • Click New SmartApp
  • Fill out the Name, Namespace, Author and Description
  • Click From Code tab
  • Copy the raw code from the abc-child-creator.src file and paste in the From Code box
  • Click Create
  • DO NOT PUBLISH

The app will now be available to add to your app.

  • Open the SmartThings app
  • Click the hamburger menu and select SmartApps
  • Click + to add an app
  • Scroll down to custom apps and select ABC Manager
  • Follow prompts to complete install

smartthings-ps's People

Contributors

banananaah avatar blak3r avatar gszabados avatar paulsheldon avatar uslackr 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartthings-ps's Issues

Adding getSpecText to configButtonsPage

I find it useful to see the SpecText for each button on the configButtonsPage so I know in advance which button press sequence I'm editing. Looking at the existing code, it didn't seem like I could reuse getSpecText() so I created getSpecTextConfig(i) and replicated with some tweaks.

I edited chooseButton() to say:

                    for (i in 1..state.buttonCount) {
                        href "configButtonsPage", title: "Button ${i}"+"\n${getSpecTextConfig(i)}", state: getDescription(i) != "Tap to configure" ? "complete" : null, description: getDescription(i), params: [pbutton: i]

and then added

def getSpecTextConfig(i) {
    if (state.buttonType == "Lutron Pico") {
        switch (i) {
            case 1: return "Top Button"; break
            case 2: return "Bottom Button"; break
            case 3: return "Middle Button"; break
            case 4: return "Up Button"; break
            case 5: return "Down Button"; break
        }
    }
    return "Not Specified By Device"
}

Is there a more eloquent way of reusing getSpecText() instead?

Error when trying to use ABC smart app

When adding the smart app to Smartthings, if I try to add a new button mapping it gives me the error "Something went wrong. Please Try to install the SmartApp again."

Any Help would be greatly appreciated!

Thank you!

Routines to scenes migration breaks routines

Routines to scenes migration breaks routines after making changes to the scene. Or the new ST firmware update did break it.
The fix would be to allow to select to add scenes to a button.

Devolo Switch

I’m using a Devolo switch controlling a CUSTOM Blinds DH.
I did not try before but it seems to accept the zero value but will just not display it. It states ‘Missing’ (see attached) but it does actually dim or in this case close the blinds to the zero value. So not as big an issue for me but would great if this can be fixed at some stage to actually show the zero value as opposed to 'Missing" but I’m not sure if this is connected to your SmartApps or if it is showing this as its getting out from elsewhere.
Thank You!

image

I get an error when I want to add it to SmartApps

No signature of method: script_app_metadata_8693cc69_8b86_44c5_b252_656c4081e57e.metadata() is applicable for argument types: (script_app_metadata_8693cc69_8b86_44c5_b252_656c4081e57e$_run_closure1) values: [script_app_metadata_8693cc69_8b86_44c5_b252_656c4081e57e$_run_closure1@4cb6fa4c] Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure)

Increase dimming in increments

So I am using a trader 5 button remote attached to a group of lights - all possible to dim - how do I set up the remote to dim in increments - its works in smarthings with the slider - just cant get the tradfri remote to do it on button 1 or 3 - I tried the dimmers inc level and set the value at 5 - but nothing happens. What am I doing wrong?

also can I make a request the ability to cycle through colours using the arrow buttons on the remote - where you have colour bulbs? maybe the 5 most recent or allow you to select a colour palette?

thanks

Aqara Magic Cube config error

When changing the device type in the IDE, the following error appears in the Live Logging for the cube:

[0a2f702b-1818-4518-990a-44c8f66c4ad6](https://graph-na04-useast2.api.smartthings.com/ide/logs#0a2f702b-1818-4518-990a-44c8f66c4ad6) 23:25:26: error groovy.lang.MissingMethodException: No signature of method: script_dth_8127a883acdc840d844169d690571ee7c24355f43a5500e3a1a8f11cb840ae76.swapEndianHex() is applicable for argument types: (java.lang.String) values: [286D97000209C526] @line 446 (configure)

Use Ikea 5 button remote to change Nanoleaf scenes

Hey there,

Thanks for looking at this for me, appreciate it :)

So I want to be able to use the two arrow keys on the 5 button ikea remote as forward and back for nanoleaf scenes.

Let me know what information I can provide to you?

Shane

No instructions

The ReadMe doesnt provide any insight as to how the controller can be installed. I had to find the info by watching YouTube videos and hope it was correct

Hue Dimmer

Anyone notice any issues with the hue dimmer, events are captured just no actions are taken I have all mappings in manager configured etc no errors in logs..

Adding support for WD200+

I've added this locally in my child code to support the HomeSeer WD200+ Dimmer based on the WD100+ Dimmer code and https://helpdesk.homeseer.com/article/177-smartthings-handler-wd200

Can this be merged into the trunk in the future?
Thanks!

if (state.buttonType.contains("WD200+ Dimmer")) {
    switch (state.currentButton) {
        case 1: return "Double-Tap Upper Paddle"; break
        case 2: return "Double-Tap Lower Paddle"; break
        case 3: return "Triple-Tap Upper Paddle"; break
        case 4: return "Triple-Tap Lower Paddle"; break
        case 5: return "Press & Hold Upper Paddle\n(See user guide for quirks)"; break
        case 6: return "Press & Hold Lower Paddle\n(See user guide for quirks)"; break
        case 7: return "Single Tap Upper Paddle\n(See user guide for quirks)"; break
        case 8: return "Single Tap Lower Paddle\n(See user guide for quirks)"; break
        case 9: return "4X-Tap Upper Paddle"; break
        case 10: return "4X-Tap Lower Paddle"; break
        case 11: return "5X-Tap Upper Paddle"; break
        case 12: return "5X-Tap Lower Paddle"; break
    }
}

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.