04.04.2020, 13:55
(04.04.2020, 07:23)Erwin van der Zwart Wrote: Hi,
At line 51 (log data) your need to add your code, look at the data table and select the value you want to send to KNX, i don't know the content of the data fields but something like:
BR,Code:-- log(data)
grp.checkwrite('1/1/1', data.yoursubfield1)
grp.checkwrite('1/1/2', data.yoursubfield2)
Erwin
I've tried different combinations of this with no luck. I.e. data.power is nil.
The "data" table looks like this
Code:
Tibber websocket 04.04.2020 15:53:26
* table:
["type"]
* string: data
["payload"]
* table:
["data"]
* table:
["liveMeasurement"]
* table:
["timestamp"]
* string: 2020-04-04T15:53:26+02:00
["accumulatedCost"]
* number: 5.133123
["maxPower"]
* number: 8190
["power"]
* number: 1555
["currency"]
* string: NOK
["averagePower"]
* number: 4301.6
["accumulatedConsumption"]
* number: 68.357767
["minPower"]
* number: 1269
["id"]
* number: 1
Best regards, Jørn.