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 !
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)
(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:
Than we add the devices:
(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
Configuration of the MQTT - Import
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
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":""}]
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