Sorry, copied the wrong flow into my reply.
I was wondering, what are you taliking about, I see no 20 sec delay.
[{"id":"47c40612.e45b58","type":"tab","label":"Thermo","disabled":false,"info":""},{"id":"799417af.39fcd8","type":"inject","z":"47c40612.e45b58","name":"","topic":"currentTemp","payload":"19.2","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":220,"wires":[["fd7cbb12.049ec8","dbd55f6f.845a2"]]},{"id":"fd7cbb12.049ec8","type":"ui_heater_controller","z":"47c40612.e45b58","name":"Heating","group":"aa24bae5.94e3c8","unit":"C","order":0,"width":"6","height":"4","topic":"shellies/shelly1-500291F0142B/relay/0/command","title":"","logLengthType":"days","logLength":"0","sliderMinValue":16,"sliderMaxValue":25,"sliderStep":0.5,"thresholdRising":0.5,"thresholdFalling":0.5,"calendar":"{\n \"Monday\": {\n \"00:00\": 19,\n \"06:20\": 22,\n \"08:00\": 19,\n \"16:40\": 22,\n \"23:59\": 19\n },\n \"Tuesday\": {\n \"00:00\": 19,\n \"06:20\": 22,\n \"08:00\": 19,\n \"16:40\": 19,\n \"23:59\": 19\n },\n \"Wednesday\": {\n \"00:00\": 19,\n \"06:20\": 22,\n \"08:00\": 19,\n \"16:40\": 22,\n \"23:59\": 19\n },\n \"Thursday\": {\n \"00:00\": 19,\n \"06:20\": 22,\n \"08:00\": 19,\n \"16:40\": 22,\n \"23:59\": 19\n },\n \"Friday\": {\n \"00:00\": 19,\n \"06:20\": 23,\n \"08:00\": 19,\n \"16:40\": 22,\n \"23:59\": 19\n },\n \"Saturday\": {\n \"00:00\": 19,\n \"08:00\": 20,\n \"20:00\": 22,\n \"23:59\": 19\n },\n \"Sunday\": {\n \"00:00\": 19,\n \"08:00\": 20,\n \"20:00\": 22,\n \"23:59\": 19\n }\n}","x":400,"y":300,"wires":[["bdc94203.ef713","a1554fa5.cdb21"]],"inputLabels":["shellies/shelly1-500291F0142B/ext_temperature"]},{"id":"dbd55f6f.845a2","type":"debug","z":"47c40612.e45b58","name":"","active":false,"tosidebar":true,"console":true,"tostatus":true,"complete":"payload","targetType":"msg","x":620,"y":220,"wires":[]},{"id":"c4825bba.a86178","type":"mqtt in","z":"47c40612.e45b58","name":"Input sensor","topic":"shellies/shelly1-500291F0142B/ext_temperature/0","qos":"2","datatype":"utf8","broker":"8d9f9a83.656348","x":190,"y":160,"wires":[["ee3549d9.691538"]]},{"id":"bdc94203.ef713","type":"debug","z":"47c40612.e45b58","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":710,"y":300,"wires":[]},{"id":"ee3549d9.691538","type":"change","z":"47c40612.e45b58","name":"Temp conv.","rules":[{"t":"set","p":"topic","pt":"msg","to":"'currentTemp'","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":160,"wires":[["dbd55f6f.845a2"]]},{"id":"6ccd2b52.cf3ed4","type":"inject","z":"47c40612.e45b58","name":"","topic":"shellies/shelly1-500291F0142B/relay/0/command","payload":"on","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":410,"y":360,"wires":[["2da60404.b1042c"]]},{"id":"26bc7e8b.f43d52","type":"inject","z":"47c40612.e45b58","name":"","topic":"shellies/shelly1-500291F0142B/relay/0/command","payload":"off","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":410,"y":420,"wires":[["2da60404.b1042c"]]},{"id":"2da60404.b1042c","type":"mqtt out","z":"47c40612.e45b58","name":"Switch","topic":"shellies/shelly1-500291F0142B/relay/0/command","qos":"","retain":"","broker":"8d9f9a83.656348","x":810,"y":480,"wires":[]},{"id":"a1554fa5.cdb21","type":"change","z":"47c40612.e45b58","name":"","rules":[{"t":"set","p":"msg.payload.currentHeaterStatus","pt":"msg","to":"payload","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":780,"y":360,"wires":[["2da60404.b1042c"]]},{"id":"aa24bae5.94e3c8","type":"ui_group","z":"","name":"Thuis","tab":"ce3e8b8f.5efca8","disp":true,"width":"7","collapse":false},{"id":"8d9f9a83.656348","type":"mqtt-broker","z":"","name":"musquitto","broker":"192.168.0.133","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""},{"id":"ce3e8b8f.5efca8","type":"ui_tab","z":"","name":"Home","icon":"mi-visibility","disabled":false,"hidden":false}]