I couldn’t decide from changing the title to starting a new thread. I decided to start a new title.
My old HA_VERSION is 0.83.1, the new system is 0.105.2
(Yes, it’s been a long time. I follow the “if it ain’t broke, don’t fix it”.)
Well, it broke. More specifically the Micro-SD card quit, and none of my cloned SD’s worked. Of course, I had not been saving my snapshot files.
So, I started over with a new download of Home Assistant disk image.
I have most of my prior functions working again, but I am puzzled about one of my cameras.
This segment from my cameras.yaml file worked in Version 0.83.1, but it fails the config check in Version 0.105.2
# Porch Camera (Hoo Too, Model HT-IP212F)
#
- platform: generic
still_image_url: http://192.168.1.46/snapshot.cgi
mjpeg_url: http://op:[email protected]/videostream.cgi?user=op&pwd=op&resolution=32&rate=0
username: op
password: op
name: Porch
The error is: #Invalid config for [camera.generic]: [mjpeg_url] is an invalid option for [camera.generic].
Check: camera.generic->mjpeg_url. (See ?, line ?).
Thanks.
About “If it ain’t broke…”
I have seen programs that never get out of beta mode, but in the case of HA, every time there was an upgrade, there were quite a few who reported that something broke.
Something changed between Version 0.83.1 to 0.105.2 to break this camera’s function. I did try your suggestion of using platform: mjpeg. The config error is gone, but there is no image on my Overview page.
I can enter either of these two URLs on my browser and I get an image or video stream just fine. So, what am I doing wrong in HA?
# Porch Camera (Hoo Too, Model HT-IP212F)
- platform: mjpeg
still_image_url: http://192.168.1.46/snapshot.cgi
mjpeg_url: http://admin:@192.168.1.46/videostream.cgi?user=op&pwd=op&resolution=32&rate=0
name: Porch
That’s normal, that’s why there are breaking changes in the release notes that explain what changed and what you need to change in your setup that it works again. Keep your system up-to-date, otherwise you’ll have a hard time with Home Assistant and you miss out on all the new amazing features.
Do you see no picture or no camera at all on your Overview page? Also what do you mean with Overview page?
That’s only partially correct. This is the default behavious when you didn’t change anything in your frontend. However in my setup for example I don’t have this view anymore because I already configured my own views. Anyway it should show in your case.
Which logs?
Logbook View - “No logbook entries found”
Developer Tools/Logs - no
Supervisor/System/System Logs - This may be related:
20-02-25 17:41:19 ERROR (MainThread) [hassio.api.proxy] Client error on WebSocket API Cannot connect to host 172.30.32.1:8123 ssl:False [Connection refused].
If this is related to the camera problem, then “connection refused” makes little sense since the URL on my browser brings up the camera video just fine.
So you added the config, restarted Home Assistant and now there is neither an error in the logs nor you can see the entity under Developer Tools -> States?
No I just wanted to see if the camera entity works or not. And it looks like it works. However, to be honest, I don’t know why it’s not showing up on the default view. Just add it to any view then.
To recap:
Something changed between Version 0.83.1 to 0.105.2 to break this camera’s function.
I originally was using platform: generic, but with the upgrade, I was getting config errors.
Burningstone suggested that I try platform: mjpeg. The config errors are gone, but still no image.
Here is my current entry in cameras.yaml:
# Porch Camera (Hoo Too, Model HT-IP212F)
- platform: mjpeg
still_image_url: http://op:[email protected]/snapshot.cgi
mjpeg_url: http://op:[email protected]/videostream.cgi?user=op&pwd=op&resolution=32&rate=0
name: Porch
I can enter either of these two URLs, still_image_url and mjpeg_url, on my browser and I get an image or video stream just fine.
So, what am I doing wrong in HA? Why can’t I see this camera on the default page. (Four other cameras work fine).
(I am not using Lovelace- one issue at a time, please.)