[heatpumpir] Add ESP-IDF support, bump to 1.0.40 (#13042)

This commit is contained in:
Jonathan Swoboda
2026-01-21 13:19:36 -05:00
committed by GitHub
parent 5345c96ff3
commit e62368e058
8 changed files with 13 additions and 8 deletions

View File

@@ -1 +1 @@
a34e66dce18eaf9d2d094fedf6b9799bbd9ec1e734f76a29544e3f6d61786c3e c0335c9688ce9defb4a7d4446b93460547e22df055668bacd7d963c770f0c65f

View File

@@ -107,7 +107,7 @@ CONFIG_SCHEMA = cv.All(
cv.Required(CONF_MAX_TEMPERATURE): cv.temperature, cv.Required(CONF_MAX_TEMPERATURE): cv.temperature,
} }
), ),
cv.only_with_arduino, cv.Any(cv.only_with_arduino, cv.only_on_esp32),
) )
@@ -126,6 +126,6 @@ async def to_code(config):
cg.add(var.set_max_temperature(config[CONF_MAX_TEMPERATURE])) cg.add(var.set_max_temperature(config[CONF_MAX_TEMPERATURE]))
cg.add(var.set_min_temperature(config[CONF_MIN_TEMPERATURE])) cg.add(var.set_min_temperature(config[CONF_MIN_TEMPERATURE]))
cg.add_library("tonia/HeatpumpIR", "1.0.37") cg.add_library("tonia/HeatpumpIR", "1.0.40")
if CORE.is_libretiny or CORE.is_esp32: if CORE.is_libretiny or CORE.is_esp32:
CORE.add_platformio_option("lib_ignore", ["IRremoteESP8266"]) CORE.add_platformio_option("lib_ignore", ["IRremoteESP8266"])

View File

@@ -1,6 +1,6 @@
#include "heatpumpir.h" #include "heatpumpir.h"
#ifdef USE_ARDUINO #if defined(USE_ARDUINO) || defined(USE_ESP32)
#include <map> #include <map>
#include "ir_sender_esphome.h" #include "ir_sender_esphome.h"

View File

@@ -1,6 +1,6 @@
#pragma once #pragma once
#ifdef USE_ARDUINO #if defined(USE_ARDUINO) || defined(USE_ESP32)
#include "esphome/components/climate_ir/climate_ir.h" #include "esphome/components/climate_ir/climate_ir.h"

View File

@@ -1,6 +1,6 @@
#include "ir_sender_esphome.h" #include "ir_sender_esphome.h"
#ifdef USE_ARDUINO #if defined(USE_ARDUINO) || defined(USE_ESP32)
namespace esphome { namespace esphome {
namespace heatpumpir { namespace heatpumpir {

View File

@@ -1,6 +1,6 @@
#pragma once #pragma once
#ifdef USE_ARDUINO #if defined(USE_ARDUINO) || defined(USE_ESP32)
#include "esphome/components/remote_base/remote_base.h" #include "esphome/components/remote_base/remote_base.h"
#include <IRSender.h> // arduino-heatpump library #include <IRSender.h> // arduino-heatpump library

View File

@@ -84,7 +84,7 @@ lib_deps =
fastled/FastLED@3.9.16 ; fastled_base fastled/FastLED@3.9.16 ; fastled_base
freekode/TM1651@1.0.1 ; tm1651 freekode/TM1651@1.0.1 ; tm1651
dudanov/MideaUART@1.1.9 ; midea dudanov/MideaUART@1.1.9 ; midea
tonia/HeatpumpIR@1.0.37 ; heatpumpir tonia/HeatpumpIR@1.0.40 ; heatpumpir
build_flags = build_flags =
${common.build_flags} ${common.build_flags}
-DUSE_ARDUINO -DUSE_ARDUINO
@@ -177,6 +177,7 @@ lib_deps =
${common:idf.lib_deps} ${common:idf.lib_deps}
droscy/esp_wireguard@0.4.2 ; wireguard droscy/esp_wireguard@0.4.2 ; wireguard
kahrendt/ESPMicroSpeechFeatures@1.1.0 ; micro_wake_word kahrendt/ESPMicroSpeechFeatures@1.1.0 ; micro_wake_word
tonia/HeatpumpIR@1.0.40 ; heatpumpir
build_flags = build_flags =
${common:idf.build_flags} ${common:idf.build_flags}
-Wno-nonnull-compare -Wno-nonnull-compare

View File

@@ -0,0 +1,4 @@
packages:
remote_transmitter: !include ../../test_build_components/common/remote_transmitter/esp32-idf.yaml
<<: !include common.yaml