kinchyle
(Kinchyle)
1
I’m trying to get a URL that uses http://[ip]/cgi-bin/ap.cgi?user=[user]&password=[password]
stored in secrets.
I’d doesn’t seem to compile when I put it in still_image_url for camera, platform:generic
Do I need to format the syntax differently in the secrets.yaml. I tried ’ ’ do I need to / out certain characters?
myle
(StePhan McKillen (Other kiwi Here))
2
Show us what you have done
camera:
- platform: generic
name: camera
still_image_url: !secret camera_url
Secrets,yaml
camera_url: http://[ip]/cgi-bin/ap.cgi?user=[user]&password=[password]
I got mine working if I put content_type
an extra I put limit_refetch_to_url_change: false
metbril
(Robert 🇳🇱🇪🇺)
5
Do you really use those square brackets?
Show the exact secret with some redacted text.
What’s the exact error message if any?
urls in my secrets is working fine. I agree with @metbril, please show us more information
Are you sure that URL is to a still image?
tom_l
7
The square brackets are placeholders for the redacted text. It’s a reasonably common notation.
metbril
(Robert 🇳🇱🇪🇺)
8
I understand, but when it comes to yaml, notation is very specific. So we need to rule every strange thing out to be able to help you.
So your secret probably is something like:
camera_url: http://192.168.x.x/cgi-bin/ap.cgi?user=redacted&password=ReDaCtEd
Just to be sure, does the url work if you hard code it in your config (not using a secret)?