Hi,
In the “rest” integration for sensors, you can (I have defined) a parameter that defines the time between each check (scan_interval). What I don’t know, and I haven’t found in the documentation, is if I don’t define the parameter, what is the default value?
I use this sensor to extract the values of my “Airzone” system, and I would not want to remove the parameter and flood the endpoint with requests.
Where could I see or how could I know the default refresh rate?
And effectively, I configured 2 restful sensors with scan_interval: 120, and it looks like they poll the device every 2 minutes as per documentation above.
I guess that line in the code is a default value, and when you change the value in the configuration of the sensor, it uses it. Check the log I added to the post, I have 2 rest sensors configured like this, and they poll every 2m as you can see. I used scan_interval: 120:
Hi,
Is it possible to change this value dynamically? The API I’m calling has a daily limit and I’d prefer not to query at all at night and more often during the day.