Call a camera by its Name, rather than by the Name of the room it is located in

When asking Gladys to display the stream from a camera, you need to call it by the « room name » where it is located. The problem is that when you have multiple cameras in the same room, Gladys only sends the stream from one camera and always the same one. Therefore, it would be preferable to call this stream by the « camera name » to avoid any ambiguity, and the cherry on top would be to obtain all the streams from the cameras located in the same room when you ask Gladys to show you the cameras in that room. This would allow you to retrieve images from the cameras and send them via Telegram, for use as an alarm (for example, displaying the room in case of intrusion). Gladys would need to refresh the camera before sending it to have an image at time T.

That’s it, now it’s up to vote**

Alright, I removed one of my votes to vote here ^^ :wink:

Good evening,
I’ve just changed the title of this request because it apparently doesn’t only apply to Telegram.
:wink:

@Psoy : I just ran some tests by adding the camera « selection » system by name via the Gladys chat
I managed to make it so that :

  • it displays the image when called by name,
  • it displays all the images when called by the room.

For now, it only sends the image that was stored; I need to do more tests to send the « live » image.
And I couldn’t test with Telegram because my test instance doesn’t have that integration.

I’m building a docker image « delogzway/gladys:chat_display_camera_by_name » (it will be built in about 1h).
Feel free to give me feedback. :slight_smile:

Good evening @Lokkye
It doesn’t work for me:
I have, for the test, 2 cameras, one is called camgarage and the other camjardin. I put them in the same room: the living room.
1st request :


2nd request :

or

3rd request:


or

Conclusion
when I call the room’s cameras, only one appears
when I call the cameras by their names, Gladys doesn’t retrieve them.

Is there a specific phrase to use?
Thanks for taking care of this dev :wink:
** I am not using ChatGPT for this test

Hi @Psoy,

Thanks for the tests :slight_smile:

I’ve just made some fixes. And I’ve just built a new Docker image (don’t forget to docker pull delogzway/gladys:chat_display_camera_by_name).
I used your configuration again to make sure it works.

No, the sentences you used are fine.

Me neither :slight_smile:

Hello @Lokkye
Thank you, but I’m currently traveling and won’t be able to test for a few days. As soon as I’m back, I’ll do a docker pull image :smile: and retest everything, thanks again

Hello, @Lokkye
I’m back, I’ve just tested the cameras and they work great — when I call a camera by its name it displays correctly in Telegram, and when I call the room, Telegram shows me all the cameras in that room.
Great work, thank you once again for all the improvements you bring us :clap: :+1:

@Lokkye I haven’t seen a PR for this feature, is that normal? :slight_smile:

@pierre-gilles : My bad, I had forgotten to create it :

Great, I’ll look at that today :slight_smile:

It works very well on my machine :slight_smile:

I’ve left some feedback on the PR:

@pierre-gilles : Corrected feedback :slight_smile:

It’s fine with me, it’s merged and it will be included in the next Gladys release!

This feature is available in Gladys Assistant 4.31 ! :rocket:

I’m closing this thread to free up votes, feel free to create another thread if you encounter bugs with this feature :slight_smile: