p1 3fase split in lua

Moderator: leecollings

Post Reply
tiga
Posts: 156
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

p1 3fase split in lua

Post 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?
User avatar
jvdz
Posts: 2206
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: p1 3fase split in lua

Post 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.
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
willemd
Posts: 628
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: p1 3fase split in lua

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests