Three minor issues with the Qubino Smart Meter (ZMNHTDx)

For Z-Wave related questions in Domoticz

Moderator: leecollings

octavian
Posts: 3
Joined: Thursday 01 November 2018 18:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by octavian »

Hi,
I'm using similar smart meter (ZMNHXDx - 3-phase Smart Meter from Qubino) and after countless different tests I finally managed to get the correct counter value for active energy (kWh) instead of total energy (kVAh). The secret was to set polling for the first value for Energy (the first one in the list) in ozwcp: section Function, selection Poling, check first Energy (in the drop list), select User then Submit.
Hope to be the lucky solution.
User avatar
gizmocuz
Posts: 2352
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by gizmocuz »

@octavian, you are replying to a very old thread (and also making an issue on github)
What version did you test against ? I made a quick patch in the latest beta version to also take the value of kVAh as kWh for this meter,
this might have caused issues, and maybe we need two different meters in domoticz and not combine them to one
Quality outlives Quantity!
octavian
Posts: 3
Joined: Thursday 01 November 2018 18:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by octavian »

Sorry, I'm using the latest beta version of Domoticz (updated today) but still not able to see the correct value for Energy, domoticz reported kWh instead of kVAh and active energy is missing :(
Indeed I have ZMNHXDx - 3-phase Smart Meter from Qubino and not the one in the subject.I'm sorry, maybe a new thread would be a good idea.
Thank you
MikaelHakim
Posts: 5
Joined: Friday 09 March 2018 9:25
Target OS: Linux
Domoticz version:
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by MikaelHakim »

Hi

Is Qubino ZMNHXDx working on domoticz? I need dataloging feature for kWh (hetapump)
Last edited by MikaelHakim on Friday 04 January 2019 21:45, edited 1 time in total.
forkboy
Posts: 13
Joined: Saturday 20 January 2018 13:12
Target OS: -
Domoticz version:
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by forkboy »

I just installed my ZMNHXDx today.

The latest stable of Domoticz did see it as unknown.
After updating to the latest beta I see most of the values, but I am still having troubles with the total kWh value.
It seems that the kVAh value shown by OpenZwave in Control Panel is available in Domoticz as a kWh device.
The real kWh value presented by OpenZwave in Control Panel is not available in the list of devices.
forkboy
Posts: 13
Joined: Saturday 20 January 2018 13:12
Target OS: -
Domoticz version:
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by forkboy »

I now understand the problem with the kWh value. Both the kVAh and kWh values are reported to the same device in Domoticz. The kVAh value is reported last, and therefore that value is showing for the device. I have created a script that splits the kWh based on the last value + a margin of 20kWh and writes that value to a dummy device. So it is possible to get kWh value, but it takes some effort.

To me, this still looks like a bug, since the OpenZwave control panel does split the two by itself. There was already a bug opened: https://github.com/domoticz/domoticz/issues/2591
Patrykwaw
Posts: 2
Joined: Wednesday 27 December 2017 0:43
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10364
Location: Warsaw, PL
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by Patrykwaw »

@forkboy
Could you share this script?
forkboy
Posts: 13
Joined: Saturday 20 January 2018 13:12
Target OS: -
Domoticz version:
Contact:

Re: Three minor issues with the Qubino Smart Meter (ZMNHTDx)

Post by forkboy »

I have two devices. The "Warmtepomp kWh and kVAh" device is the device by Qubino.
The device "Warmtepomp kWh" has index 322, and is a virtual device.
I used to have a smaller number than 200000. But now after running for some while the difference between the kWh and kVAh values is quite large. I can run with a bigger number, which limits the risk of missing out when Domoticz has crashed.

The LUA script I created is:

Code: Select all

commandArray = {}

-- loop through all the changed devices
for deviceName,deviceValue in pairs(devicechanged) do
    if (deviceName=='Warmtepomp kWh and kVAh') then
        sPreviousCurrent, sPreviousTotal = otherdevices_svalues['Warmtepomp kWh']:match("([^;]+);([^;]+)")
        sCurrent, sTotal = otherdevices_svalues['Warmtepomp kWh and kVAh']:match("([^;]+);([^;]+)")

        if (tonumber(sTotal) >= tonumber(sPreviousTotal) and tonumber(sTotal) < (tonumber(sPreviousTotal) + tonumber(200000))) then
            -- print("New kWh found " .. sTotal)
			-- print("sPreviousCurrent " .. sPreviousCurrent)
			-- print("sPreviousTotal " .. sPreviousTotal)
			-- print("sCurrent " .. sCurrent)
			-- print("sTotal " .. sTotal)
			commandArray['UpdateDevice'] = "322|0|" .. sCurrent .. ";" .. sTotal
        end
    end
end

return commandArray
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest