Modbus data retention - options and suggestions?

I have a couple of Iammeter devices which track energy/power with CT clamps, and which I access over Modbus TCP into Home Assistant. These work really well, and I have them all set up in Energy dashboard etc.

Natively these devices also send data to mqtt://mqtt.iammeter.com:1883 and their website provides detail to be able to download exported (e.g. CSV) data for long term stats, i.e. year+.

I prefer to run the devices in local-only mode without internet access, and this works OK for Home Assistant.

However, I want to retain long-term stats for the energy production so that I can analyse energy data, like the data capability provided by the Iammeter MQTT service.

Home Assistant’s Recorder does not allow for long-term retention without retaining EVERYTHING… and even then is not inherently easy to access for analysis.

Worst case I can open up the devices to still talk to the Iammter MQTT service, but I’m looking for suggestions on how to retain the data locally.

Any ideas or suggestions>

I’ve setup InfluxDB and it’s populating from HA, including the sensors I need to track long term.

More digging to be done.

1 Like

good method