Open roobre opened 2 days ago
I'm not a CPP expert or anything close, but I can't help but notice that there is nothing related to haier in the trace. However I have verified that adding the haier switch snippet definitely caused this to happen, and vice versa. As the error seems to be in malloc, perhaps somewhere the haier code is looping and exhausting all available memory? Or perhaps overflowing a buffer somewhere and corrupting the heap? Just a wild guess.
Hi @roobre,
That is strange. Technically those switches not doing anything it is just mark that every time when command will be sent in future bit that suppress sound feedback should be set to 1. I can't reproduce problem with my AC. But I am using ESP32. Can you try with ESP32? Through last releases I see that ESPHome uses more and more resources (providing more and more features of course) but for old ESP8266 it gets more and more difficult to keep up. When you adding switch it includes a lot of switch related code which push your device "over the edge".
Also one of the thing you can try is to remove everything related to Haier except plain AC itself and beeper switch. It should be something like this:
climate:
- name: HVAC
id: hvac
platform: haier
protocol: hon
uart_id: hw0
switch:
- platform: haier
haier_id: hvac
beeper:
name: Beeper
Remove all other buttons sensors and selects. Try to reproduce same problem. THanks.
Hey,
I recently updated esphome which brought the new version of the library with the native haier switches/buttons, which I think are great!
I'm however facing some trouble getting the new beeper swtich to work after the deprecation of
beeper: false
. When I try to callclimate.haier.beeper_off
, or just create a beeper switch as in the example:My esp8266 (d1_mini) crashes:
Feel free to ignore the timeout messages, this happened as I had to pull the esp out of the AC unit to reflash it via serial.
This is an hOn unit:
In this case the error occurred after a few seconds. Is something wrong with my config?
Here's the full config attached:
haier-works.yaml.txt haier-crashes.yaml.txt