Lanbon L8 (switch with display) with OpenHASP

Last year @fvanroie posted openHASP: An MQTT driven Touchscreen / Scene controller.
So I bought a Lanbon L8 - openHASP display, flashed it with OpenHSP (no soldering required) and started to play with it.
Today I use it as a switch for one wired light (three are possible) and as status display of all of my door/windows sensors (either Aqara DW sensor, Shelly DW2 and one EnOcean door switch from Hoppe).
LED colors and other elements like icons on the display can be changed via MQTT and touch events are also announced via MQTT.

Initial Icons, buttons, text and LEDs are created by a JSONL file (one valid JSON sequence per Line), which is transferred to the Lanbon via its web interface or also created via MQTT.

Following picture is the latest design with a weather symbol, based on the Openweather node instead of a lock icon. (screenshot of the webinterface)
"Alles aus!" turns off all smart lights and switches in the ground floor. The press of the button initiate a MQTT publish process, which is then handled by Node-RED.
Lanbon8-1

photo of the installed Lanbon L8 with a former design (this one made in Winter!)

The Lanbon L8 sits next to my front door, which has also an Aqara DW sensor. So each time, I open my front door, the Lanbon L8 will display a mood light around all borders.
Green = all doors and windows are closed (display off).
Yellow = at least one window tilted (display on, one or more LEDs yellow, ignore the red LED of the front door!)
Red = at least one window or door open (display on, one or more LEDs red)
Blue = yet no data from the sensor

picture of the original firmware (never played with it):

More to come!

1 Like

This is the shortened JSONL file:

Page 1 is for the design above, page 11 is a single big button (explanation below).
"All pages" defines the top line and the navigation bar in the bottom line.

text like "\uE957" is an icon defined in Fonts - openHASP

I wanted to raise the WAF (Woman acceptance factor), so I created another page (11) with one big button, which is displayed for 2 seconds after touching the blank display and then revert to page 1. So anyone who taps on the blank display can just tap another time on the big button to turn on or off the light.

Lanbon8-Keller

{"page":1,"comment":"----------------------------"}

{"id":99,"obj":"label","x":10,"y":5,"w":220,"h":30,"text":"BSB","align":1,"padh":50}
{"id":1,"obj":"btn","x":10,"y":45,"w":100,"h":55,"toggle":true,"text":"\uE335 K","text_color01":"yellow","text_font":32,"align":1}

{"id":3,"obj":"btn","x":120,"y":45,"w":100,"h":55,"toggle":false,"text":"\uE957","text_font":32}
{"id":8,"obj":"btn","x":10,"y":120,"w":210,"h":50,"toggle":false,"text":"Alles aus!","text_font":32}

{"id":30,"obj":"label","x":20,"y":192,"w":22,"h":20,"text":"DG:"}
{"id":31,"obj":"led","x":55,"y":195,"w":15,"h":15}
{"id":32,"obj":"led","x":85,"y":195,"w":15,"h":15}
{"id":20,"obj":"label","x":20,"y":217,"w":22,"h":20,"text":"OG:"}
{"id":21,"obj":"led","x":55,"y":220,"w":15,"h":15}
{"id":22,"obj":"led","x":85,"y":220,"w":15,"h":15}
{"id":23,"obj":"led","x":115,"y":220,"w":15,"h":15}
{"id":24,"obj":"led","x":145,"y":220,"w":15,"h":15}
{"id":10,"obj":"label","x":20,"y":242,"w":22,"h":20,"text":"EG:"}
{"id":11,"obj":"led","x":55,"y":245,"w":15,"h":15}
{"id":12,"obj":"led","x":85,"y":245,"w":15,"h":15}
{"id":13,"obj":"led","x":115,"y":245,"w":15,"h":15}
{"id":14,"obj":"led","x":145,"y":245,"w":15,"h":15}
{"id":50,"obj":"obj","x":20,"y":190,"w":140,"h":80,"click":1,"opacity":0,"hidden":false}


{"page":11,"comment":"------------------------------"}

{"id":1,"obj":"btn","x":10,"y":40,"w":220,"h":240,"toggle":true,"text":"\uE335 Keller","text_color01":"yellow","text_font":32,"align":1}

{"comment":"---------- All Pages ----------"}
{"page":0,"id":1,"obj":"obj","swipe":1,"x":0,"y":0,"h":30,"w":240,"opacity":0,"comment":"swipe-area-at-top"}
{"page":0,"id":2,"obj":"label","x":10,"y":5,"h":30,"w":12,"text":"\uE150","align":1,"text_color":"#FFFFFF"}

{"page":0,"id":3,"obj":"label","x":160,"y":5,"h":30,"w":10,"text":"\uE50F","align":1,"text_color":"#FFFFFF"}
{"page":0,"id":4,"obj":"label","x":160,"y":5,"h":30,"w":45,"text":"0.0","align":2,"text_color":"#FFFFFF"}
{"page":0,"id":5,"obj":"label","x":220,"y":5,"h":30,"w":45,"text":"C","align":0,"text_color":"#FFFFFF"}
{"page":0,"id":10,"obj":"label","x":210,"y":2,"h":30,"w":45,"text":"o","font":12,"align":0,"text_color":"#FFFFFF"}
{"page":0,"id":6,"obj":"label","x":27,"y":5,"h":30,"w":62,"text":"00:00","align":0,"text_color":"#FFFFFF"}

{"page":0,"id":7,"obj":"btn","action":"prev","x":0,"y":290,"w":79,"h":32,"text":"\uE141","text_color":"#FFFFFF","radius":0,"border_side":0,"text_font":32}
{"page":0,"id":8,"obj":"btn","action":"back","x":80,"y":290,"w":80,"h":32,"text":"\uE2DC","text_color":"#FFFFFF","radius":0,"border_side":0,"text_font":24}
{"page":0,"id":9,"obj":"btn","action":"next","x":161,"y":290,"w":79,"h":32,"text":"\uE142","text_color":"#FFFFFF","radius":0,"border_side":0,"text_font":32}

{"comment":"---------- Limit page prev/next between 1 and x ----------"}
{"page":1,"id":0,"prev":11}
{"page":11,"id":0,"next":1}
1 Like

To send data to the display, you use MQTT Out nodes.

To fill the current temperature to the top line, which is id 4 on page 0 (=all pages) you send the current temperature in the payload to the MQTT out Node with topic hasp/plate1/command/p0b4.text, same with the time to hasp/plate1/command/p0b6.text.

[{"id":"780aa8e3dc647228","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/p0b4.text","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":790,"y":120,"wires":[]},{"id":"723dff211a826d58","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"25","crontab":"","once":true,"onceDelay":"6","topic":"","payload":"","payloadType":"date","x":490,"y":200,"wires":[["41691329f159374c"]]},{"id":"85e4ee14683c874a","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/p0b6.text","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":990,"y":200,"wires":[]},{"id":"41691329f159374c","type":"moment","z":"27d6323ed6b7a6c0","name":"","topic":"","input":"","inputType":"msg","inTz":"Europe/Berlin","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm","locale":"de-DE","output":"","outputType":"msg","outTz":"Europe/Berlin","x":720,"y":200,"wires":[["85e4ee14683c874a"]]},{"id":"2bd10be1aa3e06d0","type":"comment","z":"27d6323ed6b7a6c0","name":"Temperature on top line","info":"","x":220,"y":120,"wires":[]},{"id":"4bf1495b384ff371","type":"comment","z":"27d6323ed6b7a6c0","name":"time on top line","info":"","x":200,"y":200,"wires":[]},{"id":"66f36ceb3ab45511","type":"inject","z":"27d6323ed6b7a6c0","name":"Inject temperature ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"30.0","payloadType":"str","x":510,"y":120,"wires":[["780aa8e3dc647228"]]},{"id":"7f211795.773398","type":"mqtt-broker","name":"Mosquitto","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Here a demo page with some more commands like the MQTT command to switch the light on or off
hasp/plate1/command/output27 which switches port 3 (AFAIR) and a short demo to control the moodlight.

[{"id":"27d6323ed6b7a6c0","type":"tab","label":"Demo OpenHASP","disabled":false,"info":"","env":[]},{"id":"d6f64d09023d94a5","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/moodlight","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":640,"y":1140,"wires":[]},{"id":"78702519da996257","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":1000,"y":2880,"wires":[]},{"id":"eeb339676fd08992","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"state off","payloadType":"str","x":280,"y":3000,"wires":[["e77f0e9f4c54b40d"]]},{"id":"e77f0e9f4c54b40d","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/output12","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":730,"y":3000,"wires":[]},{"id":"e701469bf68dfe6c","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\":\"on\"}","payloadType":"json","x":290,"y":3040,"wires":[["e77f0e9f4c54b40d"]]},{"id":"c76b0d73fbb48894","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/output14","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":730,"y":3060,"wires":[]},{"id":"ee3bf157ac996b11","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\":\"off\"}","payloadType":"json","x":290,"y":3080,"wires":[["c76b0d73fbb48894"]]},{"id":"ff98f247a44ac654","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/output27","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":730,"y":3120,"wires":[]},{"id":"a30659d44387a60a","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\":\"on\"}","payloadType":"json","x":290,"y":3120,"wires":[["c76b0d73fbb48894"]]},{"id":"d9a940f615162f34","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/output27","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":1050,"y":840,"wires":[]},{"id":"7f6cc0224a4dfbe1","type":"mqtt in","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/state/p11b1","qos":"2","datatype":"auto-detect","broker":"7f211795.773398","nl":false,"rap":true,"rh":0,"inputs":0,"x":230,"y":840,"wires":[["3ed9e5756f6b6471"]]},{"id":"3ed9e5756f6b6471","type":"function","z":"27d6323ed6b7a6c0","name":"","func":"\n\nif (msg.payload.event == \"up\")\n  { if (msg.payload.val == 0)\n    {msg.payload.state = \"off\";}\n    else\n    {msg.payload.state = \"on\";}\n    \n  }\n\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":560,"y":840,"wires":[["f59d8118aec51039"]]},{"id":"f59d8118aec51039","type":"json","z":"27d6323ed6b7a6c0","name":"","property":"payload","action":"","pretty":false,"x":790,"y":840,"wires":[["d9a940f615162f34","6a612dc9a3e1d56d"]]},{"id":"780aa8e3dc647228","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/p0b4.text","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":790,"y":120,"wires":[]},{"id":"723dff211a826d58","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"25","crontab":"","once":true,"onceDelay":"6","topic":"","payload":"","payloadType":"date","x":490,"y":200,"wires":[["41691329f159374c"]]},{"id":"85e4ee14683c874a","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/p0b6.text","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":990,"y":200,"wires":[]},{"id":"41691329f159374c","type":"moment","z":"27d6323ed6b7a6c0","name":"","topic":"","input":"","inputType":"msg","inTz":"Europe/Berlin","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm","locale":"de-DE","output":"","outputType":"msg","outTz":"Europe/Berlin","x":720,"y":200,"wires":[["85e4ee14683c874a"]]},{"id":"fec59a888d92f1b1","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/backlight","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":1290,"y":520,"wires":[]},{"id":"2e24dfd0908d5ef6","type":"change","z":"27d6323ed6b7a6c0","name":"Brightness aus","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":860,"y":640,"wires":[["fec59a888d92f1b1"]]},{"id":"236757055e4d347f","type":"change","z":"27d6323ed6b7a6c0","name":"Brightness 80","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"state\":\"on\",\"brightness\":80}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":900,"y":580,"wires":[["fec59a888d92f1b1"]]},{"id":"38970f73b843385b","type":"change","z":"27d6323ed6b7a6c0","name":"Brightness 255","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\"state\":\"on\",\"brightness\":255}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":1000,"y":520,"wires":[["fec59a888d92f1b1"]]},{"id":"2387ab2e0425f937","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"run /online.cmd","payloadType":"str","x":360,"y":2880,"wires":[["78702519da996257"]]},{"id":"2572c497dddc64a7","type":"inject","z":"27d6323ed6b7a6c0","name":"JSON Test (Seite 3)","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"json ['page 3','backlight {\"state\":\"ON\",\"brightness\":100}','idle off']","payloadType":"str","x":370,"y":2840,"wires":[["78702519da996257"]]},{"id":"fe12f56f750de13d","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"page 1","payloadType":"str","x":350,"y":2800,"wires":[["78702519da996257"]]},{"id":"5e19a889d5cf0822","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"antiburn on","payloadType":"str","x":750,"y":2760,"wires":[["78702519da996257"]]},{"id":"55623fde97ab1997","type":"mqtt in","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/state/idle","qos":"2","datatype":"auto-detect","broker":"7f211795.773398","nl":false,"rap":true,"rh":0,"inputs":0,"x":200,"y":380,"wires":[["f95b540bcf484262"]]},{"id":"3ef8ca921c68257b","type":"switch","z":"27d6323ed6b7a6c0","name":"","property":"Nacht","propertyType":"global","rules":[{"t":"false"},{"t":"true"}],"checkall":"true","repair":false,"outputs":2,"x":810,"y":480,"wires":[["38970f73b843385b"],["236757055e4d347f"]]},{"id":"f95b540bcf484262","type":"switch","z":"27d6323ed6b7a6c0","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"off","vt":"str"},{"t":"eq","v":"short","vt":"str"},{"t":"eq","v":"long","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":550,"y":380,"wires":[["3ef8ca921c68257b","4a608db5b0c87a49","950f3faeb369ab2f"],["236757055e4d347f"],["2e24dfd0908d5ef6"]]},{"id":"4a608db5b0c87a49","type":"change","z":"27d6323ed6b7a6c0","name":"show page 11","rules":[{"t":"set","p":"payload","pt":"msg","to":"page 11","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":920,"y":380,"wires":[["8cf360993fb1dacb"]]},{"id":"8cf360993fb1dacb","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":1320,"y":380,"wires":[]},{"id":"950f3faeb369ab2f","type":"delay","z":"27d6323ed6b7a6c0","name":"","pauseType":"delay","timeout":"2","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":920,"y":440,"wires":[["d05b8550447bb0b4","6a612dc9a3e1d56d"]]},{"id":"d05b8550447bb0b4","type":"change","z":"27d6323ed6b7a6c0","name":"Seite 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"page 1","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1100,"y":440,"wires":[["8cf360993fb1dacb"]]},{"id":"0c21be22a2308245","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/p1b1.val","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":850,"y":920,"wires":[]},{"id":"fc1dabc36a2c60ae","type":"mqtt in","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/state/p1b1","qos":"2","datatype":"auto-detect","broker":"7f211795.773398","nl":false,"rap":true,"rh":0,"inputs":0,"x":220,"y":900,"wires":[["3ed9e5756f6b6471"]]},{"id":"1259d36587439f83","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command/p11b1.val","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":860,"y":980,"wires":[]},{"id":"2e0a0b42e54a6084","type":"change","z":"27d6323ed6b7a6c0","name":"","rules":[{"t":"change","p":"payload.state","pt":"msg","from":"on","fromt":"str","to":"1","tot":"num"},{"t":"change","p":"payload.state","pt":"msg","from":"off","fromt":"str","to":"0","tot":"num"},{"t":"set","p":"butt","pt":"flow","to":"payload.state","tot":"msg"},{"t":"set","p":"payload","pt":"msg","to":"butt","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":520,"y":980,"wires":[["1259d36587439f83","0c21be22a2308245"]]},{"id":"c5932c78fc515ae9","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":620,"y":640,"wires":[["2e24dfd0908d5ef6"]]},{"id":"b746104a3adfd613","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":620,"y":520,"wires":[["38970f73b843385b"]]},{"id":"8411bc967319d893","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":620,"y":580,"wires":[["236757055e4d347f"]]},{"id":"721eb0514bbc55e4","type":"mqtt in","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/state/output27","qos":"2","datatype":"auto-detect","broker":"7f211795.773398","nl":false,"rap":true,"rh":0,"inputs":0,"x":230,"y":980,"wires":[["2e0a0b42e54a6084"]]},{"id":"0f5a9b62b5650bf2","type":"comment","z":"27d6323ed6b7a6c0","name":"Kellerlicht","info":"","x":180,"y":780,"wires":[]},{"id":"3da23c5422c25e85","type":"comment","z":"27d6323ed6b7a6c0","name":"light switch","info":"","x":160,"y":320,"wires":[]},{"id":"4ef67f6a3fb68d5f","type":"comment","z":"27d6323ed6b7a6c0","name":"Test: drei Ausgänge schalten","info":"","x":240,"y":2960,"wires":[]},{"id":"2bd10be1aa3e06d0","type":"comment","z":"27d6323ed6b7a6c0","name":"Temperature on top line","info":"","x":220,"y":120,"wires":[]},{"id":"4bf1495b384ff371","type":"comment","z":"27d6323ed6b7a6c0","name":"time on top line","info":"","x":200,"y":200,"wires":[]},{"id":"23d9cb4e718a7d2f","type":"comment","z":"27d6323ed6b7a6c0","name":"Test: diverse Befehle","info":"","x":260,"y":2720,"wires":[]},{"id":"38738afd04e19794","type":"mqtt out","z":"27d6323ed6b7a6c0","name":"","topic":"hasp/plate1/command","qos":"","retain":"","respTopic":"","contentType":"","userProps":"","correl":"","expiry":"","broker":"7f211795.773398","x":1320,"y":680,"wires":[]},{"id":"6a612dc9a3e1d56d","type":"change","z":"27d6323ed6b7a6c0","name":"short","rules":[{"t":"set","p":"payload","pt":"msg","to":"idle short","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":680,"wires":[["38738afd04e19794"]]},{"id":"96e1f105f3a53d1f","type":"change","z":"27d6323ed6b7a6c0","name":"long","rules":[{"t":"set","p":"payload","pt":"msg","to":"idle long","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":740,"wires":[["38738afd04e19794"]]},{"id":"313cb7e095c64632","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":620,"y":680,"wires":[["6a612dc9a3e1d56d"]]},{"id":"399dc5423bfa2ddc","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":620,"y":740,"wires":[["96e1f105f3a53d1f"]]},{"id":"66f36ceb3ab45511","type":"inject","z":"27d6323ed6b7a6c0","name":"Inject temperature ","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"30.0","payloadType":"str","x":510,"y":120,"wires":[["780aa8e3dc647228"]]},{"id":"f381919e796d2d98","type":"inject","z":"27d6323ed6b7a6c0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"state\":\"on\",\"color\":\"#FF0000\",\"brightness\":255}","payloadType":"json","x":230,"y":1140,"wires":[["d6f64d09023d94a5"]]},{"id":"8e26ee9b5937c2bf","type":"comment","z":"27d6323ed6b7a6c0","name":"Test Moodlight","info":"","x":240,"y":1080,"wires":[]},{"id":"7f211795.773398","type":"mqtt-broker","name":"Mosquitto","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
2 Likes