mirror of
https://github.com/esphome/esphome.git
synced 2024-11-12 10:16:02 +01:00
Bump HeatpumpIR, add protocols, remove IRremoteESP8266 (#6996)
This commit is contained in:
parent
c6c1d3a3ad
commit
0c2f9b9dbb
@ -8,7 +8,6 @@ from esphome.const import (
|
|||||||
CONF_PROTOCOL,
|
CONF_PROTOCOL,
|
||||||
CONF_VISUAL,
|
CONF_VISUAL,
|
||||||
)
|
)
|
||||||
from esphome.core import CORE
|
|
||||||
|
|
||||||
CODEOWNERS = ["@rob-deutsch"]
|
CODEOWNERS = ["@rob-deutsch"]
|
||||||
|
|
||||||
@ -67,6 +66,11 @@ PROTOCOLS = {
|
|||||||
"carrier_qlima_2": Protocol.PROTOCOL_QLIMA_2,
|
"carrier_qlima_2": Protocol.PROTOCOL_QLIMA_2,
|
||||||
"samsung_aqv12msan": Protocol.PROTOCOL_SAMSUNG_AQV12MSAN,
|
"samsung_aqv12msan": Protocol.PROTOCOL_SAMSUNG_AQV12MSAN,
|
||||||
"zhjg01": Protocol.PROTOCOL_ZHJG01,
|
"zhjg01": Protocol.PROTOCOL_ZHJG01,
|
||||||
|
"airway": Protocol.PROTOCOL_AIRWAY,
|
||||||
|
"bgh_aud": Protocol.PROTOCOL_BGH_AUD,
|
||||||
|
"panasonic_altdke": Protocol.PROTOCOL_PANASONIC_ALTDKE,
|
||||||
|
"vaillantvai8": Protocol.PROTOCOL_VAILLANTVAI8,
|
||||||
|
"r51m": Protocol.PROTOCOL_R51M,
|
||||||
}
|
}
|
||||||
|
|
||||||
CONF_HORIZONTAL_DEFAULT = "horizontal_default"
|
CONF_HORIZONTAL_DEFAULT = "horizontal_default"
|
||||||
@ -122,7 +126,4 @@ 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.26")
|
cg.add_library("tonia/HeatpumpIR", "1.0.27")
|
||||||
|
|
||||||
if CORE.is_esp8266 or CORE.is_esp32:
|
|
||||||
cg.add_library("crankyoldgit/IRremoteESP8266", "2.8.6")
|
|
||||||
|
@ -61,6 +61,11 @@ const std::map<Protocol, std::function<HeatpumpIR *()>> PROTOCOL_CONSTRUCTOR_MAP
|
|||||||
{PROTOCOL_QLIMA_2, []() { return new Qlima2HeatpumpIR(); }}, // NOLINT
|
{PROTOCOL_QLIMA_2, []() { return new Qlima2HeatpumpIR(); }}, // NOLINT
|
||||||
{PROTOCOL_SAMSUNG_AQV12MSAN, []() { return new SamsungAQV12MSANHeatpumpIR(); }}, // NOLINT
|
{PROTOCOL_SAMSUNG_AQV12MSAN, []() { return new SamsungAQV12MSANHeatpumpIR(); }}, // NOLINT
|
||||||
{PROTOCOL_ZHJG01, []() { return new ZHJG01HeatpumpIR(); }}, // NOLINT
|
{PROTOCOL_ZHJG01, []() { return new ZHJG01HeatpumpIR(); }}, // NOLINT
|
||||||
|
{PROTOCOL_AIRWAY, []() { return new AIRWAYHeatpumpIR(); }}, // NOLINT
|
||||||
|
{PROTOCOL_BGH_AUD, []() { return new BGHHeatpumpIR(); }}, // NOLINT
|
||||||
|
{PROTOCOL_PANASONIC_ALTDKE, []() { return new PanasonicAltDKEHeatpumpIR(); }}, // NOLINT
|
||||||
|
{PROTOCOL_VAILLANTVAI8, []() { return new VaillantHeatpumpIR(); }}, // NOLINT
|
||||||
|
{PROTOCOL_R51M, []() { return new R51MHeatpumpIR(); }}, // NOLINT
|
||||||
};
|
};
|
||||||
|
|
||||||
void HeatpumpIRClimate::setup() {
|
void HeatpumpIRClimate::setup() {
|
||||||
|
@ -61,6 +61,11 @@ enum Protocol {
|
|||||||
PROTOCOL_QLIMA_2,
|
PROTOCOL_QLIMA_2,
|
||||||
PROTOCOL_SAMSUNG_AQV12MSAN,
|
PROTOCOL_SAMSUNG_AQV12MSAN,
|
||||||
PROTOCOL_ZHJG01,
|
PROTOCOL_ZHJG01,
|
||||||
|
PROTOCOL_AIRWAY,
|
||||||
|
PROTOCOL_BGH_AUD,
|
||||||
|
PROTOCOL_PANASONIC_ALTDKE,
|
||||||
|
PROTOCOL_VAILLANTVAI8,
|
||||||
|
PROTOCOL_R51M,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Simple enum to represent horizontal directios
|
// Simple enum to represent horizontal directios
|
||||||
|
@ -65,7 +65,7 @@ lib_deps =
|
|||||||
glmnet/Dsmr@0.7 ; dsmr
|
glmnet/Dsmr@0.7 ; dsmr
|
||||||
rweather/Crypto@0.4.0 ; dsmr
|
rweather/Crypto@0.4.0 ; dsmr
|
||||||
dudanov/MideaUART@1.1.9 ; midea
|
dudanov/MideaUART@1.1.9 ; midea
|
||||||
tonia/HeatpumpIR@1.0.26 ; heatpumpir
|
tonia/HeatpumpIR@1.0.27 ; heatpumpir
|
||||||
build_flags =
|
build_flags =
|
||||||
${common.build_flags}
|
${common.build_flags}
|
||||||
-DUSE_ARDUINO
|
-DUSE_ARDUINO
|
||||||
@ -93,8 +93,8 @@ lib_deps =
|
|||||||
ESP8266HTTPClient ; http_request (Arduino built-in)
|
ESP8266HTTPClient ; http_request (Arduino built-in)
|
||||||
ESP8266mDNS ; mdns (Arduino built-in)
|
ESP8266mDNS ; mdns (Arduino built-in)
|
||||||
DNSServer ; captive_portal (Arduino built-in)
|
DNSServer ; captive_portal (Arduino built-in)
|
||||||
crankyoldgit/IRremoteESP8266@2.8.6 ; heatpumpir
|
|
||||||
droscy/esp_wireguard@0.4.2 ; wireguard
|
droscy/esp_wireguard@0.4.2 ; wireguard
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${common:arduino.build_flags}
|
${common:arduino.build_flags}
|
||||||
-Wno-nonnull-compare
|
-Wno-nonnull-compare
|
||||||
@ -123,8 +123,8 @@ lib_deps =
|
|||||||
ESPmDNS ; mdns (Arduino built-in)
|
ESPmDNS ; mdns (Arduino built-in)
|
||||||
DNSServer ; captive_portal (Arduino built-in)
|
DNSServer ; captive_portal (Arduino built-in)
|
||||||
esphome/ESP32-audioI2S@2.0.7 ; i2s_audio
|
esphome/ESP32-audioI2S@2.0.7 ; i2s_audio
|
||||||
crankyoldgit/IRremoteESP8266@2.8.6 ; heatpumpir
|
|
||||||
droscy/esp_wireguard@0.4.2 ; wireguard
|
droscy/esp_wireguard@0.4.2 ; wireguard
|
||||||
|
|
||||||
build_flags =
|
build_flags =
|
||||||
${common:arduino.build_flags}
|
${common:arduino.build_flags}
|
||||||
-DUSE_ESP32
|
-DUSE_ESP32
|
||||||
|
19
tests/components/heatpumpir/test.bk72xx-ard.yaml
Normal file
19
tests/components/heatpumpir/test.bk72xx-ard.yaml
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
remote_transmitter:
|
||||||
|
pin: 6
|
||||||
|
carrier_duty_percent: 50%
|
||||||
|
|
||||||
|
climate:
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: daikin
|
||||||
|
horizontal_default: mleft
|
||||||
|
vertical_default: mup
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
||||||
|
- platform: heatpumpir
|
||||||
|
protocol: panasonic_altdke
|
||||||
|
horizontal_default: mright
|
||||||
|
vertical_default: mdown
|
||||||
|
name: HeatpumpIR Climate
|
||||||
|
min_temperature: 18
|
||||||
|
max_temperature: 30
|
Loading…
Reference in New Issue
Block a user