This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Detect KNX bus power down
#1
Hello is there any way how to catch KNX bus power loss by event script?

For example my LM has a power backup, but KNX Power source does not, so after power restores i need to run some scripts.

Thank you.
Reply
#2
Try this
Code:
function check()
  local delta, wdt
    wdt = io.readfile('/tmp/tpuart.wdt') or ''
    wdt = tonumber(wdt) or 0
    delta = os.time() - wdt
  return delta <= 10
end

checktp = check()
log(checktp)
------------------------------
Ctrl+F5
Reply
#3
or see this: https://forum.logicmachine.net/showthrea...5#pid22845
Code:
status = buslib.isconnected()
log(status)
Best regards

forsterm
Reply


Forum Jump: