Shelly has two devices that will monitor your consumption, Shelly EM and Shelly 3EM. The EM is for single phase and 3EM being for 3 phases.
They support both REST and MQTT with the stock firmware and doesn’t require internet.
Have a look here for EM
https://shelly.cloud/shelly-energy-meter-with-contactor-control-wifi-smart-home-automation/
And here for 3EM
https://shelly.cloud/shelly-3-phase-energy-meter-with-contactor-control-wifi-smart-home-automation/
I have the 3EM but haven’t installed it yet.
There are some plugins/integrations to automatically add Shellys to HA which make it really easy to install.