geoffdavis / esphome-mitsubishiheatpump

ESPHome Climate Component for Mitsubishi Heatpumps using direct serial connection
BSD 2-Clause "Simplified" License
498 stars 143 forks source link

HeatPump.h: No such file or directory #106

Closed raman325 closed 11 months ago

raman325 commented 11 months ago

I am running the latest version of ESPHome (2023.7.0) and I am trying to set up an ESP32 to control my heat pump. I have included this repo under external_components but when I try to compile the firmware I get the following error. I have attempted to manually download HeatPump.h and HeatPump.cpp to the /config folder but that doesn't resolve the error. Am I missing something obvious?

Installation confirmation:

Library Manager: Installing git+https://github.com/SwiCago/HeatPump
INFO Installing git+https://github.com/SwiCago/HeatPump
git version 2.30.2
Cloning into '/config/.esphome/platformio/cache/tmp/pkg-installing-jisdabmm'...
Library Manager: HeatPump@1.0.0+sha.cea90c5 has been installed!
INFO HeatPump@1.0.0+sha.cea90c5 has been installed!

Error logs

In file included from src/esphome.h:38,
                 from src/esphome/components/mitsubishi_heatpump/espmhp.h:20,
                 from src/esphome/components/mitsubishi_heatpump/espmhp.cpp:20:
src/esphome/components/mitsubishi_heatpump/espmhp.h:23:10: fatal error: HeatPump.h: No such file or directory

******************************************************************
* Looking for HeatPump.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:HeatPump.h"
* Web  > https://registry.platformio.org/search?q=header:HeatPump.h
*
******************************************************************

 #include "HeatPump.h"
          ^~~~~~~~~~~~
compilation terminated.
raman325 commented 11 months ago

🤦🏾 I was attempting to use the esp-idf framework instead of the arduino framework, which HeatPump doesn't support