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.43k stars 253 forks source link

Tuya Dimmer EDM-01AA-EU Not Connecting to Wifi after Reboot #908

Open Hollako opened 1 year ago

Hollako commented 1 year ago

Hello, hope all is good.

I am facing an issue with the Tuya Dimmer EDM-01AA-EU where it's not connecting to Wifi after reboot and I keep turning it Off and On many times before the Dimmer is connected again to Wifi. Once connected, the dimmer will work properly without any issues.

Version: 1.17.222 Device: Tuya Dimmer EDM-01AA-EU Chip/model: BK7231T

And here is below the autoexec.bat file script:

startDriver TuyaMCU setChannelType 1 toggle setChannelType 2 dimmer tuyaMcu_setBaudRate 115200 tuyaMcu_setDimmerRange 1 1000 linkTuyaMCUOutputToChannel 1 bool 1 linkTuyaMCUOutputToChannel 2 val 2 addEventHandler OnChannelChange 1 Publish LED_Strip/cmnd/Power2 $CH1 1 addEventHandler OnChannelChange 2 Publish LED_Strip/cmnd/Dimmer2 $CH2 1

Kindly advise where I should start to troubleshoot this issue.

Regards,

openshwprojects commented 1 year ago

Hello, does it happen without custom event handlers?

Hollako commented 1 year ago

Hello,

I tried it without the eventhandler it's the same. However please find below the status when I open the web interface:

"Cfg size: 3584, change counter: 18, ota counter: 0, boot incompletes 1 (might change to 0 if you wait to 30 sec)!"

boot incompletes is all-time 1, is it normal?

openshwprojects commented 1 year ago

It is normal. Boot incomplete is a boot that didnt last longer than N seconds (default: 30). Every boot is incomplete before timer reaches that time.

Can you empty autoexec.bat and try again?

Hollako commented 1 year ago

Hello,

I tried without the autoexec.bat and it looks working fine I rebooted it many times and it reconnect automatically without any intervention from my side.

Then after that, I copied again the autoexec.bat and rebooted it many and still reconnected without any issue. So by now, the Dimmer is very stable even if I restarted it, it works after a few seconds.

Thank you.

openshwprojects commented 1 year ago

No idea what's wrong, but it's always a good practice to put PowerSave 1 in the script