Wall plug (passthrough) or socket monitors?

I’ve finally done something here. Please excuse my terrible Python (it’s my first time writing it), but I’ve created a ‘middleware’ between pyenergenie and MQTT:

Would like to know if it is useful for others, but essentially I can now ingest energenie monitoring information into emonCMS via MQTT.