On significant change (instead of / in combination with on_value_range)?

Is there a way in ESPHome to only send HA API / MQTT messages on a significant change?
Currently I am using on_value_range with above and below.
That is great for absolute values, but I am more interested in the level of change.
E.g. if value % changed more than 10% since last time then … (of in the unit of the measurement: if actual value changed more than 10).
Is that possible?