openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601, BL602 and LN882H
https://openbekeniot.github.io/webapp/devicesList.html
1.44k stars 262 forks source link

ln882HKI becomes unresponsive after 2 hours #1144

Closed geniusled closed 1 week ago

geniusled commented 6 months ago

Describe the bug After running the device for 2 hours, it becomes unresponsive. the following can be observed:

Firmware:

{ "vendor": "Tuya", "bDetailed": "0", "name": "Full Device Name Here", "model": "enter short model name here", "chip": "LN882H", "board": "TODO", "flags": "1152", "keywords": [ "TODO", "TODO", "TODO" ], "pins": { "0": "LED_n;0", "3": "Btn;0", "7": "BL0937CF1;0", "10": "WifiLED_n;0", "11": "Rel;0", "12": "BL0937CF;0", "19": "BL0937SEL;0" }, "command": "", "image": "https://obrazki.elektroda.pl/YOUR_IMAGE.jpg", "wiki": "https://www.elektroda.com/rtvforum/topic_YOUR_TOPIC.html" }

To Reproduce Steps to reproduce the behavior:

  1. Power up device, on homeassistant notice the correct mqtt data
  2. wait ~ 2 hours
  3. look again at homeassistant, notice all data is unkown, the uptime value stopped at ~2h
  4. go to device web page, no response
  5. look at router webpage , device offline
  6. go to physical device, press button, no response
  7. perform power cycle of device, now its running again.

Screenshots If applicable, add screenshots to help explain your problem. image

Additional context Add any other context about the problem here.

divadiow commented 6 months ago

see this thread https://www.elektroda.com/rtvforum/topic4044482.html

geniusled commented 6 months ago

see this thread https://www.elektroda.com/rtvforum/topic4044482.html

I just did a quick read through and i cant say for sure the issues are the same. In that post is seems to focus on the webserver being slow after 30seconds and then being unresponsive. That is not my case.

The post does say they have a PR in progress so i will keep an eye out for a new release to see if there is any difference.

openshwprojects commented 6 months ago

Have you seen this? https://github.com/openshwprojects/OpenBL602/commit/c73dcaab7e73ab68b29bd20a3b5d4c0992902c1d Maybe I can backport it to OpenLN882H? https://github.com/openshwprojects/OpenLN882H/commit/15fde0f403e408eab6ffa31d0e5711e97c37afe2 Can you wait for next release (in 5 minutes) and check new binary?

geniusled commented 6 months ago

i just installed the LN882H_1.17.518 via OTA. i will report how it turns out.

digging deeper in the uptime information on the device and i noticed that both times it happened at 2am (EST time) not sure if this means anything. on the main web page, it also says

NTP driver is not started, daily energy stats disbled. Periodic Statistics disabled. Use startup command SetupEnergyStats to enable function.

i dont currently need energy stats so im leaving it as is.

geniusled commented 6 months ago

Hi just a quick feedback, So the plug worked for about 20h then it froze the same way again. (*.518)

I rebooted it and its been up for a few hours.

i just updated to *.522 as i see there has been somes changes on the LN882, ill report if theres any improvements

geniusled commented 6 months ago

the device has been up for a few days now with 1.17.522, so it seems the original issue has been resolved. it seems that the uptime sensor was a bit slow updating since then but thats not an issue for me. i just updated to 1.17.529 , ill see if this changes.

ill close this issue for now. Thanks you for the efforts of this project.

geniusled commented 6 months ago

Sorry to bring this up again. The device lasted for 2 days until it crashed again on 1.17.529

The device is inconveniently monitoring all my network stuff (nas,wifi,router,etc) so its quite inconvenient to power cycle it/reset.

would there be an option for a long press reset from the button?

geniusled commented 1 week ago

Devices have been relatively stable since, closing