Okay, I'm trying to get that dzVents script to work, and for the most parts it works, but
I've commented this for now,
Code: Select all
-- domoticz.log(jsonGasPower)
-- local CurrentElectricityFlowHoog = tonumber(jsonGasPower.dev_44.CurrentElectricityFlow )
-- local CurrentElectricityQuantityHoog = tonumber(jsonGasPower.dev_44.CurrentElectricityQuantity)
-- local CurrentElectricityFlowLaag = tonumber(jsonGasPower.dev_46.CurrentElectricityFlow )
-- local CurrentElectricityQuantityLaag = tonumber(jsonGasPower.dev_46.CurrentElectricityQuantity)
-- local CurrentGasFlow = tonumber(jsonGasPower.dev_41.CurrentGasFlow)
-- local CurrentGasQuantity = tonumber(jsonGasPower.dev_41.CurrentGasQuantity)
-- local CurrentElectricityQuantity = CurrentElectricityFlowHoog + CurrentElectricityFlowLaag
-- local CurrentElectricityDeliveredLaag = 0
-- local CurrentElectricityDeliveredHoog = 0
-- local totalDeliveredPower = 0
According to a post on the domotica-forum I need to replace the dev_44 into either:
dev_2.2 is your're dev, Try that one?
or: dev_2.1
or: dev_2.5
or: dev_2.6
or: dev_2.8
Don't forget the underscore _ and the dot between 2 and 8
However, using either one of those will result in an error in the editor, about " expected ')' near '0.1' "
Who can help me with this?