Setting up Manual MQTT Alarm

I’ve started to get this setup. I have a few questions on how to architect it.

I have my windows, doors and motion sensors in groups already.
group.door_sensor_group
group.window_sensor_group
group.interior_motion_sensor_group

Am I meant to be writing my own automations to wire all this up or does something exist to provide this? Example automations

If alarm state is armed_away and door/window/motion_sensor_group goes on then trip the alarm
If alarm state is armed_night and door/window/(not motion) goes on then trip the alarm

Thanks for any guidance

Are people using the built in alarm panel ui with this or creating their own? I have fully kiosk browser setup on panels and can create a new view for the alarm as needed.