Smart alarm

Hi. I have manual alarm based on rflink switch (motion sensor). It works fine. Now I would like to have a house divided to 2 zones. Just imagine there is motion sensor 1 and motion sensor 2.

If alarm will be in state “armed home” I want only motin on “motion sensor1” to trigger alarm.
If alarm will be in state “armed away” I want both sensors (first or second) to be able to trigger alarm (this is the way it works now).

Do you think it is possible via automation?

yes. you’ll need to create 2 automations. The first automation just has motion sensor 1 as a trigger and armed home as a condition. The second automation has both motion sensors as a trigger and armed away as a condition.

Yes it should work. I will try it. Thanks.

And how about 2 zones on alarm itself? I mean to have those armed possibilities:

ARMED AWAY (ZONE 1 + 2)

ARMED HOME NIGHT (ZONE 1+2)

ARMED HOME (ZONE 1)

Is it possible to add such state into alarm ?