Swann Security NVR

This topic is not about how to get Swann IP based camera into HA but rather its about how to change Modes From (Away, to Home or Night). Has anyone managed to get Swan NVR as a integration into Home assistant. I want to be able to change the mode of NVR to away when I leave the house and automatically set to Home mode when I am back. I can do this for other devices but I am not sure how to change this on Swann NVR via Home assistant. Is there a away to achive this without having a integration? Is there some kind of Pyton script or something that can be added to HA just to make toggle mode changes on Swan NVR?