Skip to content

Commit

Permalink
Update SimSolarBattery.lua
Browse files Browse the repository at this point in the history
Fixed an error, introduced in version 0.1.4
  • Loading branch information
jakenl authored Apr 10, 2021
1 parent eb8185c commit a774486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SimSolarBattery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
--version 0.1.2 05-04-2021: changed a check for latest data storage from seconds to milliseconds to accommodate meters that update every second
--version 0.1.3 05-04-2021: Added a check to avoid big deviations in calculation when inverter power level is small while having
-- also a small script interval. Added more debug logging
--version 0.1.4 09-04-2021: Description text fix + little preparation for future release
--version 0.1.4a 09-04-2021: Description text fix + little preparation for future release

--To be created virtual devices in the hardware section of Domoticz:
local solarBattery_name = 'Virtual Solar Battery' -- (1) Virtual 'Custom Sensor' device name for the 'Virtual Solar Battery'. Change axis label to kWh
Expand Down Expand Up @@ -179,6 +179,7 @@ return {
deltaTime = (domoticz.data.consumedEnergy.getLatest().time.millisecondsAgo)/1000
if (deltaTime < scriptInterval) then
domoticz.log("script trigger interval < than set value for scriptInterval (".. scriptInterval .. ")",domoticz.LOG_DEBUG)
goto endScript
end


Expand Down

0 comments on commit a774486

Please sign in to comment.