Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 1.47 KB

README.md

File metadata and controls

22 lines (12 loc) · 1.47 KB

SmartThings Handlers and SmartApps

Personal Repo of custom SmartThings Handlers and SmartApps.

Handler: Xiaomi Mijia Smart Switch

This handler allows for single, double, triple and quadruple clicks. It's built based on code found on bspranger repo here.

I have made this fork to learn about Smart Things while also adding functionality I thought was missing from the Mijia Switch.

I was looking primarily into adding multi-click functionality and in the end a lot of code for other non-essential functionality was removed as I personally didn't find useful. E.g. Button held functionality which didn't work so well for me.

This is the exact button I'm using which works well with multi-clicks: https://uk.gearbest.com/smart-light-bulb/pp_257679.html?wid=1433363

SmartApp: 1-2-3 Button Click Controller

The SmartApp is used to control 3 lights using a single button.

1, 2 or 3 clicks determine which of the 3 lights will switch on. When that happens other lights are switched off.

4 Clicks will switch off all lights. Also, if the number of clicks matches a light that is already switched on, then it will switch off all lights.