forked from cbrosius/luxtronik_v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
luxtronik-v1-esp32.yaml
178 lines (165 loc) · 6.2 KB
/
luxtronik-v1-esp32.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
esphome:
name: luxtronik-v1-esp32
friendly_name: luxtronik-v1-esp32
includes:
- luxtronik_v1_sensor.h
esp32:
board: esp32dev
framework:
type: arduino
# Enable Home Assistant API - ESPHOME integration. API or MQTT is possible.
api:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
# Enable logging
logger:
# level: VERBOSE #makes uart stream available in esphome logstream
# disable serial loggin
baud_rate: 0
logs:
mqtt.component: DEBUG
ota:
web_server:
port: 80
#MQTT is only needed if you are not using the ESP for Home Assistant. Please deactivate api: in this case.
#mqtt:
# broker: !secret mqtt_broker
# # Optional variables:
# discovery: true
# username: !secret mqtt_user
# password: !secret mqtt_password
# UART parameters: 57600, 8, N, 1
# GPIO2 = D2, GPIO4 = D4
uart:
baud_rate: 57600
rx_pin: GPIO16
tx_pin: GPIO17
# baud_rate (Required, int): The baud rate of the UART bus.
# rx_pin (Optional, Pin): The pin to receive data on from the ESP’s perspective.
# tx_pin (Optional, Pin): The pin to send data to from the ESP’s perspective.
data_bits: 8
#data_bits (Optional, int): The number of data bits used on the UART bus. Options: 5 to 8. Defaults to 8.
#parity (Optional): The parity used on the UART bus. Options: NONE, EVEN, ODD. Defaults to NONE.
parity: NONE
#stop_bits (Optional, int): The number of stop bits to send. Options: 1, 2. Defaults to 1.
stop_bits: 1
# id (Optional, ID): Manually specify the ID for this UART hub if you need multiple UART hubs
id: uart_bus
sensor:
- platform: custom
lambda: |-
auto luxtronik_v1 = new luxtronik_v1_sensor(id(uart_bus));
App.register_component(luxtronik_v1);
return {
luxtronik_v1->temp_VL,
luxtronik_v1->temp_RL,
luxtronik_v1->temp_RL_Soll,
luxtronik_v1->temp_Heissgas,
luxtronik_v1->temp_Aussen,
luxtronik_v1->temp_BW,
luxtronik_v1->temp_BW_Soll,
luxtronik_v1->temp_WQ_Ein,
luxtronik_v1->temp_Kaeltekreis,
luxtronik_v1->temp_MK1_Vorl,
luxtronik_v1->temp_MK1VL_Soll,
luxtronik_v1->temp_Raumstat,
luxtronik_v1->ein_Abtau_Soledruck_Durchfluss,
luxtronik_v1->ein_Sperrzeit_EVU,
luxtronik_v1->ein_Hochdruckpressostat,
luxtronik_v1->ein_Motorschutz,
luxtronik_v1->ein_Niederdruckpressostat,
luxtronik_v1->ein_Fremdstromanode,
luxtronik_v1->aus_ATV,
luxtronik_v1->aus_BWP,
luxtronik_v1->aus_FBHP,
luxtronik_v1->aus_HZP,
luxtronik_v1->aus_Mischer_1_Auf,
luxtronik_v1->aus_Mischer_1_Zu,
luxtronik_v1->aus_VentWP,
luxtronik_v1->aus_VentBrunnen,
luxtronik_v1->aus_Verdichter_1,
luxtronik_v1->aus_Verdichter_2,
luxtronik_v1->aus_ZPumpe,
luxtronik_v1->aus_ZWE,
luxtronik_v1->aus_ZWE_Stoerung,
luxtronik_v1->status_Anlagentyp,
luxtronik_v1->status_Softwareversion,
luxtronik_v1->status_Bivalenzstufe,
luxtronik_v1->status_Betriebszustand,
luxtronik_v1->modus_Heizung,
luxtronik_v1->modus_Warmwasser,
};
sensors:
- name: "WP_Temp_Heizkreis_Ist_Vorlauftemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Heizkreis_Ist_Ruecklauftemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Heizkreis_Soll_Ruecklauftemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Heissgastemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Aussentemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Brauchwarmwasser_Ist_Temperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Brauchwarmwasser_Soll_Temperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Waermequellen_Eintrittstemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Waermequellen_Austrittstemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Mischkreis_1_Ist_Vorlauftemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Mischkreis_1_Soll_Vorlauftemperatur"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Temp_Raumstation"
unit_of_measurement: °C
accuracy_decimals: 1
- name: "WP_Eingaenge_Abtau_Soledruck_Durchfluss"
- name: "WP_Eingaenge_Sperrzeit_vom_EVU"
- name: "WP_Eingaenge_Hochdruckpressostat"
- name: "WP_Eingaenge_Motorschutz"
- name: "WP_Eingaenge_Niederdruckpressostat"
- name: "WP_Eingaenge_Anschluss_einer_Fremdstromanode"
- name: "WP_Ausgaenge_Abtauventil"
- name: "WP_Ausgaenge_Brauchwarmwasserumwaelzpumpe"
- name: "WP_Ausgaenge_Fussbodenheizungsumwaelzpumpe"
- name: "WP_Ausgaenge_Heizungsumwaelzpumpe"
- name: "WP_Ausgaenge_Mischer_1_Auf"
- name: "WP_Ausgaenge_Mischer_1_Zu"
- name: "WP_Ausgaenge_Ventilation_des_Waermepumpengehaeuses "
- name: "WP_Ausgaenge_Ventilator_Brunnen_oder_Soleumwaelzpumpe"
- name: "WP_Ausgaenge_Verdichter_1_in_Waermepumpe"
- name: "WP_Ausgaenge_Verdichter_2_in_Waermepumpe"
- name: "WP_Ausgaenge_Zusatzumwaelzpumpe_Zirkulationspumpe"
- name: "WP_Ausgaenge_Zweiter_Waermeerzeuger_1"
- name: "WP_Ausgaenge_Zweiter_Waermeerzeuger_2_Sammelstoerung"
- name: "WP_Status_Anlagentyp"
- name: "WP_Status_Softwareversion"
- name: "WP_Status_Bivalenzstufe"
- name: "WP_Status_Betriebszustand"
- name: "WP_Modus_Heizung"
- name: "WP_Modus_Warmwasser"
# The wifi_signal sensor platform allows you to read the signal strength of the currently connected WiFi Access Poin
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
- platform: uptime
name: Uptime Sensor
# The Status Binary Sensor exposes the node state (if it’s connected to via MQTT/native API) for Home Assistant
binary_sensor:
- platform: status
name: "luxtronik-v1-esp32"