If using
BlueIris, you can set up 'geo-fencing'. it uses the phone app to tell the server when you're home (based on the phone's GPS)
and that can toggle recording profiles to achieve an automated armed/disarmed type setup...
but without that, you'll need to do as
@nayr suggests and wire something up to your cam's alarm input
(you'll have to provide voltage, not just contact closure)
and set up a 24hr schedule for 'Motion & Alarm' in the hik UI. when you leave the house, you flip the switch to set the alrm on,
then the cam records on motion util you flip the switch off again...