tmman
(Travis)
May 9, 2020, 5:36pm
1
I am attempting to access my camera stream using:
http://192.168.86.84:8123/api/camera_proxy_stream/camera.front_gate_live?token=long_lived_access_token
However, I always get a “401: Unauthorized” in my browser AND a persistent notification in HA: “Login attempt or request with invalid authentication from 192.168.86.71”
I attempted trying to add the following to config.yaml, messing around:
homeassistant:
auth_providers:
- type: trusted_networks
trusted_networks:
- 192.168.86.0/24
- 192.168.86.71
trusted_users:
192.168.86.71: user_id
Still the same error. Anyone have an idea?
bobuzi
(Bobuzi)
May 20, 2020, 6:23pm
2
Hi team,
I have same issue, HA version 0.110.
I tryed to enable api_password , use token , bat not working: 401: Unauthorized
I’d love to get this working too…
Same here. Need API to work again.
Only thing that works for me is commandline command on discovery info
curl -H "api_password xxxxxxxx" 192.168.0.117:8123/api/discovery_info
{"base_url": "http://X.X.X.X:8123", "external_url": "http://X.X.X.X:8123", "internal_url": "http://192.168.0.117:8123", "location_name": "Home", "requires_api_password": true, "uuid": "cxxxxxxfxxxxxxfxxxxdxxcxxdaxxxxxx", "version": "0.112.5"}
b4ker
July 30, 2020, 4:57pm
5
It will not will not work with the “long lived token”, you need the camera token, this token changes every 5 minutes.
This is how I managed to capture screenshots in nodered :
not sure if someone is still interested but maybe it helps a noob like me
I was also not able to send a notification with a picture, so I tried it as Jplmn suggested.
As I’m an absolut beginner, I will explain as a beginner how I did it
modify configuration.yaml and add
sensor: !include sensors.yaml
created a sensors.yaml in the config folder (this is just to keep things clear, can be done directly in the configuration.yaml as well)
modify sensors.yaml
- platform: template
…