bruhautomation / ESP-MQTT-JSON-Multisensor

(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
https://youtu.be/jpjfVc-9IrQ
Apache License 2.0
340 stars 152 forks source link

Constant ESP reboots #58

Open boardyuk opened 6 years ago

boardyuk commented 6 years ago

Hi,

I've just setup 1 of these nodes to test as I want to have motion detection for some of the rooms in my house to control the lights with Home Assistant, however I'm experiencing a constant reboot of the ESP which is a little strange. I've got the ESP connected to my PC via USB to watch the serial monitor for the time being to ensure all messages are getting to MQTT.

Every few minutes (no specific timeout) the ESP is rebooting itself. I've got all the sensors connected except the RGB LED as I'm still waiting for those to arrive and I'm also undecided if I want the LED on all the nodes. The error I'm getting is -

rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld

I've had a look and it seems to be related to a reset pin, however I can't really see what's going on. Can anyone help me please?

Thanks!

mr-sneezy commented 6 years ago

I had similar bugs. One thing that helped I think was to follow this information below in the link. My RGB led now behaves as expected and I seem to have got rid of most if not all random resets at the same time... https://github.com/bruhautomation/ESP-MQTT-JSON-Multisensor/issues/38 Also there is a branch that has the 'random -ve sensor log value data after reset' fixed and I compiled with it for my two sensors, much more stable FWIW. https://github.com/DanielXYZ2000/ESP-MQTT-JSON-Multisensor

IKNout commented 6 years ago

Hi Have you found a fix for this. I have got the exact same problem, it was ok this morning until i connected a switch to HA and now i have this reboot problem. I have gone back and changed all back to previous and still it restarts. I have also removed all the sensors and still the NodeMCU reboots. Thanks

IKNout commented 6 years ago

FWIW i have now found that the 2 sensors that i have built and configured seem to interfere with each other causing them to constantly reboot. If i disconnect 1 the other is great. I am guessing there is a simple solution, but i am struggling to see it at the moment.
Any ideas???

Si

consolacion commented 5 years ago

When you built the 2nd one, did you give it its own mqtt client name?

boardyuk commented 5 years ago

I haven't yet found a solution to this. I've actually ripped out the RGB LED code from the sketch as I have no need for the LED and it still reboots.

I'm lost as to what is causing this really.

danielgonzacas commented 5 years ago

you can try upload the sketch selecting Arduino/tools/erase flash/ sketch + wifi settings, maybe it can help you.