All Projects → DaveMDS → node-red-contrib-tasmota

DaveMDS / node-red-contrib-tasmota

Licence: MIT license
Tasmota devices for NodeRed

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to node-red-contrib-tasmota

HomeApp
A little smart home app for Philips Hue and other devices
Stars: ✭ 54 (+237.5%)
Mutual labels:  home-automation, node-red, tasmota
Itead sonoff
Alternative firmware for Itead Sonoff switches, based on the MQTT protocol and a TLS connection
Stars: ✭ 115 (+618.75%)
Mutual labels:  home-automation, sonoff
Home Assistant Configuration
My Home Assistant Config. For more Information visit ->
Stars: ✭ 102 (+537.5%)
Mutual labels:  home-automation, sonoff
EspBuddy
Wrapper to easily upload (OTA or Serial), backup, batch query, monitor ESP8266 boards using Esptool.py, Espota.py and Platformio
Stars: ✭ 47 (+193.75%)
Mutual labels:  sonoff, tasmota
Sonoff Homeassistant
Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant
Stars: ✭ 354 (+2112.5%)
Mutual labels:  home-automation, sonoff
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+5025%)
Mutual labels:  home-automation, sonoff
TasmoManager
A beginner friendly desktop UI for Tasmota flashed devices.
Stars: ✭ 53 (+231.25%)
Mutual labels:  sonoff, tasmota
server
MyController 2.x server
Stars: ✭ 14 (-12.5%)
Mutual labels:  home-automation, tasmota
node-red-contrib-loxone
Connect the Loxone Miniserver to node-red via the Websocket API
Stars: ✭ 65 (+306.25%)
Mutual labels:  home-automation, node-red
zigbee
Database of Zigbee devices compatible with third party gateways: ZHA, deCONZ, Zigbee2MQTT, Tasmota, ZiGate, ioBroker,
Stars: ✭ 117 (+631.25%)
Mutual labels:  home-automation, tasmota
home-assistant-config
🏠 Home Assistant Configuration & Documentation for my smart home using Node-RED for automations. Press ⭐ for notification of updates.
Stars: ✭ 34 (+112.5%)
Mutual labels:  home-automation, node-red
Kmansonoff
Firmware for ESP8266 based itead Sonoff switches for use with HomeAssistant / mqtt
Stars: ✭ 282 (+1662.5%)
Mutual labels:  home-automation, sonoff
HomeAssistant
My Home Assistant Configuration
Stars: ✭ 71 (+343.75%)
Mutual labels:  home-automation, node-red
Tasmota Connect
Add your Tasmota devices as SmartThings devices
Stars: ✭ 51 (+218.75%)
Mutual labels:  home-automation, sonoff
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (+550%)
Mutual labels:  home-automation, sonoff
Home Assistant Config Fr
🏠Configuration de Home Assistant en français. 👨🏻‍💻 N'hésitez pas à ⭐ mon repo et à copier les bonnes idées ! 🇨🇵
Stars: ✭ 175 (+993.75%)
Mutual labels:  home-automation, sonoff
Tasmota
Alternative firmware for ESP8266 with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
Stars: ✭ 16,624 (+103800%)
Mutual labels:  sonoff, tasmota
alarmserver
IP Camera Alarm Server to MQTT
Stars: ✭ 73 (+356.25%)
Mutual labels:  home-automation, node-red
ioBroker.sonoff
Control Sonoff-Tasmota devices via ioBroker
Stars: ✭ 34 (+112.5%)
Mutual labels:  sonoff, tasmota
Tasmota-on-WEMOS
Install Tasmota software on a WeMos D1 mini (pro) with PlatformIO
Stars: ✭ 24 (+50%)
Mutual labels:  sonoff, tasmota

node-red-contrib-tasmota

License npm version node tasmota JavaScript Style Guide

npm total npm montly npm weekly

Run NPM tests

Tasmota devices integration for building automation inside Node-RED.

The goal of the project is to support a wide set of features exposed by the Tasmota firmware over MQTT.

Getting Started

This assumes you have Node-RED already installed and working, if you need to install Node-RED see here.

Install via Node-RED Manage Palette interface

node-red-contrib-tasmota

Install via npm

$ cd ~/.node-red
$ npm install node-red-contrib-tasmota
# then restart node-red

Available Nodes

Tasmota Switch node

Lets you control your tasmota switch, and of course give you messagges on state changes. The value is also requested on startup, so the state should always be accurate.

Support up to 8 channals devices, the node can be configured to send all the status changes to a single output (in this case the topic is used to distinguish channels) or can be configured to have N outputs (one for each channel).

Switch Flow1 Switch Flow2

Tasmota Sensor node

This node listen for telemetry from the tasmota device and fire a messagge with the JSON data received. On any input messagge fresh data is requested.

Outputs can be freely configured to extract only the data you are intrested in, you can configure as many output as you like, giving a JSONata expression for each output channel.

