Giter Club home page Giter Club logo

smart-button's Introduction

Smart Button for SmartThings

This small project is a SmartThings virtual button that allows you to control a SmartThings device by launching a defined SmartThings scene.

The typical use case is to give a ability to launch a selected scene in your SmartThings hub without giving access to your full SmartThings environment. It may be useful for guests or for neighbors.

The button is protected by a PIN code that you can set.

Demo

You can try the demo of this project at bramka.vercel.app. Open this at one device and use PIN 000000.

And open the bramka.vercel.app/test page at another device or another window at least. Then you can see how the Tester reacts to the button press. You can imagine that the Tester is a SmartThings device such as a light bulb or a door lock.

Deployment to Vercel

Press button below to deploy this project to Vercel in one click.

Deploy with Vercel

Next you will be asked to set the following environment variables:

Advanced Usage

There are additional environment variables that you can set to customize the behavior of the button.

NUXT_SMART_THINGS_API_URL Allows you to set the URL of the SmartThings API. By default, it is set to the SmartThings API URL (https://api.smartthings.com/v1). You can use it to set a different URL, for example, if you have a custom SmartHome API server.

NUXT_ADDITIONAL_PUSH_PAUSE allows you to set the pause after the scene is launched (until the button is ready to be pushed again). By default, it is set to 0 (no pause). You can set it to a value in milliseconds.

smart-button's People

Watchers

Artem Rizhenkov avatar

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.