I am trying to get an esp32 cam auto discovered in home-assistant. I need some help on how I can get that to happen so I can just view the video stream in HA without me doing any configuration on HA. I was able to do that for my lights and switches. New devices show up in HA and the handshake is initiated and handled by my IoT device.
Below is an example of what I did for my other devices, clicking on the url takes me to the device web server using the auto-discovery functionality.
What I want to happen automatically is when I get to this page I should see the video stream. Clicking on the attribute url takes me to the webserver of the camera for configuration settings, etc which should not be an issue I am able to do that. I would welcome any help as to what sort of publish/subscribe/auto-discovery setup I need to set up for auto discovery to work. I do not want to fill HA disk but want to see the stream only when I select the camera.