Change consider_home value using an automation?

I have a device_tracker integration with a consider_home value of 240 (4 minutes). At different times of the day, I would like to change that value. Is there a way to do that using an automation?

device_tracker:
  - platform: whatever
    consider_home: 240