Minims
September 19, 2023, 7:11pm
1
Hello,
I have a camera that give a RTMPS link on demand to stream for about 2 min.
On next request the URL will be updated.
For the moment i push the URL in MQTT.
But i don’t know how to use it in HA.
Is there a way to use a camera in lovelace with a changing URL? Any Idea ?
Thanks
stevemann
(Stephen Mann (YAML-challenged))
September 19, 2023, 7:28pm
2
Changing URL? I might believe changing IP, but changing URL- I would need to see a before and after
URL to understand this.
Minims
September 19, 2023, 8:09pm
3
So i have check again my logs and you are right only vhost is changing , so IP is changing
rtmps://ip-10-21-1-147.myfox.io/live/livecamera-<device-hash-or-something-like-that>
rtmps://ip-10-21-3-165.myfox.io/live/livecamera-<device-hash-or-something-like-that>
rtmps://ip-10-21-2-154.myfox.io/live/livecamera-<device-hash-or-something-like-that>
I have no direct stream on the camera device, i need to ask the cloud for a RTMPS stream.
stevemann
(Stephen Mann (YAML-challenged))
September 20, 2023, 1:43am
4
You didn’t say “cloud” in your original post.
I can’t help you with cloud devices since I have none here.
What cameras do you have? How do you know there is no direct stream from the camera?
Minims
September 20, 2023, 11:50am
5
This is a somfy indoor camera Somfy Indoor Camera | La Boutique Somfy
Homekit compatible, but stream is not working in HA.
Can launch stream via API and get an RTMPS url from the Cloud.
Going with an extreme idea;
get the url with a rest call and save it on an template based sensor
create a generic camera using the template sensor
reload the generic camera entity when there is a change on url (i believe it will not refresh itself when url has changed)
stevemann
(Stephen Mann (YAML-challenged))
September 20, 2023, 2:18pm
7
Minims
September 20, 2023, 9:12pm
8
Yes it need a tahoma box that i don.t have.
Here the need is to have a camera entity with an url that i can update on the fly.
I sas webrtc camera too, but i have not such a feature.
stevemann
(Stephen Mann (YAML-challenged))
September 21, 2023, 2:25am
9
I have several Wyze camera’s around my house. Not one of them is on the cloud. There is a binary from Wyse that you can flash to the cameras that provides RTSP from the cameras that Home Assistant can display.
Minims
September 21, 2023, 10:16am
10
Can you help me to try this ?
i have a MQTT sensor sensor.camera_url
containing my RTMPS url.
On Generic Camera - Home Assistant I don’t understand what I need to put in
Stream Source
Can be a template .
Ok but a sensor
template or an image
template ?
When I try to add an integration with a sensor template I have the error :
Relative URLs are not allowed
Put something like this
{{ states("sensor.garage_stream_url") }}
1 Like
Let me know if the camera would be refreshed when the sensor value would be updated, interested to learn
Minims
September 22, 2023, 7:26pm
13
I need to wait a bit or refresh the device integration to update quickly.
People really still use stuff from that manufacture after all that constant failures they delivered over the years? Latest and greatest fail that was disclosed 2 weeks ago
Why using a wifi password at all @stevemann ? You can just use a un-encrypted wifi so you can connect your devices without passwords
stevemann
(Stephen Mann (YAML-challenged))
September 23, 2023, 5:45pm
15
I have five Wyse cameras, never a single failure. All of my cameras are NOT on the cloud. I don’t even have a Wyze account.
Did I ever say that I don’t use passwords? I simply stated the fact that api: and ota: work without passwords. I only have one device in my house (HVAC thermostats) that is connected to a corporate cloud, and that’s because I have not found a suitable local replacement.