forked from wichers/esphome-comfoair
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comfoair.yaml
80 lines (67 loc) · 2.61 KB
/
comfoair.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
esphome:
name: comfoair
platform: ESP8266
board: esp01_1m
includes:
- comfoair.h
wifi:
ssid: 'your-wifi-ssid-here'
password: 'put-your-wifi-password-here'
# Disable uart logging
logger:
baud_rate: 0
# Enable Home Assistant API
api:
password: 'set-an-api-password-here'
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("Comfoair Outside Air");
App.register_sensor(ca->outside_air_temperature);
ca->supply_air_temperature = new Sensor("Comfoair Supply Air");
App.register_sensor(ca->supply_air_temperature);
ca->return_air_temperature = new Sensor("Comfoair Return Air");
App.register_sensor(ca->return_air_temperature);
ca->exhaust_air_temperature = new Sensor("Comfoair Exhaust Air");
App.register_sensor(ca->exhaust_air_temperature);
ca->fan_supply_air_percentage = new Sensor("Comfoair Fan Supply Air");
App.register_sensor(ca->fan_supply_air_percentage);
ca->fan_exhaust_air_percentage = new Sensor("Comfoair Fan Exhaust Air");
App.register_sensor(ca->fan_exhaust_air_percentage);
ca->fan_speed_supply = new Sensor("Comfoair Fan Speed Supply");
App.register_sensor(ca->fan_speed_supply);
ca->fan_speed_exhaust = new Sensor("Comfoair Fan Speed Exhaust");
App.register_sensor(ca->fan_speed_exhaust);
ca->is_bypass_valve_open = new BinarySensor();
ca->is_bypass_valve_open->set_name("Comfoair Bypass Valve");
App.register_binary_sensor(ca->is_bypass_valve_open);
ca->is_preheating = new BinarySensor();
ca->is_preheating->set_name("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");
App.register_binary_sensor(ca->is_supply_fan_active);
ca->is_filter_full = new BinarySensor();
ca->is_filter_full->set_name("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");
App.register_binary_sensor(ca->is_summer_mode);
ca->return_air_level = new Sensor("Comfoair Return Air Level");
App.register_sensor(ca->return_air_level);
ca->supply_air_level = new Sensor("Comfoair Supply Air Level");
App.register_sensor(ca->supply_air_level);
App.register_climate(ca);
return {ca};
climates:
- name: "put-yout-comfoair-name-here"