Limiting MQTT reads for certain topics

I use this Energy Meter and it works great, but getting the data into HA causes some issues.

When I create MQTT-based sensors for the 4-5 values I’d like to see in HA it brings my Pi4 to its knees and I think it’s because all values are updated every second.

Is there an option to limit the upate ratio to 5, 10, or 15 seconds?

- platform: mqtt
  unique_id: 'emon_w'
  name: "EMon Watt"
  state_topic: "emon/W"
  unit_of_measurement: "W"

- platform: mqtt
  unique_id: 'emon_ct1'
  name: "EMon Amp CT1"
  state_topic: "emon/CT1"
  unit_of_measurement: "A"

There’s no such file thing as an “MQTT read”. Home Assistant acts as an MQTT Client. That means it subscribes to a topic and receives payloads published to that topic. So if payloads are published every second, Home Assistant receives them at the same rate.

If you want to receive them at a lower rate, then you have to reduce the publishing rate. To achieve this, you must have control of the device doing the publishing (and that’s not always possible).

1 Like

Thanks for the explanation - I have access to the physical device, but don’t understand enough about the ins & outs of the software to be able o make these changes myself at that end.