sarabveer / rsync-snapshot-backup

Automatically create HomeAssistant snapshots and backup to remote server using rsync.
GNU General Public License v3.0
1 stars 3 forks source link

SUPERVISOR_TOKEN #6

Open misterscrooby opened 2 years ago

misterscrooby commented 2 years ago

Hey there,

after the last update I am not able to run the addon because of a 401 error relating to the supervisor token. Unfortunatly I am not able to find any helpful information how to get or generate a token that can be used by the addon. Can you please enlighten me how to make it work?

Thanks!

Regards

sarabveer commented 2 years ago

This is an issue I am facing as well. I don't know why it's giving a 401, even though proper API permissions are in config.yaml.

To get to the token, I use the "SSH & Web Terminal" add-on. Once in the CLI, just run echo $SUPERVISOR_TOKEN and you will get the token.

The SUPERVISOR_TOKEN option was added to temporarily fix the issue, but it isn't permanent as the token may change, etc.

raman325 commented 1 year ago

have you tried switching the hassio_role?

https://developers.home-assistant.io/docs/add-ons/communication?_highlight=hassio_api#supervisor-api