Pouvoir appeler une caméra par son Nom, plutôt que par le Nom de la piece où elle est située

Quand on demande à Gladys de visualiser le flux d’une camera , il faut l’appeler par le “nom de la pièce” où elle est située. Le problème est que quand on a plusieurs cameras dans une même pièce, Gladys n’envoie le flux, que d’une caméra et toujours la même. Donc il serait préférable d’appeler ce flux par le “nom de la camera” comme ça plus d’ambiguïté, et la cerise sur le gâteau, serait d’obtenir tous les flux des cameras qui sont situées dans la même pièce, quand on demande a Gladys de nous montrez les cameras de cette pièce. Et ceci permettrait de pouvoir récupérer des images des cameras et de les envoyer par Telegram, pour une utilisation en tant qu’alarme(visualisation de la pièce en cas d’intrusion par exemple). Il faudrait que Gladys rafraichisse la camera avant de l’envoyer, pour avoir une image à l’instant T
Voila il n’y a plus qu’a voter**

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

1 Like

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:

1 Like

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:

1 Like

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

1 Like

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:

2 Likes

@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 :

2 Likes

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:

1 Like

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

3 Likes

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:

1 Like