Add support for Toshiba heat pumps (#1121)

The IR signals are based on captures from the WH-H01EE remote
controller.

Both transmit and receive are supported.
This commit is contained in:
Joppy
2020-07-14 00:23:53 +12:00
committed by GitHub
parent 6e30bacae3
commit 582ac4ac81
5 changed files with 245 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import climate_ir
from esphome.const import CONF_ID
AUTO_LOAD = ['climate_ir']
toshiba_ns = cg.esphome_ns.namespace('toshiba')
ToshibaClimate = toshiba_ns.class_('ToshibaClimate', climate_ir.ClimateIR)
CONFIG_SCHEMA = climate_ir.CLIMATE_IR_WITH_RECEIVER_SCHEMA.extend({
cv.GenerateID(): cv.declare_id(ToshibaClimate),
})
def to_code(config):
var = cg.new_Pvariable(config[CONF_ID])
yield climate_ir.register_climate_ir(var, config)