This commit is contained in:
Simon 2020-10-04 16:11:43 +01:00
parent c43f3772cf
commit b02b485ca0

View File

@ -143,6 +143,7 @@ def make_bridges(_rules):
if e['SYSTEM'] == _confsystem and e['TS'] == 2:
ts2 = True
if _bridge[0:1] != '#':
print(_confsystem)
_tmout = CONFIG['SYSTEMS'][_confsystem]['DEFAULT_UA_TIMER']
if ts1 == False:
_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()})