Post your best Lua script examples here

User avatar
By iHaveESP
#7958 @tuanpm Thanks for all the work on this!

I'm using the bin at the first post.

I'm publishing dht temperature data every 45 seconds using a timer. I also have a PIR sensor that is interrupt driven to publish as well. At times they attempt to publish at the same time and I get "unprotected error in call to Lua API (pir.lua:34: sending in process)" and the module reboots.

I've added a flag to skip publishing dht data in favor of PIR motion, it helps, but reboot still happens. Seems like there should be a queue or something.

Anyone seeing this too?

-Thanks