1
0
mirror of https://github.com/alexreinert/homematic_check_mk.git synced 2023-10-10 13:37:02 +02:00

Update homematic

Make Homematic IP Low Battery Messages appear correctly
This commit is contained in:
hotroot 2022-01-11 20:43:02 +01:00 committed by GitHub
parent 714fbae9e8
commit 15da3d82c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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':