Page 1 of 1

p1 3fase split in lua

Posted: Sunday 02 July 2023 15:30
by tiga
i am writing a script for a friend who has a 3 fase smart meter.

i want to split up the values in lua
i have a 1 fase meter and i split it like this

Code: Select all

sgebruik_hoog_tarief, sgebruik_laag_tarief, slevering_hoog_tarief, slevering_laag_tarief, sinkoop, slevering = otherdevices_svalues["elektriciteit"]:match("([^;]+);([^;]+);([^;]+);([^;]+);([^;]+);([^;]+)")
        sgebruik_hoog_tarief = tonumber(sgebruik_hoog_tarief)
        sgebruik_laag_tarief = tonumber(sgebruik_laag_tarief)
        slevering_hoog_tarief = tonumber(slevering_hoog_tarief)
        slevering_laag_tarief = tonumber(slevering_laag_tarief)
        sinkoop = tonumber(sinkoop)
        slevering = tonumber(slevering)


can anyone tell me the order/names with a 3 fase meter?

Re: p1 3fase split in lua

Posted: Sunday 02 July 2023 16:58
by jvdz
I don't have a 3fase P1 but:
Don't think that it is different for a 3 fase P1 as it shows you the totals of the net.
Believe you can find the details for each fase in their own L1/L2/L3 devices.

Re: p1 3fase split in lua

Posted: Monday 03 July 2023 9:12
by willemd
Depends on the interface used to the P1 meter I guess.

For example I have a Homewizard P1 dongle and within that interface I get line 1, 2 and 3 as well as total, so I can easily import it into domoticz.