Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ln882HKI becomes unresponsive after 2 hours #1144

Open
geniusled opened this issue Mar 25, 2024 · 7 comments
Open

ln882HKI becomes unresponsive after 2 hours #1144

geniusled opened this issue Mar 25, 2024 · 7 comments

Comments

@geniusled
Copy link

geniusled commented Mar 25, 2024

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

  • not connected to wifi anymore
  • ofcourse, no more mqtt
  • doesnt respond to button press anymore (relay,light)
  • lights stay on last state

Firmware:

  • Version OpenLN882H_1.17.516.bin (Build on Mar 23 2024 18:37:28 version LN882H_Test)
  • Device tuya power monitor socket (BSD01) (relay+button+2leds+BL0937)
  • Chip/model: Lightning LN882HKI (module labelled WL2S)
  • Device config (copied from web application / config)

{ "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.

  • the data was originally published every ~3seconds, which i found was alot. so i set command VCPPublishIntervals 60 60 to get updates every minute
  • the device was flashed via uart following this guide the only difference is i had to change the programming baud rate to 115200, a FW dump was also made prior to flashing
  • i will attempt to leave the web application page open with the logs tab open to see if theres any usefull logs when the device becomes unresponsive
@divadiow
Copy link
Contributor

@geniusled
Copy link
Author

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
Copy link
Owner

Have you seen this?
openshwprojects/OpenBL602@c73dcaa
Maybe I can backport it to OpenLN882H?
openshwprojects/OpenLN882H@15fde0f
Can you wait for next release (in 5 minutes) and check new binary?

@geniusled
Copy link
Author

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
Copy link
Author

geniusled commented Mar 27, 2024

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
Copy link
Author

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
Copy link
Author

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 geniusled reopened this Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants