it does not update either devce.
for the sake of testing i include a print command like this
Code: Select all
if stroomverschil > 0 then
print('regel 44')
commandArray['7705'] = { ['UpdateDevice'] = 7705 ..'|0|'..stroomverschil.. " kWh over " }
end
if stroomverschil < 0 then
print('regel 49')
commandArray['7705'] = { ['UpdateDevice'] = 7705 ..'|0|'..-stroomverschil.. " kWh tekort " }
end
gas_nu = Round(gas_nu/1000, 0)
gas_verbruikt = gas_nu - gas_1jan
if gas_verbruikt > 0 then
print('regel 57')
commandArray['7704'] = { ['UpdateDevice'] = 7704 ..'|0|'..gas_verbruikt.. " m3h " }
end
in the log regel 44 and regel 57 are showing up but no updates on the devices 7705 or 7704