21.03.2018, 19:20
(21.03.2018, 18:21)Erwin van der Zwart Wrote: Hi,
Try something like this:
BR,Code:1234567891011121314151617require('socket.http') require('json') socket.http.TIMEOUT = 15 data, code = socket.http.request('http://10.0.0.xxx/output.json') if data then data = json.pdecode(data) end if data then CurrentSummationDelivered = data['0015BC001B024257'].CurrentSummationDelivered InstantaneousDemand = data['0015BC001B024257'].InstantaneousDemand grp.update('1/1/1', tonumber(CurrentSummationDelivered)) grp.update('1/1/2', tonumber(InstantaneousDemand)) end
Erwin
Something tells me that I am forgetting something? No action on the KNX-bus. (Picture attached)