How to change the scan_interval of filesize since 2023.06?

Since 2023.06 the platform filesize moved to devices which works thanks to the auto migration.

One thing is unclear to me.
With platform: filesize I set the scan interval to 1800 to not write to the database that often. In the UI I can not find any option and the manual does not mention anything?

How to change the scan_interval of filesize since 2023.06?

  1. Disable default polling

  1. Create an automation to update the entity at your own pace using the homeassistant.update_entity service (following is for an unrelated sensor)
- id: 'ce0e40ef-74f5-487b-899d-1ab66f2e0fd7'
  alias: 'Update speedtest'
  mode: restart
  trigger:
    - platform: time_pattern
      hours: "/3"
  action:
    - delay: "00:06:14"
    - service: homeassistant.update_entity
      target:
        entity_id: sensor.speedtest_download
1 Like

Thanks for the answer. I didn’t realized that this is the solution for most entities which I don’t wanna use the default scan internal.