Skip to content

RESTful sensor does not respect scan_interval configuration #41143

Description

@mountainsandcode

The problem

The RESTful sensor keeps polling every 30 seconds, even when using the scan_interval key

Environment

  • Home Assistant Core release with the issue: 0.115.6
  • Last working Home Assistant Core release (if known): ?
  • Operating environment (OS/Container/Supervised/Core): Docker
  • Integration causing this issue: rest
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/rest/

Problem-relevant configuration.yaml

- platform: rest
  name: "My Sensor 1"
  resource: "[URL]"
  value_template: >-
    {{ value_json[0] }}
  headers:
    User-Agent: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:81.0) Gecko/20100101 Firefox/81.0"
  scan_interval: 600

Traceback/Error logs

Additional information

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions