Thanks for sharing! I was trying to do something very similar, so this was a very good starting point for me. However, I realized that Rules and Scripting Language do not run in parallel, but I rely on scripting because of the Smart Metering Interface (Smart Meter Interface - Tasmota). But finally I managed it with a script too and shared it here: Read smart meters (SML interface) with ESP and Tasmota and send data to emoncms