Page 1 of 1

Odd thing appear in virtual device

Posted: Thursday 07 December 2017 21:13
by McMelloW
I have created a Dummy Hardware a some virtual devices to display the seperated meter readings of the P1 Smart Meter Energy Device. Passing the values the virtual counters a odd thing happens. The left hand is the Solar production Low and the righthand is the solar production High. See picture below

Image

The lefthand device shows two different values, this not correct. The value on top is wrong and is from the righthand device. On the righthand the device the values are correct.
Below the code where the values are passed on to the devices

Code: Select all

        commandArray[3] = {['UpdateDevice'] = idxr1 .. '|0|' .. tostring(EnergyExportLow)}
        commandArray[4] = {['UpdateDevice'] = idxr2 .. '|0|' .. tostring(EnergyExportHigh)}
Is there a simple explanation for this mix up?