if you want to avoid duplicate mqtt message received set time_avoid_duplicate to > 0, the value is the time in milliseconds during which we don't publish duplicates