Coder Social home page Coder Social logo

mmm-smartthings's Introduction

MMM-Smartthings

This is a module for the MagicMirror².

MagicMirror module that connects to the Samsung Smartthings api to display device status information.

Modifications

This fork has been modified by Cydergoth to use a two column layout, move the icon position and suppress the value for locks. These changes make it more suitable for a smaller display, especially if you use short names for your sensors.

Example

Dependencies

Installation

Setup the MagicMirror module

cd ~/MagicMirror/modules
git clone https://github.com/buzzkc/MMM-Smartthings.git
cd MMM-Smartthings
npm install

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

var config = {
    modules: [
        {
              module: "MMM-Smartthings",
              position: "top_left",
              header: "Smartthings",
              config: {
                personalAccessToken: 'your_smarthings_api_key',
                capabilities: [
                    'contactSensor',
                    'lock'
                ],
                title: "Doors & Locks",
                excludedDeviceNames: [
                    'Sense-', // Contains this text
                    'Virtual Lock Test' // Or is a specific device label
                ]
              }
        }
    ]
}

Configuration options

Option Description
personalAccessToken Required Setup your personal access token at https://account.smartthings.com/tokens
capabilities Required An array of device capabilities to display statuses for. Supported capabilities: "switch", "contactSensor", "lock", "temperatureMeasurement", "relativeHumidityMeasurement", & "motionSensor"
updateInterval Optional The number of milliseconds between updates
Type: int(milliseconds)
Default 30000 milliseconds (30 seconds)
title Optional The sub-heading title for device list
excludedDeviceNames Optional An array of device names or strings contained in the device label, can be excluded by containing a given word or the full name. Be more specific if devices you want to see are getting excluded.
tempLowValue Optional The low threshold for temperature monitoring Default: 65 Type: int
tempHighValue Optional The high threshold for temperature monitoring Default: 80 Type: int
title Optional The sub-heading title for device list

Future Enhancements

Thanks To

mmm-smartthings's People

Contributors

buzzkc avatar cydergoth avatar

Watchers

James Cloos 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.