System Armed, But locks unlocked, doors Open, and or windows open

So In ST webCore, I was able to create a rule that if the system was armed and and dorlock was unlocked, any door contact was open, or and window contact was open, it would send me a SMS and tell me What locks were unlocked, what doors were open and what windows were open.

How can I do this in Rule Machine? the click and point for Rule Machine is what seems to be limiting my understanding. Is there any other way to create rules, by code or something? (And if so where can I find a guide)

SO if I arm the system, and any door lock, door contact, or window contact is open. I would get an SMS with a header if anything was open in that category like these examples: (Also how do you do a return line is the sms message?)

Example 1:
:warning: System Armed :warning:
:unlock: Locks Unlocked :unlock:
Back Door Lock
:door: Doors Open :door:
Back Door
:framed_picture: Windows Open :framed_picture:
Bedroom 1
Living room South

Example 2:
:warning: System Armed :warning:
:door: Doors Open :door:
Back Door
:framed_picture: Windows Open :framed_picture:
Bedroom 1
Living room South

Example 3:
:warning: System Armed :warning:
:unlock: Locks Unlocked :unlock:
Back Door Lock
:framed_picture: Windows Open :framed_picture:
Bedroom 1
Living room South

Example 4:
:warning: System Armed :warning:
:framed_picture: Windows Open :framed_picture:
Bedroom 1
Living room South

Example 5: (So no doors, windows or locks open or unlocked)
:alarm_clock: System Armed :alarm_clock:
:green_heart: No Issues :green_heart:

I am using @bptworld's Snapshot app for something similar. The Snapshot tiles can show you just the devices that don't meet the criteria.

HSM as such a feature built in.

Configure Alerts for Arming Failures (contacts open)

It's right here at the bottom of the screenshot.