Home Assistant custom component for scraping (html, xml or json) multiple values (from a single HTTP request) with a separate sensor/attribute for each value. Support for (login) form-submit functionality.
MIT License
247
stars
14
forks
source link
Can we set scan_interval: 0 to mean "do not call" ? #360
Some companies charge a fee per API call, which can get expensive if we need to call many different APIs or refresh data often.
At the moment, one can set a very high value for "scan_interval", but each multiscrape API call is still called one time at HA start-up or whenever one triggers a HA restart. Particular when debugging YAML code, this results in many dozens of API calls in a short time and can get quite expensive.
It would be great if we could limit the amount of API calls to only those times we really need to use them.
Combined with button code, I need to be able to set "scan_interval: 0" and have ha-multiscrape NEVER call the API at HA start-up or at any time thereafter.
Then, only when one needs to fetch the data, one would press the button to manually scrape the data.
Some companies charge a fee per API call, which can get expensive if we need to call many different APIs or refresh data often.
At the moment, one can set a very high value for "scan_interval", but each multiscrape API call is still called one time at HA start-up or whenever one triggers a HA restart. Particular when debugging YAML code, this results in many dozens of API calls in a short time and can get quite expensive.
It would be great if we could limit the amount of API calls to only those times we really need to use them.
Combined with button code, I need to be able to set "scan_interval: 0" and have ha-multiscrape NEVER call the API at HA start-up or at any time thereafter. Then, only when one needs to fetch the data, one would press the button to manually scrape the data.
Something like the attached YAML sample. ha-multiscape Suggestion - scan_interval 0.txt