I am currently having some issue with the RESTful sensor and maybe need someone to point out any obvious misconfiguration.
I am trying to create a sensor to refresh an access token for home connect but only every x hours since there is a rate limit (max. 100 / day) and the access token is valid for 24 hours.
The sensor keeps polling every 30 seconds regardless of the configured scan_interval. I have already restarted HA
- platform: rest name: homeconnect_token_request resource_template: "https://api.home-connect.com/security/oauth/token" method: POST headers: Content-Type: application/x-www-form-urlencoded payload: !secret homeconnect_refreshtoken_payload json_attributes: - access_token - token_type - expires_in value_template: 'ok' scan_interval: 7200
Do you have any ideas on this?
Why is my “scan_interval” not working as intended - I have viewed the code of the component and as far as I can see it should work this way.