bitcanon / visonicalarm

A simple library for the Visonic Alarm API written in Python 3.
MIT License
12 stars 2 forks source link

Integration with DSC alarms #27

Open jmluzio opened 11 months ago

jmluzio commented 11 months ago

Dear bitcanon,

Would it be possible to include a method "STAY" to comply with the option on DSC alarms?

Something like this would suffice! Thanks!

def arm_stay(self, partition): """ Arm in Home mode. """ arm_info = {'partition': partition, 'state': 'STAY'} arm_json = json.dumps(arm_info, separators=(',', ':')) return self.__send_request(self.__url_set_state, data_json=arm_json, request_type='POST')