This commit is contained in:
hotroot 2022-01-12 05:59:04 +01:00 committed by GitHub
commit e36830cf51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ def check_homematic(item, params, parsed):
if messages is not None:
for msg in messages:
if item == 'Low Battery devices':
if msg[1] == 'LOWBAT':
if msg[1] in [ 'LOWBAT', 'LOW_BAT' ]:
state = 2
devices.append(msg[0])
elif item == 'Unreachable devices':
@ -42,7 +42,7 @@ def check_homematic(item, params, parsed):
state = max(state, 1)
devices.append(msg[0])
elif item == 'Service Messages':
if msg[1] not in [ 'LOWBAT', 'UNREACH', 'STICKY_UNREACH' ]:
if msg[1] not in [ 'LOWBAT', 'LOW_BAT', 'UNREACH', 'STICKY_UNREACH' ]:
if msg[1] in [ 'CONFIG_PENDING', 'DEVICE_IN_BOOTLOADER', 'UPDATE_PENDING', 'USBH_POWERFAIL' ]:
state = max(state, 1)
else: