# Send a camera image via message in scenes

**URL:** <https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515>\
**Category:** Demandes livrées\
**Tags:** feature-core, scene, caméra, scene-action\
**Created:** [September 4, 2020, 11:46am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515 "2020-09-04T11:46:16Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [September 4, 2020, 11:46am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/1 "2020-09-04T11:46:16Z")

</div>

Create a new action in the «&nbsp;send a camera image&nbsp;» scenes that allows selecting the camera + the user to whom to send the image

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [May 31, 2023, 1:14pm UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/2 "2023-05-31T13:14:49Z")

</div>

I had a bit of free time this morning so I started working on this subject.

I made a PR (which is in Draft for the moment)

> <https://github.com/GladysAssistant/Gladys/pull/1804>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> 
> \### Description of change
> 
> Add new action into scene to send a message with image of camera.
> 
> 
> !\[Screenshot 2023-05-31 at 20 24 09\](https://github.com/GladysAssistant/Gladys/assets/11317212/b8ed647a-d233-4cce-8a86-07d1ae4781e7)
> !\[Screenshot 2023-05-31 at 20 24 15\](https://github.com/GladysAssistant/Gladys/assets/11317212/facff8c0-1ace-48db-81b6-5cfdc06e726f)
> !\[Screenshot 2023-05-31 at 20 24 34\](https://github.com/GladysAssistant/Gladys/assets/11317212/02684c62-c482-4ab9-a6a3-3f22f6d2c93e)
> !\[Screenshot 2023-05-31 at 20 24 46\](https://github.com/GladysAssistant/Gladys/assets/11317212/c6541484-4fa0-4f29-b6be-636dd7dcbd8d)

The action works, I just have to do the unit tests 🙂

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [May 31, 2023, 4:47pm UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/3 "2023-05-31T16:47:31Z")

</div>

Great 👌, you’re unstoppable now !!

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [May 31, 2023, 6:28pm UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/4 "2023-05-31T18:28:58Z")

</div>

Here is the result:

 ![Screenshot 2023-05-31 at 20.24.34](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/7/78b76abb17d929c4085fb8537222159da7114516.png)  
 ![Screenshot 2023-05-31 at 20.24.46](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c46680d69db1b3a87e1da0bdc1d8f206138abc1e.png)

---

<div class="post-metadata">

**Author:** ![Tlse-vins](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/tlse-vins/32/6054_2.png) [@Tlse-vins](https://community.gladysassistant.com/u/Tlse-vins)\
**Post date:** [May 31, 2023, 9:00pm UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/5 "2023-05-31T21:00:27Z")

</div>

It requires you to retrieve a sensor’s state change for that!

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 1, 2023, 2:27am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/6 "2023-06-01T02:27:14Z")

</div>

Very

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [June 1, 2023, 6:19am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/7 "2023-06-01T06:19:16Z")

</div>

@pierre-gilles: Normally, the pull request (PR) is ready

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 2, 2023, 3:54am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/8 "2023-06-02T03:54:51Z")

</div>

I’ve just left a review:

> <https://github.com/GladysAssistant/Gladys/pull/1804#pullrequestreview-1456607365>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> 
> \### Description of change
> 
> Add new action into scene to send a message with image of camera.
> 
> 
> !\[Screenshot 2023-05-31 at 20 24 09\](https://github.com/GladysAssistant/Gladys/assets/11317212/b8ed647a-d233-4cce-8a86-07d1ae4781e7)
> !\[Screenshot 2023-05-31 at 20 24 15\](https://github.com/GladysAssistant/Gladys/assets/11317212/facff8c0-1ace-48db-81b6-5cfdc06e726f)
> !\[Screenshot 2023-05-31 at 20 24 34\](https://github.com/GladysAssistant/Gladys/assets/11317212/02684c62-c482-4ab9-a6a3-3f22f6d2c93e)
> !\[Screenshot 2023-05-31 at 20 24 46\](https://github.com/GladysAssistant/Gladys/assets/11317212/c6541484-4fa0-4f29-b6be-636dd7dcbd8d)

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [June 2, 2023, 7:08am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/9 "2023-06-02T07:08:18Z")

</div>

I just fixed the feedback 🙂

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 2, 2023, 8:01am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/10 "2023-06-02T08:01:22Z")

</div>

So cool, thanks for the quick feedback! I tested it, and it works perfectly for me 🙂

I just have a small remark about the size of the action title, it doesn’t look great:

 ![Screenshot 2023-06-02 at 14.55.41](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/3/36a3359f02b879d2c8f5e6f2036680b0317d571f.png)

We should find a smaller title (but still clear), any ideas?

> <https://github.com/GladysAssistant/Gladys/pull/1804#pullrequestreview-1456850680>
>
> \### Pull Request check-list
> 
> To ensure your Pull Request can be accepted as fa…st as possible, make sure to review and check all of these items:
> 
> \- \[x\] If your changes affects code, did your write the tests?
> \- \[x\] Are tests passing? (\`npm test\` on both front/server)
> \- \[x\] Is the linter passing? (\`npm run eslint\` on both front/server)
> \- \[x\] Did you run prettier? (\`npm run prettier\` on both front/server)
> \- \[x\] If you are adding a new features/services, did you run integration comparator? (\`npm run compare-translations\` on front)
> \- \[x\] Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to \[the community\](https://community.gladysassistant.com/) for testing before merging.
> 
> \### Description of change
> 
> Add new action into scene to send a message with image of camera.
> 
> 
> !\[Screenshot 2023-05-31 at 20 24 09\](https://github.com/GladysAssistant/Gladys/assets/11317212/b8ed647a-d233-4cce-8a86-07d1ae4781e7)
> !\[Screenshot 2023-05-31 at 20 24 15\](https://github.com/GladysAssistant/Gladys/assets/11317212/facff8c0-1ace-48db-81b6-5cfdc06e726f)
> !\[Screenshot 2023-05-31 at 20 24 34\](https://github.com/GladysAssistant/Gladys/assets/11317212/02684c62-c482-4ab9-a6a3-3f22f6d2c93e)
> !\[Screenshot 2023-05-31 at 20 24 46\](https://github.com/GladysAssistant/Gladys/assets/11317212/c6541484-4fa0-4f29-b6be-636dd7dcbd8d)

---

<div class="post-metadata">

**Author:** ![guim31](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/guim31/32/4840_2.png) [@guim31](https://community.gladysassistant.com/u/guim31)\
**Post date:** [June 2, 2023, 10:50am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/11 "2023-06-02T10:50:03Z")

</div>

I think we can remove «&nbsp;par message&nbsp;», right?

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [June 2, 2023, 1:25pm UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/12 "2023-06-02T13:25:05Z")

</div>

Here are ChatGPT’s suggestions:

- «&nbsp;Send a photo in a message&nbsp;»
- «&nbsp;Send a camera capture in a message&nbsp;»
- «&nbsp;Send a camera capture in a message&nbsp;»
- «&nbsp;Send a camera capture as a message&nbsp;»
- «&nbsp;Send camera capture in a message&nbsp;»
- «&nbsp;Send camera capture via msg&nbsp;»
- «&nbsp;Send cam capture via msg&nbsp;»
- «&nbsp;Transmit a camera image in a message&nbsp;»
- «&nbsp;Send a camera capture as a message&nbsp;»
- «&nbsp;Share a camera photo in a message&nbsp;»
- «&nbsp;Transfer a camera image in a message&nbsp;»
- "Send a video capture in a

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 3, 2023, 6:36am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/13 "2023-06-03T06:36:43Z")

</div>

I agree with @guim31, « sending a camera image » is sufficient, isn’t it?

---

<div class="post-metadata">

**Author:** ![Lokkye](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/lokkye/32/5881_2.png) [@Lokkye](https://community.gladysassistant.com/u/Lokkye)\
**Post date:** [June 6, 2023, 12:39pm UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/14 "2023-06-06T12:39:53Z")

</div>

Yes, I think so too

I just pushed the changes to the PR

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 9, 2023, 4:15am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/15 "2023-06-09T04:15:14Z")

</div>

Indeed, it’s much better:

 ![Screenshot 2023-06-09 at 11.12.02](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/c/c06062f2973ffc93af44b450500f25ec61143f2a.png)

For me the PR is good, the code is good, and I tested it locally — it works perfectly 🙂

Great job, it’s merged 👏

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 15, 2023, 6:40am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/18 "2023-06-15T06:40:17Z")

</div>

This feature is available in Gladys Assistant 4.25, thanks to @Lokkye for the development 🙏

> [@Gladys Assistant 4.25 : Amélioration d'UX des scènes, nouveau widget & plus!](https://community.gladysassistant.com/t/gladys-assistant-4-25-amelioration-dux-des-scenes-nouveau-widget-plus/8214):
>
> Salut à tous ! Très heureux de vous présenter aujourd’hui une grosse release de Gladys, Gladys Assistant 4.25 fire Toutes les informations sur cette nouvelle version sont disponibles sur le blog : Cette version met à l’honneur les développements de @Lokkye, @bertrandda et @AlexTrovato, merci à eux pour leurs contribution pray A la recherche des testeurs Tuya ! Je profite de ce post pour mettre en avant que @Lokkye est actuellement à la recherche de testeurs sur l’intégration Tuya qu’i…

I’m closing this thread; for any bug fixes I invite you to create a new thread 🙏

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [June 15, 2023, 6:40am UTC](https://community.gladysassistant.com/t/pouvoir-envoyer-une-image-de-camera-par-message-dans-les-scenes/5515/19 "2023-06-15T06:40:21Z")

</div>


