Modbus: Grouping values from different nodes as a single update to HomeAssistant

Hi

I have three electricity meters in our house, and I’m reading six values from each.
They are on the same modbus line, but clearly they are on three different modbus-controllers.
My issue is, right now, they are read one node at a time, and the values does not appear in HomeAssistant at the same time.
I’m doing som calculations in HA, but since the values are not read at the (nearly) same time, I get a lot of spikes.
Does anyone know of a way or a trick to not send the values to HA until all three nodes has been read?

Depends upon how you do read them actually.

Use node-red (modbus-getter, modbus-flex-getter) since that does offer a modbus.read which allows you to send the read request upon a trigger sent, and not just dumb by defining devices which get polled by a time interval.

Perhaps some day the modbus integration also gets a modbus.read_register :slight_smile: Since that’s what’s missing.

Hmm, I actually intended to do this post i the ESPHome forum, since I’m reading my Modbus-devices via ESPHome - thus it would be obvious how I read :wink: