GithubHelp home page GithubHelp logo

permadm / node-red-contrib-sonoff-tasmota Goto Github PK

View Code? Open in Web Editor NEW

This project forked from steffenmllr/node-red-contrib-sonoff-tasmota

0.0 0.0 0.0 57 KB

Connect Sonoff Devices running the Sonoff-Tasmota firmware easy to node red

License: MIT License

HTML 35.16% JavaScript 64.84%

node-red-contrib-sonoff-tasmota's Introduction

node-red-contrib-sonoff-tasmota

NPM version

A Node-RED node, to control Sonoff switches running the awesome Sonoff-Tasmota firmware

Installation

Install node-red-contrib-sonoff-tasmota using npm:

npm install --save node-red-contrib-sonoff-tasmota

Usage

To use the node, just drag the node from the Sonoff section to the Flow, add the id and the mqtt broker. To control the switch you can use a true/false input node or connect a UI Button.

Sample FLOW

Sample Flow

[{
    "mode": "0",
    "id": "31a99116.86e71",
    "device": "light_livingroom",
    "type": "Sonoff device",
    "z": "c99f41b0.86e72",
    "broker": "31a99116.50a74e",
    "name": "Living Room Light",
    "onValue": "ON",
    "offValue": "OFF",
    "cmdPrefix": "cmnd",
    "statPrefix": "stat",
    "telePrefix": "tele",
    "x": 323.5,
    "y": 292,
    "wires": [
        ["83ebc5bb.bf90c8", "cf638ecc.54904"]
    ]
}, {
    "id": "31a99116.50a74e",
    "type": "mqtt-broker",
    "z": "",
    "broker": "localhost",
    "port": "1883",
    "clientid": "",
    "usetls": false,
    "compatmode": true,
    "keepalive": "60",
    "cleansession": true,
    "willTopic": "",
    "willQos": "0",
    "willPayload": "",
    "birthTopic": "",
    "birthQos": "0",
    "birthPayload": ""
}]

License

MIT © Steffen Müller

node-red-contrib-sonoff-tasmota's People

Contributors

chrishutt avatar pedruino avatar steffenmllr 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.