I'm using custom:webrtc-camera for a couple of cards showing Sonoff Slim 1 camera streams which work, but…
They all recently failed due to a change with the local DHCP server, meaning different IP addresses, so the WebRTC cards stopped working until I updated the IP addresses in all cards showing those cameras.
They shouldn't change again, but to make things easier in the future it woujld help if I had an entity pointing to each cams IP address and then use that entity in as many cards as I want, but should the IP address change, I only need to edit the one entity and all cards will be corrected, rather than having to update multiple cards.
I cannot figure though how to create a WebRTC camera entity that can then be used in multiple cards, so would appreciate help with this.
OR prevent the DHCP from changing. Put your own router in front of the ISP router and double NAT it.
Works for me, I've switch ISP's and ISP modems and my local stuff doesn't care.
Thanks for the replies. Yes I could allocate static IP addresses for them, from my DHCP server, but I try to avoid that as for many devices the manufacturers do not provide the MAC address info so you have to go chasing in the DHCP logs to find it.
However, once allocated, it doesn't get changed so happy to just use the IP address, but a single entity I can then use in multiple locations would be ideal, so thanks to @fuatakgun for their suggestion.