-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support ESP-IDF #6
Comments
Hello Bascht74 and thanks for your message,
if fails with:
Perhaps it can be done just by using an alternative to HardwareSerial just for the ESP32. |
I am not a programmer, but I will look into it... |
What I found so far: Switching from your custom UART-Code to the ESPHome one could be the best way to get it all. Maybe it is not so difficult (I cannot assess), because the ESPHome guys wrote example: https://github.com/martin3000/ESPhome/blob/master/vaillantx6.h that way it would be possible to use ESP32 (Arduino/ESP-IDF)/ESP8266(Ardunino), and ESPHome would do the "magic":
more available functions:
|
Hi Bascht74, thanks for your message. I have changed the way to configure the UART for both frameworks to work. I have tested quickly on my esp8266 with the arduino framework. And I have compiled but not tested a version with esp-idf framework. Could you test with this branch (uart_config_change) ? You have to change the source in external_components this way:
And you now have to add something like this :
Here is an complete yaml example:
|
You reported SwiCago was saying esp32 was faster and could provide a way to reduce delays. My implementation doesn't need to reduce delays because there is no delay. None of the original delays have been retained. |
Great to hear about the efficieny... |
If I set the global log level to verbose I get some errors:
|
If I use your log settings, it compiles OK... |
So far it works... Good thing seems to be that I don't get any of those messages anymore:
... only if I compile with arduino... Only checking the status of the climate. |
"Components should block for at most 20-30ms." I get these messages when my logs are set too verbose. But it is worth it, and I think this is not a "worrying" warning. As the loop is not delayed by unnecessary instructions (like delays). I'm not surprised to see these messages disappear when using esp32. Thanks for investigating |
Great to hear. Fixing the two compile errors might be easy:
|
should be ok now. |
Thx, closing the issue! |
If you are using an ESP32 and you are using bluetooth with it (like I do for the external temperature updates), it is all written over the place that you have to / really should use the ESP-IDF instead of the arduino IDF.
The used api supports that already:
SwiCago/HeatPump@3085196
@SwiCago said the following about that...
Could you support the ESP-IDF with your component as well?
That way the bluetooth part would work more stable and lower delays/quicker response might be possible...
The text was updated successfully, but these errors were encountered: