mirror of
https://github.com/alexreinert/homematic_check_mk.git
synced 2023-10-10 11:37:02 +00:00
Merge 6d9f2981ab into 714fbae9e8
This commit is contained in:
@@ -31,7 +31,7 @@ def check_homematic(item, params, parsed):
|
|||||||
if messages is not None:
|
if messages is not None:
|
||||||
for msg in messages:
|
for msg in messages:
|
||||||
if item == 'Low Battery devices':
|
if item == 'Low Battery devices':
|
||||||
if msg[1] == 'LOWBAT':
|
if msg[1] in [ 'LOWBAT', 'LOW_BAT' ]:
|
||||||
state = 2
|
state = 2
|
||||||
devices.append(msg[0])
|
devices.append(msg[0])
|
||||||
elif item == 'Unreachable devices':
|
elif item == 'Unreachable devices':
|
||||||
@@ -42,7 +42,7 @@ def check_homematic(item, params, parsed):
|
|||||||
state = max(state, 1)
|
state = max(state, 1)
|
||||||
devices.append(msg[0])
|
devices.append(msg[0])
|
||||||
elif item == 'Service Messages':
|
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' ]:
|
if msg[1] in [ 'CONFIG_PENDING', 'DEVICE_IN_BOOTLOADER', 'UPDATE_PENDING', 'USBH_POWERFAIL' ]:
|
||||||
state = max(state, 1)
|
state = max(state, 1)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user