npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

node-red-contrib-sonoff-tasmota-enhanced

v3.1.2

Published

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

Downloads

48

Readme

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-enhanced using npm:

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

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.

Toggle: send a Message with topic 'command' and payload 'toggle' to the node to toggle the tasmota device

ON/OFF: send a Message with topic 'command' and payload 'on' of 'off' to the node to turn ON or OFF the tasmota device

Color: send a Message with topic 'color' and payload Color

Dimmer: send a Message with topic 'dimmer' and payload number in percent

Sample FLOW

Sample Flow

[
    {
        "id": "13346fe3.f9dbb",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": ""
    },
    {
        "id": "44ae399c.bb1f98",
        "type": "Sonoff device Enhanced",
        "z": "13346fe3.f9dbb",
        "mode": "0",
        "broker": "29d7744c.2a685c",
        "device": "wzindirekt",
        "name": "",
        "onValue": "ON",
        "offValue": "OFF",
        "toggleValue": "toggle",
        "cmdPrefix": "cmnd",
        "statPrefix": "stat",
        "telePrefix": "tele",
        "x": 580,
        "y": 200,
        "wires": [
            [
                "5f49cd7a.34a5d4",
                "a622f4f8.d75468"
            ]
        ]
    },
    {
        "id": "5f49cd7a.34a5d4",
        "type": "ui_switch",
        "z": "13346fe3.f9dbb",
        "name": "",
        "label": "switch",
        "tooltip": "",
        "group": "9d03a37c.7d0558",
        "order": 3,
        "width": 0,
        "height": 0,
        "passthru": false,
        "decouple": "false",
        "topic": "",
        "style": "",
        "onvalue": "true",
        "onvalueType": "bool",
        "onicon": "",
        "oncolor": "",
        "offvalue": "false",
        "offvalueType": "bool",
        "officon": "",
        "offcolor": "",
        "x": 580,
        "y": 120,
        "wires": [
            [
                "44ae399c.bb1f98"
            ]
        ]
    },
    {
        "id": "bf67af5f.71565",
        "type": "inject",
        "z": "13346fe3.f9dbb",
        "name": "",
        "topic": "command",
        "payload": "toggle",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 320,
        "y": 180,
        "wires": [
            [
                "44ae399c.bb1f98"
            ]
        ]
    },
    {
        "id": "be4c48bd.0668f8",
        "type": "inject",
        "z": "13346fe3.f9dbb",
        "name": "",
        "topic": "color",
        "payload": "#ff4500",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 310,
        "y": 120,
        "wires": [
            [
                "44ae399c.bb1f98"
            ]
        ]
    },
    {
        "id": "a622f4f8.d75468",
        "type": "debug",
        "z": "13346fe3.f9dbb",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 760,
        "y": 200,
        "wires": []
    },
    {
        "id": "29d7744c.2a685c",
        "type": "mqtt-broker",
        "z": "",
        "name": "pinky MQTT",
        "broker": "192.168.178.55",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "closeTopic": "",
        "closeQos": "0",
        "closePayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "9d03a37c.7d0558",
        "type": "ui_group",
        "z": "",
        "name": "Raum-Temperatur",
        "tab": "b132103a.17961",
        "disp": true,
        "width": "6",
        "collapse": true
    },
    {
        "id": "b132103a.17961",
        "type": "ui_tab",
        "z": "",
        "name": "Wohnzimmer",
        "icon": "dashboard",
        "order": 12,
        "disabled": false,
        "hidden": false
    }
]

License

MIT © Steffen Müller MIT © [Erdal Akkaya]