Posts: 13
Threads: 6
Joined: Mar 2023
Reputation:
0
18.11.2023, 08:23
(This post was last modified: 18.11.2023, 08:23 by anve.)
I want to make these functions:
Alarm Functionality: Develop a mechanism to alert when a device is offline or missing.
Email Alert System: Configure an email notification system for device status changes or alarms.
Is there a native functionality in LM5 Lite to support such detailed device monitoring and alerting?
If there is no native support. How do I make this function?
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
There are several ways to do that..
When the devices are on TP you could use knxlib.ping('1.1.1')
Another option when you also need to check devices on IP is to have on each device at least 1 object with the read flag enabled and set to a grp address where it’s the only object that can respond on a read request and use grp.readvalue('1/1/1'), when you get a response you know the device is online.
A 3th option is to let each device send to a grp address cyclically and monitor the timestamp of that object. When the timestamp updates are stopping your devices is offline. This is the least prevered method as it increases the traffic a bit.
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
If you search the forum for knxlib.ping you will find enough samples..
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
He uses grp.readvalue and in my experience that returns the value of the read action, or am i wrong?
Posts: 7758
Threads: 42
Joined: Jun 2015
Reputation:
447
You are right, I've misread the function name. grp.readvalue can be used for monitoring. Alternatively poll interval can be set for certain objects then updatetime property can be checked using a scheduled script.
Posts: 184
Threads: 39
Joined: Sep 2015
Reputation:
4
I use an MDT STC power supply with diagnostic function that can detect failed devices.
It also measures bus traffic.
Posts: 1764
Threads: 6
Joined: Jul 2015
Reputation:
117
Just TAG your objects and fetch them by the TAG and iterate the table…