That code is similar to mine. So, I'm lost here. What, if any, problem are we trying to solve, or question to answer?
In my case, how to lower the overhead of the VeraSecure device by reducing the battery polling from every 15 seconds to every 2 minutes...
At the top of L_G550Siren.lua change
local POLL_INTERVAL = 15 -- Seconds
to something less frequent like 120. And if you want to stop cellular polling entirely since you aren't using it, comment out
UpdateCellular()
at the very bottom.
I haven't seen any posts here about how to make modifications to the VeraSecure specific battery/cellular functionality. Probably should be a new thread...