Sensor Flow1 Sensor Flow2

Tasmota Button node

This node receive button presses from a tasmota button device, it support all the tasmota button actions (TOGGLE, HOLD, SINGLE, DOUBLE, TRIPLE, etc...) and also multi buttons devices. The action is sent as a simple string on the node output. The node can be configured to send all press actions to a single output (in this case the topic is used to distinguish channels) or can be configured to have multiple outputs (one for each channel).

NOTE: Tasmota changed the Buttons/Switch functionality in firmware 9.1.0! This node support both formats, but it's raccomended to update to a recent Tasmota firmware.

See the detailed Tasmota documentation page for an in deep explanation. Also look at: SwitchMode, SetOption73, SetOption114, SetOption1, SetOption13, SetOption32 and setup the tasmota device to suite your needs.

Button Flow

Tasmota Light node

Lets you control your tasmota light bulb/controller, and of course give you messagges on state changes. The value is also requested on startup, so the output state is always accurate and full of all the available light info.

Light Flow1 Light Config

Turn on/off (simple mode)

To simply changes the light on / off state just send a msg.payload (without any topic) using one of the following values:

Topic Payload Values
boolean true / false
int 1 / 0
string 1 / 0 / on / off / true / false / toggle

Input (topic mode)

To change a single light property send a msg.payload with a specific topic:

Topic Payload Information
on same as simple mode Turn on / off / toggle the light
bright int Change the light brightness, range 0 to 100
ct int Color temperature, values (from warm to cold) can be expressed in Mired (500-153), Kelvin(2000-6500) or percent(0-100)
rgb int array or string Change the RGB colors, can be a string: "255,0,0" (for red) or an array of int: [255, 0, 0]
hsb int array or string Change the HSB values, like rgb can be a string or an array. Ranges are: 0-360, 0-100, 0-100
hex string Hexadecimal color notation: #CWWW, #RRGGBB, #RRGGBBWW or #RRGGBBCWWW (with or without the starting #)
color string Can be red, green, blue, orange, lightgreen, lightblue, amber, cyan, purple, yellow, pink, white, or +/- to switch to next/previous color

Input (object mode)

The same values of the topic-mode can be used all togheter in a single js object. To issue multiple commands at the same time just send a msg.payload without any topic like: {'on': true, 'bright': 25, 'color': 'red'} and so on, the same rules of the topic mode apply.

Input aliases

To provide a bit of compatibility with other famous nodes (like node-red-contrib-huemagic) a set of aliases is provided for the commands. Aliases can be used in both topic-mode and object-mode:

Command Aliases
on state, power
bright brightness, dimmer
ct colorTemp
hsb hsbColor
rgb rgbColor
hex hexColor

Node output(s)

The light node output can be configured to suite your need, there are two main modes:

  • Single output mode. In this mode the node will have a single output and will send a js object with the following msg.paylod properties:
Property Type information
on boolean true or false
bright int Brightness, range from 0 to 100
ct int Color temperature, can be configured to send values in Kelvin, Mired or percent
color Any Light colors, can be configured to be RGB [0-255,0-255,0-255], HSB [0-360,0-100,0-100], or Channels [0-100, 0-100, 0-100]
  • Otherwise you can configure the node to have from 2 to 4 outputs, providing a single value of the table above on each separate output. First output for on, second for bright, third for ct and fourth for color.

Tasmota Generic node

This is a generic Tasmota node, can send and receive any command/message to/from any Tasmota device.

With this node you can issue any command as you can do in the Tasmota console. Any received messages will be forwarded to the node output, with the topic and the payload untouched.

To issue a command just send a msg to the node using one of following syntaxes:

  1. string payload: CMD <param>
  2. JSON list payload: ["CMD <param>", "CMD <param>", ...]
  3. JSON object payload: {"CMD": "param", "CMD": "param", ...}

CMD can be any valid tasmota command and param is specific for each command. Refer to the official Tasmota documentation for the full commands reference.

Note that the object format does not guarantee the order of delivered messagges, thus if commands order is important you must use the list format.

Send custom Tasmota commands

All the nodes support an additional mode where you can send any Tasmota command or a list of commands to the device. This can be used for example to change device configuration or to send specific commands not supported by the node itself.

The payload format is the same as explained in the Generic node above, the only difference is that the message topic must be set to command and the commands result is not catched (If you need the command results you must use the Generic node).

Example:

To send the command BlinkCount 12 to a tasmota switch device, create a tasmota-swich node and set the device id(topic) to the correct value for your device. Then add an inject node and connect it. In the Inject node settings, set the topic to command. Set the payload type to string and the payload to BlinkCount 3.

To send a list of commands set the payload type to JSON. An example of a command list syntax is: ["BlinkCount 12", "BlinkTime 3", "Power blink"]

Authors

@DaveMDS

@josephdouce

Initially forked from contrib-sonoff-tasmota

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].