-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFan-Coil_Lylligo_T-can
142 lines (121 loc) · 2.96 KB
/
Fan-Coil_Lylligo_T-can
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
substitutions:
devicename: fancoil
description: fancoil Controller
entity_prefix: fancoil
esphome:
name: "${devicename}"
comment: "${description}"
on_boot:
- priority: 90
then:
- output.turn_on: modbus_en # Enable, aka RE on the MAX13487E - Drive RE high to let the AutoDirection circuit control the receiver
- output.turn_on: modbus_se # Not sleep, aka SHDN (shutdown) on the MAX13487E
- output.turn_on: modbus_5v # Provide power to the modbus chip (MAX13487E)
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
level: VERBOSE
baud_rate: 0
web_server:
port: 80
# Enable Home Assistant API
api:
encryption:
key: "*********************************"
ota:
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
- ssid: ******************
password: ***********************
reboot_timeout: 0.05h
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Fancoil_adapter"
password: "fancoiladapter"
captive_portal:
light:
- platform: neopixelbus
type: GRB
variant: WS2812
pin: GPIO04
num_leds: 1
name: "Light"
# These could be implemented as inverted so they didn't need explict enablement above i.e. disabled = HIGH
output:
- platform: gpio
pin: 17
id: modbus_en
- platform: gpio
pin: 19
id: modbus_se
- platform: gpio
pin: 16
id: modbus_5v
uart:
id: mod_bus
tx_pin: 22
rx_pin: 21
baud_rate: 9600
parity: NONE
stop_bits: 1
data_bits: 8
modbus:
# flow_control_pin: 17
id: heatpump_modbus
uart_id: mod_bus
modbus_controller:
- id: "fancoil"
## the Modbus device addr
address: 0x2
modbus_id: heatpump_modbus
setup_priority: -10
update_interval: 10s
sensor:
# fancoil Register: 1
- platform: fancoil_controller
modbus_controller_id: "fancoil"
name: "Fancoil Operational Mode"
id: "fancoil_operational_mode"
register_type: holding
address: 1601
value_type: U_WORD
# fancoil Register: 4
- platform: fancoil_controller
modbus_controller_id: "fancoil"
name: "Fancoil indoor Temp"
id: "fancoil_indoor_temp"
register_type: holding
address: 1604
value_type: U_WORD
unit_of_measurement: "°C"
# fancoil Register: 5
- platform: fancoil_controller
modbus_controller_id: "fancoil"
name: "Fancoil CW temp"
id: "fancoil_cw_temp"
register_type: holding
address: 1605
value_type: U_WORD
unit_of_measurement: "°C"
# fancoil Register: 6
- platform: fancoil_controller
modbus_controller_id: "fancoil"
name: "Fancoil HW temp"
id: "fancoil_hw_temp"
register_type: holding
address: 1606
value_type: U_WORD
unit_of_measurement: "°C"
# fancoil Register: 13
- platform: fancoil_controller
modbus_controller_id: "fancoil"
name: "Fancoil water pump status"
id: "fancoil_waterpump_status"
register_type: holding
address: 1613
value_type: U_WORD