Prior to the latest build HG Security service would disarm on a service restart. This was problematic as I had several scripts(programs) watching the security modules status at my off grid place.
I also was doing a nightly reboot with my 3B+ though right now the reasons for that elude me (I was new to HG when I set things up there)
With HG version 37 the security system now retains its status on a system restart just like the other modules always have. However I still have the script in place as a fail safe.
I've updated the script with some added things which aren't in my script but others may wish to see.
1: The script watches a Flag's (virtual module) condition and if on it runs. ( Note: Program
Fun with Flags required)
2: It turns off a security light
3: It sends a email if the script runs
4: It rearms the HG security system.
To use down load and rename to 1012-Auto_Arm_at_Start.hgx
Then in HG config/programs/security import the file and activate.
Be sure to edit the script trigger to specify the email address you wish the notification to go to and change the modules addresses or any thing else you wish.
This is a C# sample script