WThermostatBeca icon indicating copy to clipboard operation
WThermostatBeca copied to clipboard

Hangs up when switching off from HA

Open FreakyPady opened this issue 2 years ago • 5 comments

Hi,

i'm a bloody beginner in using a thermostat with Home Assistant. But i bought a BHT-002 and flashed successful to firmware WThermostat 1.18-fas.

After that i set up an Mosquitto broker on my raspberry PI and integrated that with the MQTT integration into Home Assistant. Everything works... set temperature, go to manual or auto mode - fine. But if i switch the thermostate OFF it shows in HA a temperature of -3 degrees and then it hangs - no more control from HA possible. The device display has lighten up but doesn't show anything, no action if i try to push one of the buttons. In Browser i can access the ESP page and reinit the device - but doesn't help. Same if i access the network config page and press "save config and reboot". If i view the info-screen, i can see the problem: MCU-Initialized: No

Is just my new hardware hanging in this case?

Let me also tell, that i have bought a new BHT-002 with the tuya-controller WB3S. I replaced this tuya chip and changed to an ESP8266 (have seen that here)

FreakyPady avatar Aug 06 '22 15:08 FreakyPady

Annex: I ordered a second BHT-002 from Aliexpress. It came with the correct controller, so i just flashed it with the same firmware (see above). This device is working correctly and does not show the hanging-fault like described above! Very interesting for me...!

Any idea what could be the problem?

FreakyPady avatar Sep 02 '22 13:09 FreakyPady

Hi,

I have the same experience as FreakyPady. Screen freezes/MCU seems to disconnect. Only way to get them running again is to reflash with 1.25beta. BHT-002-GBLW with ESP-12F 1.20-fas en 1.21-fas. Luckily i could web-reflash it with the 1.25beta that it was forked from and after i cycled the power the screen came to life again. Will do some additional testing tonight. I have a pcb with 002-cms-wifi-and-modbus-20210528-V1 written on it.

dynamik-one avatar Sep 22 '22 14:09 dynamik-one

I did some thinkering. And it seems that i can control the thermostat physically and do anything a like with it without it "crashing" The funny thing is that i just upgraded to the 1.22-fas version. And where it usually keeps on -3 until i remove power from the thermostat by using the circuitbreaker it now displays the correct temp values in HA but the display is "off" but i can't switch it on. What would be the best order in supplying debugging information? tnx in advance.

dynamik-one avatar Oct 03 '22 17:10 dynamik-one

Ok. Using operation auto or heat within HA doesn't seem hang up the thermostat (I can still manipulate the temp setting and i can feel the IR heating switch on). Choosing the off option(choices are auto,heat,off) within the operation setting instanly kills it. The power button within HA also kills it.

dynamik-one avatar Oct 03 '22 19:10 dynamik-one

Maybe theres a difference in the device that comes with the "WB3S"? I had these problems just with the one i got delivered with the WB3S! Maybe they changed the MCU software also, not only the WiFi-Controller?

The last weeks, I ordered additional devices via AliExpress. They had all the "good" TYWE3S chip. I flashed all of them with v1.18 and they are all working without any problems!

At this point: Thanks to fashberg for this great project and work! For me it's very usefull!

FreakyPady avatar Oct 04 '22 14:10 FreakyPady