I tried the sum from 2 voltage devices in dzVents but no succes, could someone help me with this?
Cell Voltage 1 = device 136 virtual device General, voltage
Cell Voltage 2 = device 137 virtual device General, voltage
Sum of voltage device 136 and 137 = device 213. virtual device General, voltage
Code: Select all
return {
on = {
timer = { 'every 1 minutes' }
},
execute = function(domoticz, item)
local Cell1 = domoticz.devices(136)
local Cell2 = domoticz.devices(137)
local totalCells = domoticz.devices(213)
totalCells.updateVoltage(Cell1.Voltage + Cell2.Voltage)
end
}