HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
kalteLoetstelle
New user
Posts: 3
Joined: 22 Jul 2018, 19:57

HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

#1 Post by kalteLoetstelle » 23 Jul 2018, 02:02

Hello everybody,

First of all, please excuse my modest English.
This is also my first attempt at publication.
Please bear with me i try to give the best.

Inspired by Bernd Schubart's cool project (http://www.bernd-schubart.de/homestatus ... -im-blick/ ) i wanted to present something comparable on the basis of "ESP Easy".
Many, many thanks to him !

Image

However, I wanted to make the logic more flexible, so it was outsourced to "Node-Red".
(Node-Red also provides a great web dashboard, but this is not discussed here.)

My existing environment, running on a RaspberryPi:
Smart Home System : OpenHAB 2 (with MQTT Binding)
Data Hub : MQTT Broker Mosquitto
Logic Level : Node-Red

Sensors and actuators:
- Some ESP8266 running ESP-Easy with temperature and humidity or PIR sensors
- some Sonoff RF switches and S20 Smart sockets (running Tasmota-Firmware)
- some HomeMatic window and door contacts
- some Homematic radiator thermostats (RaspberryMatic <=> OpenHAB <=> MQTT:) )


Hardware required for the project:
- 1 x Wemos D1 mini running ESP-Easy.
(https://www.banggood.com/de/Wemos-D1-Mi ... rehouse=CN)

- WS2812 individually controllable LEDs in the appropriate format:
Since the representation is to take place in a small 10 x 15 cm photo frame I used a very compact design:
- 1 x 3 Piece 8Bit WS2812 individually controllable RGB LEDs
(https://www.banggood.com/3Pcs-CJMCU-8-B ... 8097201802)
These are a little thicker than LED strips due to the fixed PCB, but the 8 LEDs are only approx. 0.6 mm apart.

Alternatively for larger projects / frames, WS2812 LEDs can be separated individually from the Strips:
- 1 mtr LED-Stripe WS2812, individually addressable and separable
(https://www.banggood.com/1M-Non-Waterpr ... 8097201802
The stripe is a bit thinner, but the distance between the LEDs is longer.

Very little electronics are required for the standard wiring of the WS2812-LDs:
- 1 x 1000uF Electrolyte Capacitor
(https://www.banggood.com/de/10pcs-35V-1 ... rehouse=CN)
und
- 1 x Resistor with approx. 470 Ohm
(https://www.ebay.de/itm/10-Stck-127-Wer ... cIFO9dDfaQ Select 470 Ohm!)

- 1 x USB power supply, power approx. 1-2A, depending on number of LEDs
(https://www.banggood.com/BlitzWolf-BW-S ... rehouse=CN)

- a picture frame with sufficient depth
(Unfortunately I couldn't find one, so the electronics had to stay outside)

Image

(Partially Affiliate-Links)

The wiring, also the assembly of the photo frame etc. is already shown very well in Bernd Schubart's project page:
http://www.bernd-schubart.de/homestatus ... -im-blick/

Today I would like to limit myself to the special features of the ESP-Easy and the logic in the Node-Red.

Here we go:

Settings in ESP-Easy:

First we need a connection to the MQTT-Server:
Image

Than we add the devices:
Image
(The SHT30 device is an add-on. It is not required by this project, but also provides me with additional temperature and humidity from the location of the display.)

Configuration of the NeoPixel LED's
Image

Configuration of the MQTT - Import
Image

The Ruleset breathes life into it:

Code: Select all

// Init after Boot (to show some reaction):
// When the ESP boots, Set some LEDs to yellow to visualize the boot process
 On System#Boot do    
  NeoPixel,1,25,25,0
  NeoPixel,8,25,25,0
  NeoPixel,9,25,25,0
  NeoPixel,16,25,25,0
  NeoPixel,17,25,25,0
  NeoPixel,24,25,25,0
endon

// Normal operation, responds to MQTT output

on MQTTled#ledfarbe3 do
   NeoPixel,[MQTTled#lednr],[MQTTled#ledfarbe1],[MQTTled#ledfarbe2],[MQTTled#ledfarbe3]
endon

// Two reasons to extinguish all LEDs:

// 1.for visualization that the connection to the MQTT was established after Rebooting
On MQTT#Connected do
  Publish sensor/%sysname%/data/ip,%ip%
  timerSet,2,1
endon

// 2. If MQTT transmits led color "999" clear all LEDs
on MQTTled#ledfarbe3=999 do
   timerSet,2,1
endon

// Switch off all LEDs:
On Rules#Timer=2 do  
  NeoPixel,1,0,0,0 
  NeoPixel,2,0,0,0 
  NeoPixel,3,0,0,0 
  NeoPixel,4,0,0,0 
  NeoPixel,5,0,0,0 
  NeoPixel,6,0,0,0 
  NeoPixel,7,0,0,0 
  NeoPixel,8,0,0,0 
  NeoPixel,9,0,0,0 
  NeoPixel,10,0,0,0 
  NeoPixel,11,0,0,0 
  NeoPixel,12,0,0,0 
  NeoPixel,13,0,0,0 
  NeoPixel,14,0,0,0 
  NeoPixel,15,0,0,0 
  NeoPixel,16,0,0,0 
  NeoPixel,17,0,0,0 
  NeoPixel,18,0,0,0 
  NeoPixel,19,0,0,0 
  NeoPixel,20,0,0,0 
  NeoPixel,21,0,0,0 
  NeoPixel,22,0,0,0 
  NeoPixel,23,0,0,0 
  NeoPixel,24,0,0,0 
endon
This completes the configuration of the ESP Easy.
ESP will subscribe to the MQTT and when the "MQTTled#ledfarbe3" changes, the values of the corresponding LED will be applied.

Node-Red Configuration

Importing the following string in Node-Red (via

Copy the following string to the clipboard and switch to Node-Red web interface.
Select "Import => From Clipboard".
The "Status display" flow should now be available.

Code: Select all

[{"id":"1b44ac3.a7edd54","type":"tab","label":"Statusanzeige","disabled":false,"info":""},{"id":"c57c11b3.9e6d1","type":"mqtt out","z":"1b44ac3.a7edd54","name":"","topic":"cmnd/HAB-Display-01/lednr","qos":"","retain":"","broker":"dce32f.488bccd","x":400,"y":120,"wires":[],"inputLabels":["01"]},{"id":"cc5642f6.78737","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"dashboard/OG/Bad/Fenster/status","qos":"2","broker":"dce32f.488bccd","x":180,"y":480,"wires":[["8f9d4934.67e248"]]},{"id":"79a96034.90b9e","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"dashboard/OG/Schlafzimmer/Fenster/status","qos":"2","broker":"dce32f.488bccd","x":210,"y":680,"wires":[["d992665a.0b676"]]},{"id":"e8fffe10.86a9f8","type":"mqtt out","z":"1b44ac3.a7edd54","name":"","topic":"cmnd/HAB-Display-01/ledfarbe1","qos":"","retain":"","broker":"dce32f.488bccd","x":410,"y":180,"wires":[],"inputLabels":["25"]},{"id":"a711c243.5dfb6","type":"mqtt out","z":"1b44ac3.a7edd54","name":"","topic":"cmnd/HAB-Display-01/ledfarbe2","qos":"","retain":"","broker":"dce32f.488bccd","x":410,"y":240,"wires":[],"inputLabels":["25"]},{"id":"b89cf195.e00a3","type":"mqtt out","z":"1b44ac3.a7edd54","name":"","topic":"cmnd/HAB-Display-01/ledfarbe3","qos":"","retain":"","broker":"dce32f.488bccd","x":410,"y":300,"wires":[],"inputLabels":["0"]},{"id":"26da408e.1ca188","type":"delay","z":"1b44ac3.a7edd54","name":"","pauseType":"delay","timeout":"150","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":170,"y":300,"wires":[["b89cf195.e00a3"]]},{"id":"8f9d4934.67e248","type":"switch","z":"1b44ac3.a7edd54","name":"Status aufloesen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Geoeffnet","vt":"str"},{"t":"cont","v":"Geschlossen","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":480,"wires":[["64d85ecf.0dd4f","9c74d0a4.f802b","833af2.bc14d51","a31a5c5a.457788"],["64d85ecf.0dd4f","25f81ff4.532af"]]},{"id":"64d85ecf.0dd4f","type":"change","z":"1b44ac3.a7edd54","name":"01","rules":[{"t":"set","p":"payload","pt":"msg","to":"01","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":480,"wires":[["194af723.10e5d9"]]},{"id":"9c74d0a4.f802b","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":520,"wires":[["de5ce43c.fa8d5"]]},{"id":"833af2.bc14d51","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":560,"wires":[["d2548136.469728"]]},{"id":"a31a5c5a.457788","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":600,"wires":[["3a01d1e5.5f3f36"]]},{"id":"17bbb165.e91b7f","type":"change","z":"1b44ac3.a7edd54","name":"ausschalten","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":360,"wires":[["85182ef6.419048"]]},{"id":"89948723.6f0ca","type":"link in","z":"1b44ac3.a7edd54","name":"Status_f1","links":["139e7300.6ce65d","1f333e87.bb7cf9","22e663de.0274e4","49e7af15.7e5ca8","7efd515b.e8d6e8","85182ef6.419048","d4049dba.bfd5c","de5ce43c.fa8d5","f3317a7c.ee5ee"],"x":55,"y":180,"wires":[["204d2ae4.b49aee"]]},{"id":"140e6316.49eded","type":"link in","z":"1b44ac3.a7edd54","name":"Status_nr","links":["124d694c.db58f7","194af723.10e5d9","37617cfe.1f78ec","572f5472.d9299c","661d39e9.273208","7cc243f.a3a923c","890d0005.6073e","91d65a12.9caec"],"x":55,"y":120,"wires":[["82162f83.a4a7f"]]},{"id":"d2548136.469728","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":560,"wires":[]},{"id":"6845c9f3.89aee","type":"link in","z":"1b44ac3.a7edd54","name":"Status_f3","links":["28800850.490d08","3a01d1e5.5f3f36","3e03ea7.962bc96","79dae23f.4d53f4","83474da9.fe1898","84ee00a6.f472d8","85182ef6.419048","b8d97038.7c5af","f3b1b844.f9034"],"x":55,"y":300,"wires":[["26da408e.1ca188"]]},{"id":"1243002a.712d18","type":"link in","z":"1b44ac3.a7edd54","name":"Status_f2","links":["3ba0de53.e901ba","85182ef6.419048","9aaaf76e.26ab38","b4bb315e.e0642","d2548136.469728","d3fe9759.1d43","ddb391c8.611c4","df045356.f88b68","e2342ae7.fbe358"],"x":55,"y":240,"wires":[["72949674.b95ea"]]},{"id":"85182ef6.419048","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["1243002a.712d18","6845c9f3.89aee","89948723.6f0ca"],"x":515,"y":360,"wires":[]},{"id":"3a01d1e5.5f3f36","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":600,"wires":[]},{"id":"de5ce43c.fa8d5","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":520,"wires":[]},{"id":"194af723.10e5d9","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":480,"wires":[]},{"id":"22e2c799.7926f8","type":"link in","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["142c7eb0.bf1839","213d655d.2ab822","25f81ff4.532af","7f46a2bf.56bf24","8c3c6ea3.dbc42","bb09f1bf.a53bf","fa03f669.5025d8","faac16f8.9563b"],"x":55,"y":360,"wires":[["39eb15a1.83101a"]]},{"id":"25f81ff4.532af","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":600,"wires":[]},{"id":"d992665a.0b676","type":"switch","z":"1b44ac3.a7edd54","name":"Status aufloesen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"Geoeffnet","vt":"str"},{"t":"cont","v":"Geschlossen","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":680,"wires":[["31a7bbf0.f3d15c","8cb35361.34692","66114cb6.888de4","a8b3b3e2.141ee8"],["31a7bbf0.f3d15c","142c7eb0.bf1839"]]},{"id":"31a7bbf0.f3d15c","type":"change","z":"1b44ac3.a7edd54","name":"03","rules":[{"t":"set","p":"payload","pt":"msg","to":"03","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":680,"wires":[["890d0005.6073e"]]},{"id":"8cb35361.34692","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":720,"wires":[["1f333e87.bb7cf9"]]},{"id":"66114cb6.888de4","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":760,"wires":[["3ba0de53.e901ba"]]},{"id":"a8b3b3e2.141ee8","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":800,"wires":[["83474da9.fe1898"]]},{"id":"3ba0de53.e901ba","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":760,"wires":[]},{"id":"83474da9.fe1898","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":800,"wires":[]},{"id":"1f333e87.bb7cf9","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":720,"wires":[]},{"id":"890d0005.6073e","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":680,"wires":[]},{"id":"142c7eb0.bf1839","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":800,"wires":[]},{"id":"4328576c.647d08","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"stat/na/na/Steckdose/01/POWER","qos":"2","broker":"dce32f.488bccd","x":170,"y":1100,"wires":[["bc61768a.2883b8"]]},{"id":"bc61768a.2883b8","type":"switch","z":"1b44ac3.a7edd54","name":"Status aufloesen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":1100,"wires":[["ac1d5a41.745c9","b3baabf6.054e8","6578d3da.fd896c","b5a770e7.ff168"],["ac1d5a41.745c9","8c3c6ea3.dbc42"]]},{"id":"ac1d5a41.745c9","type":"change","z":"1b44ac3.a7edd54","name":"11","rules":[{"t":"set","p":"payload","pt":"msg","to":"11","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1100,"wires":[["661d39e9.273208"]]},{"id":"b3baabf6.054e8","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1140,"wires":[["7efd515b.e8d6e8"]]},{"id":"6578d3da.fd896c","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1180,"wires":[["df045356.f88b68"]]},{"id":"b5a770e7.ff168","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1220,"wires":[["f3b1b844.f9034"]]},{"id":"df045356.f88b68","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":1180,"wires":[]},{"id":"f3b1b844.f9034","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":1220,"wires":[]},{"id":"7efd515b.e8d6e8","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":1140,"wires":[]},{"id":"661d39e9.273208","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":1100,"wires":[]},{"id":"8c3c6ea3.dbc42","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":1220,"wires":[]},{"id":"2a87360.33539ca","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"stat/na/na/Steckdose/02/POWER","qos":"2","broker":"dce32f.488bccd","x":170,"y":1280,"wires":[["42852e75.322ce8"]]},{"id":"42852e75.322ce8","type":"switch","z":"1b44ac3.a7edd54","name":"Status aufloesen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":1280,"wires":[["f3df452.4673a38","8fc2fd85.6001d8","785cba56.ceb6d4","290dfa9f.a47586"],["f3df452.4673a38","213d655d.2ab822"]]},{"id":"f3df452.4673a38","type":"change","z":"1b44ac3.a7edd54","name":"10","rules":[{"t":"set","p":"payload","pt":"msg","to":"10","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1280,"wires":[["572f5472.d9299c"]]},{"id":"8fc2fd85.6001d8","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1320,"wires":[["f3317a7c.ee5ee"]]},{"id":"785cba56.ceb6d4","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1360,"wires":[["d3fe9759.1d43"]]},{"id":"290dfa9f.a47586","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1400,"wires":[["79dae23f.4d53f4"]]},{"id":"d3fe9759.1d43","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":1360,"wires":[]},{"id":"79dae23f.4d53f4","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":1400,"wires":[]},{"id":"f3317a7c.ee5ee","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":1320,"wires":[]},{"id":"572f5472.d9299c","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":1280,"wires":[]},{"id":"213d655d.2ab822","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":1400,"wires":[]},{"id":"8f09d6c.5f545a8","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"stat/na/na/Steckdose/03/POWER","qos":"2","broker":"dce32f.488bccd","x":170,"y":1480,"wires":[["791ac5a1.317cdc"]]},{"id":"791ac5a1.317cdc","type":"switch","z":"1b44ac3.a7edd54","name":"Status aufloesen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":1480,"wires":[["b3c95132.f035b","e9334a56.3b7bd8","8b0659bb.86a44","492f3d0f.9faabc"],["b3c95132.f035b","fa03f669.5025d8"]]},{"id":"b3c95132.f035b","type":"change","z":"1b44ac3.a7edd54","name":"09","rules":[{"t":"set","p":"payload","pt":"msg","to":"09","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1480,"wires":[["37617cfe.1f78ec"]]},{"id":"e9334a56.3b7bd8","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1520,"wires":[["d4049dba.bfd5c"]]},{"id":"8b0659bb.86a44","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1560,"wires":[["9aaaf76e.26ab38"]]},{"id":"492f3d0f.9faabc","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1600,"wires":[["b8d97038.7c5af"]]},{"id":"9aaaf76e.26ab38","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":1560,"wires":[]},{"id":"b8d97038.7c5af","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":1600,"wires":[]},{"id":"d4049dba.bfd5c","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":1520,"wires":[]},{"id":"37617cfe.1f78ec","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":1480,"wires":[]},{"id":"fa03f669.5025d8","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":1600,"wires":[]},{"id":"2981258d.996d82","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"stat/OG/Bad/Licht/01/POWER","qos":"2","broker":"dce32f.488bccd","x":160,"y":900,"wires":[["b5ad0838.e3c218"]]},{"id":"b5ad0838.e3c218","type":"switch","z":"1b44ac3.a7edd54","name":"Status aufloesen","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ON","vt":"str"},{"t":"cont","v":"OFF","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":900,"wires":[["52408481.50e8a4","7884754b.187794","e7fe5407.72eb58","d478b611.048608"],["52408481.50e8a4","bb09f1bf.a53bf"]]},{"id":"52408481.50e8a4","type":"change","z":"1b44ac3.a7edd54","name":"16","rules":[{"t":"set","p":"payload","pt":"msg","to":"16","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":900,"wires":[["91d65a12.9caec"]]},{"id":"7884754b.187794","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":940,"wires":[["49e7af15.7e5ca8"]]},{"id":"e7fe5407.72eb58","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":980,"wires":[["ddb391c8.611c4"]]},{"id":"d478b611.048608","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1020,"wires":[["3e03ea7.962bc96"]]},{"id":"ddb391c8.611c4","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":980,"wires":[]},{"id":"3e03ea7.962bc96","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":1020,"wires":[]},{"id":"49e7af15.7e5ca8","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":940,"wires":[]},{"id":"91d65a12.9caec","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":900,"wires":[]},{"id":"bb09f1bf.a53bf","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":1020,"wires":[]},{"id":"3dffb80e.1b3368","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"sensor/+/data/spannung","qos":"2","broker":"dce32f.488bccd","x":150,"y":1860,"wires":[["69eb948d.9b8cac"]]},{"id":"69eb948d.9b8cac","type":"switch","z":"1b44ac3.a7edd54","name":"Spannung < 2,6 Volt","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"2.6","vt":"num"},{"t":"gt","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":500,"y":1860,"wires":[["2e35dead.17aef2","7c1d1a74.25799c","b6f9f6d4.4d337","8670928.96385f"],["2e35dead.17aef2","faac16f8.9563b"]]},{"id":"2e35dead.17aef2","type":"change","z":"1b44ac3.a7edd54","name":"24","rules":[{"t":"set","p":"payload","pt":"msg","to":"24","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1860,"wires":[["7cc243f.a3a923c"]]},{"id":"7c1d1a74.25799c","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1940,"wires":[["b4bb315e.e0642"]]},{"id":"b4bb315e.e0642","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":1940,"wires":[]},{"id":"84ee00a6.f472d8","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":1980,"wires":[]},{"id":"22e663de.0274e4","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":1900,"wires":[]},{"id":"7cc243f.a3a923c","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":1860,"wires":[]},{"id":"faac16f8.9563b","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":1960,"wires":[]},{"id":"377a9fad.dc4088","type":"inject","z":"1b44ac3.a7edd54","name":"","topic":"","payload":"6","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":1960,"wires":[["69eb948d.9b8cac"]]},{"id":"82c5e128.fad62","type":"inject","z":"1b44ac3.a7edd54","name":"","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":1920,"wires":[["69eb948d.9b8cac"]]},{"id":"72949674.b95ea","type":"delay","z":"1b44ac3.a7edd54","name":"","pauseType":"delay","timeout":"100","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":170,"y":240,"wires":[["a711c243.5dfb6"]]},{"id":"82162f83.a4a7f","type":"delay","z":"1b44ac3.a7edd54","name":"","pauseType":"delay","timeout":"50","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":170,"y":120,"wires":[["c57c11b3.9e6d1"]]},{"id":"204d2ae4.b49aee","type":"delay","z":"1b44ac3.a7edd54","name":"","pauseType":"delay","timeout":"75","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":170,"y":180,"wires":[["e8fffe10.86a9f8"]]},{"id":"6df39906.5ce2","type":"comment","z":"1b44ac3.a7edd54","name":"(25,0,0))=Rot (0,25,0))=Grün (0,0,25))=Blau (25,25,0))=Gelb (0,25,25))=Türkis (25,25,25))=Weiß","info":"\n ","x":380,"y":420,"wires":[]},{"id":"b44198a4.4ee5a","type":"mqtt in","z":"1b44ac3.a7edd54","name":"","topic":"dashboard/wetter/temperatur","qos":"2","broker":"dce32f.488bccd","x":160,"y":1680,"wires":[["50ad94d6.557bdc"]]},{"id":"50ad94d6.557bdc","type":"switch","z":"1b44ac3.a7edd54","name":"Frostwarn. < 4Grad","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"4","vt":"num"},{"t":"gt","v":"4","vt":"num"}],"checkall":"true","repair":false,"outputs":2,"x":490,"y":1680,"wires":[["e896b4f0.da43f8","de39bc3a.dc0df","7e139e40.42edf","7f2abb79.f91a74"],["e896b4f0.da43f8","7f46a2bf.56bf24"]]},{"id":"e896b4f0.da43f8","type":"change","z":"1b44ac3.a7edd54","name":"17","rules":[{"t":"set","p":"payload","pt":"msg","to":"17","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1680,"wires":[["124d694c.db58f7"]]},{"id":"de39bc3a.dc0df","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1720,"wires":[["139e7300.6ce65d"]]},{"id":"7e139e40.42edf","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1760,"wires":[["e2342ae7.fbe358"]]},{"id":"7f2abb79.f91a74","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1800,"wires":[["28800850.490d08"]]},{"id":"e2342ae7.fbe358","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f2","links":["1243002a.712d18"],"x":895,"y":1760,"wires":[]},{"id":"28800850.490d08","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f3","links":["6845c9f3.89aee"],"x":895,"y":1800,"wires":[]},{"id":"139e7300.6ce65d","type":"link out","z":"1b44ac3.a7edd54","name":"Status_f1","links":["89948723.6f0ca"],"x":895,"y":1720,"wires":[]},{"id":"124d694c.db58f7","type":"link out","z":"1b44ac3.a7edd54","name":"Status_nr","links":["140e6316.49eded"],"x":895,"y":1680,"wires":[]},{"id":"7f46a2bf.56bf24","type":"link out","z":"1b44ac3.a7edd54","name":"Status_ausschalten","links":["22e2c799.7926f8"],"x":635,"y":1780,"wires":[]},{"id":"c4edd548.39539","type":"inject","z":"1b44ac3.a7edd54","name":"","topic":"","payload":"6","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":1780,"wires":[["50ad94d6.557bdc"]]},{"id":"e4d8e4da.641a5","type":"inject","z":"1b44ac3.a7edd54","name":"","topic":"","payload":"2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":1740,"wires":[["50ad94d6.557bdc"]]},{"id":"b6f9f6d4.4d337","type":"change","z":"1b44ac3.a7edd54","name":"0","rules":[{"t":"set","p":"payload","pt":"msg","to":"0","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1980,"wires":[["84ee00a6.f472d8"]]},{"id":"8670928.96385f","type":"change","z":"1b44ac3.a7edd54","name":"25","rules":[{"t":"set","p":"payload","pt":"msg","to":"25","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":790,"y":1900,"wires":[["22e663de.0274e4"]]},{"id":"8411920c.70453","type":"comment","z":"1b44ac3.a7edd54","name":"<<= for manuell Testing or reset the LED","info":"\n","x":420,"y":1940,"wires":[]},{"id":"9333d30c.a10a8","type":"comment","z":"1b44ac3.a7edd54","name":"<<= for manuell Testing or reset the LED","info":"\n","x":420,"y":1760,"wires":[]},{"id":"6679f0eb.01371","type":"inject","z":"1b44ac3.a7edd54","name":"","topic":"","payload":"OFF","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":1580,"wires":[["791ac5a1.317cdc"]]},{"id":"eaf83077.f0dbf","type":"inject","z":"1b44ac3.a7edd54","name":"","topic":"","payload":"ON","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":1540,"wires":[["791ac5a1.317cdc"]]},{"id":"d7790491.f62768","type":"comment","z":"1b44ac3.a7edd54","name":"<<= for manuell Testing or reset the LED","info":"\n","x":400,"y":1560,"wires":[]},{"id":"967cd867.6b4e38","type":"comment","z":"1b44ac3.a7edd54","name":"LED-Nummer","info":"\n","x":1030,"y":480,"wires":[]},{"id":"f1cd1c7d.d805b","type":"comment","z":"1b44ac3.a7edd54","name":"Farbe 1","info":"\n","x":1010,"y":520,"wires":[]},{"id":"a0497043.0451","type":"comment","z":"1b44ac3.a7edd54","name":"Farbe 2","info":"\n","x":1010,"y":560,"wires":[]},{"id":"e5e65fcc.1538c8","type":"comment","z":"1b44ac3.a7edd54","name":"Farbe 3","info":"\n","x":1010,"y":600,"wires":[]},{"id":"39eb15a1.83101a","type":"delay","z":"1b44ac3.a7edd54","name":"","pauseType":"delay","timeout":"60","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":170,"y":360,"wires":[["17bbb165.e91b7f"]]},{"id":"dce32f.488bccd","type":"mqtt-broker","z":"","name":"Mosquitto","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"willTopic":"","willQos":"0","willPayload":"","birthTopic":"","birthQos":"0","birthPayload":""}]
After the import, Node-red should show the new flow "Statusanzeige".
Image
Using the examples, the configuration must now be adapted to your own values, names, sensors, actuators, etc.

Have Fun !

I hope to give something back to the community with this.
Comments and questions are expressly welcome, I will try to answer as soon as possible.

Kind regards
Andrew

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

#2 Post by grovkillen » 23 Jul 2018, 06:46

Thank you very much for your post. Looking really great and I might do one for myself. :)
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

pib20
New user
Posts: 1
Joined: 08 Dec 2018, 07:39

Re: HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

#3 Post by pib20 » 08 Dec 2018, 07:58

Hello,

thank you for this great tutorial.

I'm a beginner

I started and tried to do the same in openhab. It's ok for espeasy and the rules but I can not send commands from openhab. Can you add an example of a "openhab items" so that I understand the configuration?

example: Switch Neopixel1 {mqtt = "> [broker: xxxxxx


thanks again

kalteLoetstelle
New user
Posts: 3
Joined: 22 Jul 2018, 19:57

Re: HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

#4 Post by kalteLoetstelle » 08 Dec 2018, 20:25

Hi,

So far "openhab" is not involved,
except that openhab items are queried from Node-Red and their status is written to the MQTT.

In the following way:

Code: Select all

[
    {
        "id": "c0d1ba5.4fd4e48",
        "type": "openhab2-in",
        "z": "cc507603.66745",
        "name": "Fenster Bad",
        "controller": "14abb523.3da733",
        "itemname": "OGBadFenster_1STATE",
        "x": 90,
        "y": 100,
        "wires": [
            [
                "18553ec3.eaf471"
            ],
            []
        ]
    },
    {
        "id": "45274564.5e4f14",
        "type": "mqtt out",
        "z": "cc507603.66745",
        "name": "",
        "topic": "dashboard/OG/Bad/Fenster/status",
        "qos": "1",
        "retain": "true",
        "broker": "dce32f.488bccd",
        "x": 720,
        "y": 100,
        "wires": []
    },
    {
        "id": "6c6507f.de0cbf8",
        "type": "ui_text",
        "z": "cc507603.66745",
        "group": "f333c36b.a4f018",
        "order": 1,
        "width": 0,
        "height": 0,
        "name": "Fenster Bad",
        "label": "Fenster Bad",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 650,
        "y": 160,
        "wires": []
    },
    {
        "id": "18553ec3.eaf471",
        "type": "string",
        "z": "cc507603.66745",
        "name": "OPEN = GEOEFFNET",
        "methods": [
            {
                "name": "replaceAll",
                "params": [
                    {
                        "type": "str",
                        "value": "OPEN"
                    },
                    {
                        "type": "str",
                        "value": "Geoeffnet"
                    }
                ]
            },
            {
                "name": "replaceAll",
                "params": [
                    {
                        "type": "str",
                        "value": "CLOSED"
                    },
                    {
                        "type": "str",
                        "value": "Geschlossen"
                    }
                ]
            },
            {
                "name": "append",
                "params": [
                    {
                        "type": "str",
                        "value": ""
                    }
                ]
            }
        ],
        "prop": "payload",
        "propout": "payload",
        "object": "msg",
        "objectout": "msg",
        "x": 360,
        "y": 100,
        "wires": [
            [
                "45274564.5e4f14",
                "6c6507f.de0cbf8"
            ]
        ]
    },
    {
        "id": "14abb523.3da733",
        "type": "openhab2-controller",
        "z": "",
        "name": "Openhabianpi",
        "protocol": "http",
        "host": "localhost",
        "port": "8080",
        "path": "",
        "username": "openhabian",
        "password": "mypassword:)"
    },
    {
        "id": "dce32f.488bccd",
        "type": "mqtt-broker",
        "z": "",
        "name": "Mosquitto",
        "broker": "localhost",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "f333c36b.a4f018",
        "type": "ui_group",
        "z": "",
        "name": "Öffnungs-Stati",
        "tab": "6907a828.2dfd3",
        "order": 5,
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "6907a828.2dfd3",
        "type": "ui_tab",
        "z": "",
        "name": "Home Sweet Home",
        "icon": "dashboard",
        "order": 1
    }
]
TgeP0JW[1].png
TgeP0JW[1].png (9.6 KiB) Viewed 14925 times
The status is then read from the MQTT and analyzed as described above to switch the LEDs.

i think its posible to do something like this:

Code: Select all

/* display_test.items */
Switch Status_01 	  "Status_01"  (LR,gLight)    { mqtt=">[mosquitto:stat/na/na/status/01/status:command:*:default], <[mosquitto:stat/na/na/status/01/status:state:default]" }
Switch Status_02 	  "Status_02"  (LR,gLight)    { mqtt=">[mosquitto:stat/na/na/status/02/status:command:*:default], <[mosquitto:stat/na/na/status/02/status:state:default]" }
Switch Status_03 	  "Status_03"  (LR,gLight)    { mqtt=">[mosquitto:stat/na/na/status/03/status:command:*:default], <[mosquitto:stat/na/na/status/03/status:state:default]" }
Switch Status_04 	  "Status_04"  (LR,gLight)    { mqtt=">[mosquitto:stat/na/na/status/04/status:command:*:default], <[mosquitto:stat/na/na/status/04/status:state:default]" }

Code: Select all

sitemap display_test label="Display Test" {
    
    Frame label="Stati" {
        Switch item=Status_01
        Switch item=Status_02
        Switch item=Status_03
        Switch item=Status_04
    }
}
You get an basic-UI Sitemap like this:
MAWH7A2[1].png
MAWH7A2[1].png (12.24 KiB) Viewed 14925 times
But .. Why don't use the Noed-Red Dashboard ?

The original Node-Red Flow can easily be extended by a few Dashboard Nodes and displayed as a Node-Red Dashboard.

kalteLoetstelle
New user
Posts: 3
Joined: 22 Jul 2018, 19:57

Re: HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

#5 Post by kalteLoetstelle » 08 Dec 2018, 20:27

Status display as Node-Red Dashboard:

Code: Select all

[
    {
        "id": "4df45eb4.6d44",
        "type": "mqtt in",
        "z": "735ff8d8.b217f",
        "name": "",
        "topic": "stat/na/na/Steckdose/01/POWER",
        "qos": "2",
        "broker": "dce32f.488bccd",
        "x": 180,
        "y": 1780,
        "wires": [
            [
                "621262d4.57a874",
                "49119850.543d68"
            ]
        ]
    },
    {
        "id": "49119850.543d68",
        "type": "switch",
        "z": "735ff8d8.b217f",
        "name": "Status aufloesen",
        "property": "payload",
        "propertyType": "msg",
        "rules": [
            {
                "t": "cont",
                "v": "ON",
                "vt": "str"
            },
            {
                "t": "cont",
                "v": "OFF",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 2,
        "x": 490,
        "y": 1780,
        "wires": [
            [
                "5ff38525.38012c",
                "b0c71701.2b978",
                "e2985af3.ddab4",
                "b10bd0e2.6d0658"
            ],
            [
                "5ff38525.38012c",
                "fabcf87b.3f3738"
            ]
        ]
    },
    {
        "id": "5ff38525.38012c",
        "type": "change",
        "z": "735ff8d8.b217f",
        "name": "11",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "11",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 790,
        "y": 1780,
        "wires": [
            [
                "6ef605ff.4dd7fc"
            ]
        ]
    },
    {
        "id": "b0c71701.2b978",
        "type": "change",
        "z": "735ff8d8.b217f",
        "name": "25",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "25",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 790,
        "y": 1820,
        "wires": [
            [
                "b00dbf85.8b104"
            ]
        ]
    },
    {
        "id": "e2985af3.ddab4",
        "type": "change",
        "z": "735ff8d8.b217f",
        "name": "25",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "25",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 790,
        "y": 1860,
        "wires": [
            [
                "f37320e2.0bca88"
            ]
        ]
    },
    {
        "id": "b10bd0e2.6d0658",
        "type": "change",
        "z": "735ff8d8.b217f",
        "name": "0",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "0",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 790,
        "y": 1900,
        "wires": [
            [
                "d856d7cd.991dd"
            ]
        ]
    },
    {
        "id": "f37320e2.0bca88",
        "type": "link out",
        "z": "735ff8d8.b217f",
        "name": "Status_f2",
        "links": [
            "76eeaab1.11786c"
        ],
        "x": 895,
        "y": 1860,
        "wires": []
    },
    {
        "id": "d856d7cd.991dd",
        "type": "link out",
        "z": "735ff8d8.b217f",
        "name": "Status_f3",
        "links": [
            "e326a521.4af12"
        ],
        "x": 895,
        "y": 1900,
        "wires": []
    },
    {
        "id": "b00dbf85.8b104",
        "type": "link out",
        "z": "735ff8d8.b217f",
        "name": "Status_f1",
        "links": [
            "a57f55d.046ad28"
        ],
        "x": 895,
        "y": 1820,
        "wires": []
    },
    {
        "id": "6ef605ff.4dd7fc",
        "type": "link out",
        "z": "735ff8d8.b217f",
        "name": "Status_nr",
        "links": [
            "d5bcc18e.b91178"
        ],
        "x": 895,
        "y": 1780,
        "wires": []
    },
    {
        "id": "fabcf87b.3f3738",
        "type": "link out",
        "z": "735ff8d8.b217f",
        "name": "Status_ausschalten",
        "links": [
            "3e8ad630.ba4642"
        ],
        "x": 635,
        "y": 1900,
        "wires": []
    },
    {
        "id": "621262d4.57a874",
        "type": "ui_text",
        "z": "735ff8d8.b217f",
        "group": "ccb8205a.575ad",
        "order": 0,
        "width": 0,
        "height": 0,
        "name": "",
        "label": "Steckdose 1",
        "format": "{{msg.payload}}",
        "layout": "row-spread",
        "x": 490,
        "y": 1740,
        "wires": []
    },
    {
        "id": "dce32f.488bccd",
        "type": "mqtt-broker",
        "z": "",
        "name": "Mosquitto",
        "broker": "localhost",
        "port": "1883",
        "clientid": "",
        "usetls": false,
        "compatmode": true,
        "keepalive": "60",
        "cleansession": true,
        "birthTopic": "",
        "birthQos": "0",
        "birthPayload": "",
        "willTopic": "",
        "willQos": "0",
        "willPayload": ""
    },
    {
        "id": "ccb8205a.575ad",
        "type": "ui_group",
        "z": "",
        "name": "Schalter",
        "tab": "a698b417.0d4fd8",
        "disp": true,
        "width": "6",
        "collapse": false
    },
    {
        "id": "a698b417.0d4fd8",
        "type": "ui_tab",
        "z": "",
        "name": "Display_Test",
        "icon": "dashboard"
    }
]

whatsupskip
Normal user
Posts: 125
Joined: 28 Feb 2018, 07:40
Location: Melbourne, Australia

Re: HomeStatusDisplay - based on ESP Easy & MQTT & Node-Red

#6 Post by whatsupskip » 07 Sep 2020, 00:55

Thanks for this post. There are some really good ideas in here.

I found these little NeoPixel strips that might make a good display indicator. You might want to use every second LED though.

https://www.aliexpress.com/item/1005001299496351.html
Friends with kangaroos and some time koala rescuer.

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests