MQTT Sensor from a MQTT reply/response device

Hi! I’ve got a customized smart plug that connects and listens to a specific MQTT topic To get power usage metrics in json format, I need to publish a message on that topic with a payload that contains auth info, query and a topic to publish power usage to.
After acking that message, the plug will reply with a message in the topic specified in the payload and I can use a MQTT sensor in home assistant.

What is the best way to periodically check power usage? I thought of an automation that runs every 30 seconds or a cron publishing messages to plug topic, but it does not look elegant or efficient.

Thanks!