Hello @Kombistack
hmm, probably publishing doesn't work due to the delays in loop.
Maybe this example in UIFlow2 Project Zone can help:
M5AtomS3_WiFi_MQTT_UIFlow2.1.5
Note: not tested again with latest UIFlow2.4.2. So it might not work anymore.
Thanks
Felix