Well, I'd just make a macro "button" WHEN Joe arms away THEN turn on Joe_flag for 10 seconds. This will be reported as a binary_sensor in HA.
Rinse and repeat for every user code.
But first I'd try to inspect with MQTT explorer what happens behind the scenes when the system is armed and see if the info you're looking for is there.
If it is then it's just a matter of listening to that MQTT topic in HA.
Rinse and repeat for every user code.
But first I'd try to inspect with MQTT explorer what happens behind the scenes when the system is armed and see if the info you're looking for is there.
If it is then it's just a matter of listening to that MQTT topic in HA.