You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#climate.pyimportesphome.codegenascgimportesphome.config_validationascvfromesphome.componentsimportclimate, sensorfromesphome.constimport (
CONF_ID,
CONF_SENSOR,
)
# Define the C++ namespace and class nameac_kel_ns=cg.esphome_ns.namespace("ac_kel")
AcKel=ac_kel_ns.class_("AcKel", climate.Climate, cg.Component)
# UPDATED CONFIG_SCHEMA - Add AcKel class as argumentCONFIG_SCHEMA=climate.climate_schema(AcKel).extend(
{
cv.Required(CONF_SENSOR): cv.use_id(sensor.Sensor),
}
).extend(cv.COMPONENT_SCHEMA)
# The to_code function remains the sameasyncdefto_code(config):
sens=awaitcg.get_variable(config[CONF_SENSOR])
var=cg.new_Pvariable(config[CONF_ID])
awaitcg.register_component(var, config)
awaitclimate.register_climate(var, config)
cg.add(var.set_sensor(sens))
I make wrong config using includes instead libraries.it meet compile error.but after I remove includes config and delete the folder it still show compile error.I had to go into inside esphome container to solve the problem
Tasmota seems has ability to control KELVINATOR AC but I don't want switch from esphome to that
SmartIR is another option but it seems need special hardware like broadlink
recently My IR remoter not work well.about only 5% successfully trigger. after many tries I found if I switch from esp32-supermini to standard esp32 board it will work fine.I don't know why.maybe my esp32-supermini has some damage or it just not support this very well.