Getting the state of sensors in a formatted Gmail message

Hi,

I’m starting the process of setting some old Android phones as motion sensors using this great tutorial by @timwood
Now, I’ve grouped all my motion sensors in a group called “group.home_motion_sensors” and would like to be notified whenever there’s motion in one of the rooms while we’re away, more specifically :

  1. Which motion sensors are currently on
  2. A great to have - picture of the motion sensors that are on as an attachment to the e-mail message

My current automation is linked here

Thanks for help, it’s highly appreciated