So I have this on my Dashboard/Lovelace for 4+ years, using the camera card. I understand it is a bit unusual using generic camera, but fits well and works well, and is one of the examples on the website.
For reference, the codes are:
camera:
# Add Satellite from NOAA
- platform: generic
name: US SE Satellite
still_image_url: https://cdn.star.nesdis.noaa.gov/GOES16/ABI/CONUS/GEOCOLOR/1250x750.jpg
limit_refetch_to_url_change: true
scan_interval: 5000 # in seconds
= = = fast forward to today = = =
Now, starting 2022.4, looks like we are moving this camera away from yaml to UI integration.
And I checked the UI, I do not see where I can do the scan_interval thing. The closest I can see is the Frame Rate (Hz), but they are integers… So how do I do something like 0.0002 Hz ???
(BTW, what does “-3 Hz” or “0 Hz” mean to this HA?)
Or… should I use other types of cards instead of camera these days? Any recommendation??
Or… should I barge into some hidden folder to edit some hidden json / yaml somewhere?
Or maybe this is discussed somewhere on GitHub?
Ha! I was just telling myself - am I really the only one doing this?
Even for regular generic camera feeds on the Dashboard…
I can totally anticipate that the image refresh rate at every 2 or 3 (or even 5 seconds) is probably good enough for a always-on kiosk on the wall… especially when you have multiple cameras around the house.
Yet those intervals (0.5Hz, 0.3Hz, 0.2Hz) are not possible today.
I am just still using the generic config in configuration.yaml. I assume that still works.
I have no need for an update every second or even a few times a second. I just need to update that picture every few minutes as it does not change that often and I dont want to hammer the website by retrieving the image every second.
1 hz = 1 frame per second typically. But yes, it will update live based on the hz and your automation. You can just set the HZ really high and then use the update automation. Choice is yours.
I realised just now that the URL I was using was a local URL. I actually already created an automation (every 15 minutes) to download the weather image to my local storage and then use that local stored image as a camera. This is how:
In configuration.yaml add:
downloader:
download_dir: www/downloads
Now create an automation like this, this will download the image every 15 minutes:
Then add a camera through integrations with the URL (i add the ?v=4 to ensure its not cached, but not sure if that is still needed): http://192.168.178.27:8123/local/downloads/WWWRADARTMP_loop.gif?v=4
Petro -
Exactly what John said. If you want to refresh only, say, every hour, which is 3600 seconds, which is 0.00027778 Hz (assuming my math checks out OK), which is not possible to config after 2022.4, when we are forced to move from yaml to UI integration.
The UI integration only does integers, which is not right.
It would not work if you set the integer to 0 Hz or -1 Hz or -100 Hz.
Oh really? Wow thank you for checking! I was in the middle of writing the bug report for 2022.4… looks like no need.
Am going to move to 2022.5 to test this.