Set polling frequency to serial event

Hello everyone,

I have a smart meter IR interface connected via serial. Is there a way to trigger the value refresh rate for that data readout when it occurs? Or in general the polling frequency? I’d like to set it to 2s or if the read out value has changed for database input and interface display.

Kind regards,
Tobias

You can try to create an automation and use the homeassistant.update_entity service.
Be sure to deactive the option “Enable polling for update” in the system options of the integration.