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":""}]