Send a camera image via message in scenes

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

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)

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

Great :ok_hand:, you’re unstoppable now !!

Here is the result:


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

Very

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

I’ve just left a review:

I just fixed the feedback :slight_smile:

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

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

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

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

Here are ChatGPT’s suggestions:

  • « Send a photo in a message »
  • « Send a camera capture in a message »
  • « Send a camera capture in a message »
  • « Send a camera capture as a message »
  • « Send camera capture in a message »
  • « Send camera capture via msg »
  • « Send cam capture via msg »
  • « Transmit a camera image in a message »
  • « Send a camera capture as a message »
  • « Share a camera photo in a message »
  • « Transfer a camera image in a message »
  • "Send a video capture in a

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

Yes, I think so too

I just pushed the changes to the PR

Indeed, it’s much better:

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

Great job, it’s merged :clap:

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

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