python-lovelace icon indicating copy to clipboard operation
python-lovelace copied to clipboard

Support new auth system

Open jmtatsch opened this issue 7 years ago • 4 comments

I am unable to get anything more than 404: Not Found from https://homeserver:8123/api with HA 0.77.3, even with legacy auth enabled.

Any hints on how to proceed with HA versions where the new auth system is enabled?

jmtatsch avatar Sep 04 '18 02:09 jmtatsch

Same issue here on 0.77.3.

hawkeye217 avatar Sep 12 '18 13:09 hawkeye217

The curl/stdin method seemed to work fine for me at this point, though.

hawkeye217 avatar Sep 12 '18 13:09 hawkeye217

This worked for me: curl -sSL -X GET -H "Authorization: Bearer LONG_LIVED_TOKEN" -H "content-type: application/json" http://MY_HA_IP:8123/api/states | python3 lovelace_migrate.py -

Note: you can generate your long lived token on the profile page: http://MY_HA_IP:8123/profile

marklagendijk avatar Nov 17 '18 14:11 marklagendijk

Thanks @marklagendijk !

This worked for me, same as above except for HTTPS :)

curl -sSL -X GET -H "Authorization: Bearer <my long lived token created from https:///MY_HA_IP:18123/profile>“ -H "content-type: application/json" https:///MY_HA_IP:18123/api/states | python3 lovelace_migrate.py -

Konstigt avatar Dec 04 '18 17:12 Konstigt