Skip to content

Commit

Permalink
Add more description to the OpenUV API key usage docs (home-assistant…
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya authored and frenck committed Feb 14, 2019
1 parent 93e2348 commit 218367e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions source/_components/openuv.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,23 @@ component does not automatically query the API for new data after it initially
loads. To request new data, the `update_data` service may be used.
</p>

<p class='note warning'>
Each use of the `update_data` service will consume 1 or 2 API calls, depending
on which monitored conditions are configured.

If the OpenUV component is configured through the Home Assistant UI (via the
`Configuration >> Integrations` panel), each service call will consume 2 API
calls from the daily quota.

If the OpenUV component is configured via `configuration.yaml`, service calls
will consume 2 API calls if `monitored_conditions` contains both
`uv_protection_window` and any other condition; any other scenarios will only
consume 1 API call.

Ensure that you understand these specifications when calling the `update_data`
service.
</p>

## {% linkable_title Configuration %}

To retrieve data from OpenUV, add the following to your `configuration.yaml`
Expand Down

0 comments on commit 218367e

Please sign in to comment.