From 15da3d82c236870b71f297368bf25e2c6b557691 Mon Sep 17 00:00:00 2001 From: hotroot <37292200+hotroot@users.noreply.github.com> Date: Tue, 11 Jan 2022 20:43:02 +0100 Subject: [PATCH 1/2] Update homematic Make Homematic IP Low Battery Messages appear correctly --- check/checks/homematic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check/checks/homematic b/check/checks/homematic index 1d90487..1ab16bb 100755 --- a/check/checks/homematic +++ b/check/checks/homematic @@ -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': From 6d9f2981ab086841722198bb0495b26c1ad32d84 Mon Sep 17 00:00:00 2001 From: hotroot <37292200+hotroot@users.noreply.github.com> Date: Wed, 12 Jan 2022 05:58:47 +0100 Subject: [PATCH 2/2] Update homematic Add missing LOW_BAT to list --- check/checks/homematic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check/checks/homematic b/check/checks/homematic index 1ab16bb..1970882 100755 --- a/check/checks/homematic +++ b/check/checks/homematic @@ -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: