Skip to content

A MagicMirror module to display Tuya-based (smart_life) smarthome devices

Notifications You must be signed in to change notification settings

slametps/MMM-TuyaSL

Repository files navigation

MMM-TuyaSL [GitHub license]

Tuya-based-devices Smarthome Module for MagicMirror2. By default, this module is implemented for devices managed by SmartLife (android) application.

Example

Dependencies

Installation

  1. Clone this repo into ~/MagicMirror/modules directory. cd ~/MagicMirror/modules git clone https://github.com/slametps/MMM-TuyaSL.git

  2. Go to ~/MagicMirror/modules/MMM-TuyaSL directory and do npm install cd ~/MagicMirror/modules/MMM-TuyaSL npm install

  3. Configure your ~/MagicMirror/config/config.js:

    {
      module: 'MMM-TuyaSL',
      position: 'top_right',
      header: 'TuyaSL',
      config: {
        userName: 'your_smartlife_username',
        password: 'your_smartlife_password',
        countryCode: 'ID',
        showOnlyOnline: true,
        showOnlyOn: false,
        colour: false,
        updateInterval: 300 * 1000,
        timeout: 10 * 1000,
      }
    }
    

Config Options

Option Default Description
userName (mandatory) your tuya-smartlife account username
password (mandatory) your tuya-smartlife account password
countryCode ID Your country code, e.g. ID, US, EU, etc
bizType smart_life default bizType for SmartLife app user. Use tuya for Tuya app user.
from tuya please leave unchanged
colour false displaying power status in colour or not
updateInterval 300000 ms (5 minutes) how often should the devices states refreshed (minimal is 5 minutes => Tuya policy)
showOnlyOnline false if set to true the module shows only the devices which are online
showOnlyOn false if set to true the module shows only the devices which are on
showLabel true show header label?
timeout 3000 how long the discovery should be taken
animationSpeed 2500 ms (2.5 s) Speed of the update animation

forthebadge forthebadge

About

A MagicMirror module to display Tuya-based (smart_life) smarthome devices

Resources

Stars

Watchers

Forks

Packages

No packages published