Skip to content

Latest commit

 

History

History
85 lines (68 loc) · 3.28 KB

README.md

File metadata and controls

85 lines (68 loc) · 3.28 KB

MMM-Smartthings

This is a module for the MagicMirror².

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

This is a fork of the MMM-Smartthings module made by buzzkc.

Example

Dependencies

Installation

Setup the MagicMirror module

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

Updating

Go to the module’s folder inside MagicMirror modules folder and pull the latest version from GitHub and install:

git pull

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", "alarm", "doorControl", & "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