Authentication¶
Widgets and providers that make HTTP requests (rest, restimage, httpflip, and providers in providers.yaml)
take an auth parameter. The same block also works on a post output. It takes one of two
methods:
bearer: a token, sent asAuthorization: Bearer <token>. Use this for Home Assistant long-lived access tokens and most modern APIs.basic: ausernameand apassword, sent with HTTP Basic authentication. Use this for older devices like IP cameras or motionEye.
You'll usually want to keep the token or password in secrets.yaml, so that the file with the
widgets in it can be shared or committed.