Open fploen opened 2 weeks ago
Do you like to make a contribution / prepare a pull request to update the broken(?) snippet.
Do you like to make a contribution / prepare a pull request to update the broken(?) snippet.
Actually I see a switch to the updated code version is not possible yet, due to an identified bug in the http_request memory allocation, leading to crash of ESP due to short memory. The bug is identified and should be fixed with the next update.
Unfortunately, coding changes to http_request does break the previous readout code for Shelly 3 EM.
I thought the below to be a workaround for code file shelly-3em-http-status-json.yaml https://github.com/syssi/esphome-soyosource-gtn-virtual-meter/blob/main/powermeter-sensor-examples/shelly-3em-http-status-json.yaml
However, I find that the ESP resets itself in regular time periods, but can't seem to find the reason for it... So below possibly still contains a bug I did not find so far.
I suggest the following (works for me). The definition of max_response_buffer_size is important, as the Shelly readout is more than 1k of characters.