def add_all(DATA, kse): url_chan = kse.url + 'channels/' chan_list = remove_JSON_info(DATA['channels'], {'devices'}) print(add_chan(url_chan, chan_list, kse)) #Find all Channel Objects for channel in DATA['channels']: #Build All Devices in a Channel url_dev = url_chan + channel['common.ALLTYPES_NAME'] + '/devices/' dev_list = remove_JSON_info(channel['devices'], {'tags', 'tag_groups'}) print(connect.config_add(url_dev, dev_list, kse)) #Find All Device Objects in Channel for device in channel['devices']: #Build all Tags and Tag Groups in Device add_alltags_grps(device, url_dev + device['common.ALLTYPES_NAME'] + '/', kse) return
def add_tags(url, DATA, kse): return connect.config_add(url, DATA, kse)
def add_device(url, DATA, kse): return connect.config_add(url, DATA, kse)
def add_chan(url, DATA, kse): return connect.config_add(url, DATA, kse)
def add_exc(url, DATA, kse): return connect.config_add(url, DATA, kse)
def add_recur(url, DATA, kse): return connect.config_add(url, DATA, kse)
def add_sched(url, DATA, kse): return connect.config_add(url, DATA, kse)