konnected-io / konnected-security

Konnected connects wired sensors and switches to SmartThings, Home Assistant, Hubitat and OpenHAB
https://konnected.io
Apache License 2.0
416 stars 322 forks source link

Panic unprotected error in call to Lua API (/opt/lua/application:lua:45: bad argument #1 to ‘alarm’ (Range: 1-6870947) #102

Closed qu3bec closed 5 years ago

qu3bec commented 5 years ago

Board rebooting constantly. Panic unprotected error in call to Lua API (/opt/lua/application:lua:45: bad argument #1 to ‘alarm’ (Range: 1-6870947)) I have 1 temp sensor and a 2 channel relay connected controlling garage door and a siren.today I updated to 2.30 but I believe board has been rebooting for sometime. It was running an older firmware and has been stable so far or till whenever it started rebooting. I have flashed few times to try and understand when this error starts and it starts as soon as I change the polling interval to 120 minutes. Looks like maximum you can put is 6870947 ms which is 114 mins?? Is that correct? Is this why I’m having issues??

heythisisnate commented 5 years ago

Yes, that's correct. The maximum value for a polling timer is 6870947 (1:54:30.947) See: https://nodemcu.readthedocs.io/en/master/modules/tmr/#parameters_6

Sorry this was not documented well. Will make a note to update that.