libretiny: Error when compiling climate platform: heatpumpir
I get this error every time
esphome:
name: rf
bk72xx:
board: generic-bk7231n-qfn32-tuya
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.0.124
gateway: 192.168.0.1
subnet: 255.255.255.0
logger:
api:
ota:
web_server:
port: 80
climate:
- platform: heatpumpir
name: "AC"
protocol: gree
horizontal_default: auto
vertical_default: auto
min_temperature: 10
max_temperature: 40
remote_transmitter:
pin: P7
carrier_duty_percent: 50%
About this issue
- Original URL
- State: open
- Created 9 months ago
- Comments: 27 (7 by maintainers)
Ok, finally got it working. I’ve created a PR in HeatpumpIR repository, but while it’s being accepted and released, this is not usable in esphome. So I’ve created a updated component that’s referring to the fork of this repository in ESPHome.
In the end, what you need to do is:
esphome:sectionSave and install, it should work by downloading my esphome repo containing the updated heatpumpir component, which refers to my fork to arduino-heatpumpir including the patch.
I think the IRremoteESP8266 library is installed when arduino-heatpumpir is installed since its library.json contains:
Once it’s installed, it’s safe to be deleted and it won’t reinstall it. I don’t know why.
Well:
What I did was to change the platform to ESP8266, which made PIO download the library. Then, I changed it back to BK72xx, but the library stayed there.
As soon as I remove the
IRremoteESP8266directory from.piolibdeps, the error goes away. Renaming the directory doesn’t help - it seems like PIO is just including every library it finds there. This is a PlatformIO bug.