Variable not update together


I got a problem with UI5 and update of variable …

I got this code which read a xml file, extract a value and put this value in 2 devices (and 2 variables on each device).
This code is on a scheduled scene which run every minute.

local Puissance_inst = extractElement(“calc_pinst2”, rss, “1000”)
local Puissance_instKwh = Puissance_inst/1000
luup.variable_set(“urn:micasaverde-com:serviceId:EnergyMetering1”, “Watts”, Puissance_inst, 80)
luup.variable_set(“urn:micasaverde-com:serviceId:EnergyMetering1”, “KWH”, Puissance_instKwh, 80)

luup.variable_set(“urn:micasaverde-com:serviceId:EnergyMetering1”, “Watts”, Puissance_inst, 89)
luup.variable_set(“urn:micasaverde-com:serviceId:EnergyMetering1”, “KWH”, Puissance_instKwh, 89)[/code]

My problem is that the 4 variable are sometimes not egal as you can see on this pictures :
In this one, there is 3 values : 600W, 660 W and 0.72 Kwh (so 720 W)
Here, 180 W for all, except for the icon (600W)

I really don’t understand why this happen …


It’s not excluded for the interface to update slower. Does a page refresh fixes this?

Perhaps, but as it’s random …
Will try but it’s amazing if it’s slow update, I only have 10 active devices on my veralite.