07.01.2022, 12:12
Replace this script part:
With this:
Code:
function knx_callback(event)
local addr = event.dst
local value, dt = get_value(addr, event.datahex)
send_metric('rawdata', dt.name, addr, value)
end
With this:
Code:
local range1s = buslib.encodega('1/0/0')
local range1e = buslib.encodega('2/3/15')
local range2s = buslib.encodega('4/6/7')
local range2e = buslib.encodega('5/1/15')
function knx_callback(event)
local id = event.dstraw
if (range1s <= id and id <= range1e) or (range2s <= id and id <= range2e) then
local addr = event.dst
local value, dt = get_value(addr, event.datahex)
send_metric('rawdata', dt.name, addr, value)
end
end