Platform: mjpeg- Camera not working after HA upgrade

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 ?).

any tips would be appreciated.

That’s a bad idea with a software in beta status like Home Assistant.

I see you are using mjpeg_url, therefore I assume you need the MJPEG IP Camers integration. Check the docs here. I think you just need to change

platform: generic

to

platform: mjpeg

1 Like

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?

Um, overview? It’s where everything in configuration.yaml appears?

There is nothing there- not even a placeholder.

Any errors in the logs?

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.

I meant Developer Tools -> Logs

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?

The entity is there, but there is no image on my default page.

If you click on the entity under Developer Tools -> States, do you see the camera image?

Yes. Are you on to something?

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.

I can go into Developer Tools/States/Entities, and click on “More Information” for camera.porch, and I see the stream.

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.)

Update:
Progress but still not working completely…
I turned Lovelace back on in configuration.yaml:

lovelace:
  mode: yaml

And when restarting, I can see a placeholder(?) for the porch camera, but no image.

If I click on the Porch Camera, I do see this:

Here is from my ui-lovelace.yaml:

      - type: vertical-stack
        title: Cameras
        cards:
          - type: picture-entity
            entity: camera.driveway
            show_info: true  
          - type: picture-entity
            entity: camera.porch
          - type: picture-entity
            entity: camera.garage
          - type: picture-entity
            entity: camera.office      
          - type: picture-entity
            entity: camera.esp32_cam

So, how do I see the camera on the card?

SOLVED:
(For future searchers)
I did not have the username and password in the still image URL.

# Porch Camera (Hoo Too, Model HT-IP212F)
- platform: mjpeg
  still_image_url: http://192.168.1.46/snapshot.cgi?user=op&pwd=op
  mjpeg_url: http://admin:@192.168.1.46/videostream.cgi?user=op&pwd=op&resolution=32&rate=0
  name: Porch
1 Like