please post code using the code formatting option. since spaces are significant in yaml, its hard for us to read without it.
here’s quick info on it:
for your automation, i think you’re mixing up triggers and conditions (but not 100% positive w/o the right formatting).
you have a trigger for the alarm going to disarmed from disarmed. so that won’t ever fire. what are you trying to do with that.
and i think you have in conditions what you should have as your trigger…
the trigger you need to have is when your wife and your locations are both not home (you’re defining as not_home and Work… but you could also define them as not home.