|
|
|
@ -122,11 +122,11 @@ def make_bridges(_rules):
|
|
|
|
ts1 = True
|
|
|
|
ts1 = True
|
|
|
|
if e['SYSTEM'] == _confsystem and e['TS'] == 2:
|
|
|
|
if e['SYSTEM'] == _confsystem and e['TS'] == 2:
|
|
|
|
ts2 = True
|
|
|
|
ts2 = True
|
|
|
|
|
|
|
|
_tmout = CONFIG['SYSTEMS'][_confsystem]['DEFAULT_UA_TIMER']
|
|
|
|
if ts1 == False:
|
|
|
|
if ts1 == False:
|
|
|
|
_rules[_bridge].append({'SYSTEM': _confsystem, 'TS': 1, 'TGID': bytes_3(int(_bridge)),'ACTIVE': False,'TIMEOUT': 240,'TO_TYPE': 'ON','OFF': [],'ON': [bytes_3(int(_bridge)),],'RESET': [], 'TIMER': time()})
|
|
|
|
_rules[_bridge].append({'SYSTEM': _confsystem, 'TS': 1, 'TGID': bytes_3(int(_bridge)),'ACTIVE': False,'TIMEOUT': _tmout * 60,'TO_TYPE': 'ON','OFF': [],'ON': [bytes_3(int(_bridge)),],'RESET': [], 'TIMER': time()})
|
|
|
|
if ts2 == False:
|
|
|
|
if ts2 == False:
|
|
|
|
_rules[_bridge].append({'SYSTEM': _confsystem, 'TS': 2, 'TGID': bytes_3(int(_bridge)),'ACTIVE': False,'TIMEOUT': 240,'TO_TYPE': 'ON','OFF': [],'ON': [bytes_3(int(_bridge)),],'RESET': [], 'TIMER': time()})
|
|
|
|
_rules[_bridge].append({'SYSTEM': _confsystem, 'TS': 2, 'TGID': bytes_3(int(_bridge)),'ACTIVE': False,'TIMEOUT': _tmout * 60,'TO_TYPE': 'ON','OFF': [],'ON': [bytes_3(int(_bridge)),],'RESET': [], 'TIMER': time()})
|
|
|
|
|
|
|
|
|
|
|
|
return _rules
|
|
|
|
return _rules
|
|
|
|
|
|
|
|
|
|
|
|
|