Status based recorder

Hi!

I was searching on integration pages and on the forum but I can’t find anything like what I would like to use,

Can we somehow make recorder to store data about sensors only if a certain entity is in the right status.

I would use this for my outdoor alarm system which is based on Manual Alarm Panel and some sensores. We are moving a lot in the garden and recorder stores all movement. So I want to store movement data only when my outdoor alarm is in armed state.

Maybe there could be a 3rd kind of recorder map, not just exclude and include.
It could be “include if”, with two more variable, entity, and entity status. And if the given entity matches the status set up here, then the entites listed here are recorded.

Any toughts?

Thanks!
Tamás