Closed matejek closed 1 year ago
Fixed it. My yaml file was not correct. Here the working one:
esphome: name: comfoair350 platform: ESP8266 board: esp01_1m includes:
- comfoair.h
wifi: ssid: password:
Disable uart logging
logger: baud_rate: 0
Enable Home Assistant API
api: encryption: key:
ota:
sensor: binary_sensor:
uart: id: uart_bus baud_rate: 9600 tx_pin: TX rx_pin: RX
climate:
platform: custom lambda: |- auto ca = new esphome::comfoair::ComfoAirComponent(id(uart_bus)); App.register_component(ca);
ca->outside_air_temperature = new Sensor(); App.register_sensor(ca->outside_air_temperature); ca->outside_air_temperature->set_object_id("Comfoair Outside Air Temperature"); ca->outside_air_temperature->set_name("Comfoair Outside Air Temperature");
ca->supply_air_temperature = new Sensor(); App.register_sensor(ca->supply_air_temperature); ca->supply_air_temperature->set_object_id("Comfoair Supply Air Temperature"); ca->supply_air_temperature->set_name("Comfoair Supply Air Temperature");
ca->return_air_temperature = new Sensor(); App.register_sensor(ca->return_air_temperature); ca->return_air_temperature->set_object_id("Comfoair Return Air Temperature"); ca->return_air_temperature->set_name("Comfoair Return Air Temperature");
ca->exhaust_air_temperature = new Sensor(); App.register_sensor(ca->exhaust_air_temperature); ca->exhaust_air_temperature->set_object_id("Comfoair Exhaust Air Temperature"); ca->exhaust_air_temperature->set_name("Comfoair Exhaust Air Temperature");
ca->fan_supply_air_percentage = new Sensor(); App.register_sensor(ca->fan_supply_air_percentage); ca->fan_supply_air_percentage->set_object_id("Comfoair Supply Air Percentage"); ca->fan_supply_air_percentage->set_name("Comfoair Supply Air Percentage");
ca->fan_exhaust_air_percentage = new Sensor(); App.register_sensor(ca->fan_exhaust_air_percentage); ca->fan_exhaust_air_percentage->set_object_id("Comfoair Fan Exhaust Air Percentage"); ca->fan_exhaust_air_percentage->set_name("Comfoair Fan Exhaust Air Percentage");
ca->fan_speed_supply = new Sensor(); App.register_sensor(ca->fan_speed_supply); ca->fan_speed_supply->set_object_id("Comfoair Fan Speed Supply"); ca->fan_speed_supply->set_name("Comfoair Fan Speed Supply");
ca->fan_speed_exhaust = new Sensor(); App.register_sensor(ca->fan_speed_exhaust); ca->fan_speed_exhaust->set_object_id("Comfoair Fan Speed Exhaust"); ca->fan_speed_exhaust->set_name("Comfoair Fan Speed Exhaust");
ca->is_bypass_valve_open = new BinarySensor(); ca->is_bypass_valve_open->set_name("Comfoair Bypass Valve"); ca->is_bypass_valve_open->set_object_id("Comfoair Bypass Valve"); App.register_binary_sensor(ca->is_bypass_valve_open);
ca->is_preheating = new BinarySensor(); ca->is_preheating->set_name("Comfoair Preheating"); ca->is_preheating->set_object_id("Comfoair Preheating"); App.register_binary_sensor(ca->is_preheating);
ca->is_supply_fan_active = new BinarySensor(); ca->is_supply_fan_active->set_name("Comfoair Supply Fan"); ca->is_supply_fan_active->set_object_id("Comfoair Supply Fan"); App.register_binary_sensor(ca->is_supply_fan_active);
ca->is_filter_full = new BinarySensor(); ca->is_filter_full->set_name("Comfoair Filter Full"); ca->is_filter_full->set_object_id("Comfoair Filter Full"); App.register_binary_sensor(ca->is_filter_full);
ca->is_summer_mode = new BinarySensor(); ca->is_summer_mode->set_name("Comfoair Summer Mode"); ca->is_summer_mode->set_object_id("Comfoair is Summer Mode"); App.register_binary_sensor(ca->is_summer_mode);
ca->return_air_level = new Sensor(); App.register_sensor(ca->return_air_level); ca->return_air_level->set_object_id("Comfoair Return Air Level"); ca->return_air_level->set_name("Comfoair Return Air Level");
ca->supply_air_level = new Sensor(); App.register_sensor(ca->supply_air_level); ca->supply_air_level->set_object_id("Comfoair Supply Air Level"); ca->supply_air_level->set_name("Comfoair Supply Air Level");
App.register_climate(ca); return {ca};
climates:
- name: "ComfoAir350"
Thanks to the contributors and authors!
I refer to #22 as I helped me to at least compile.
Now I am receiving "values" but not at assigned to entities, .... or just some. What adjustments in the yaml file do I have to perform?
My log-record
I am using following comfoair.yaml
And the following comfoair.h