forked from Tysonpower/HCPBridgeMqtt_tynet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathesphome_e3_preflash.yaml
More file actions
148 lines (127 loc) · 3.09 KB
/
esphome_e3_preflash.yaml
File metadata and controls
148 lines (127 loc) · 3.09 KB
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
# These substitutions allow the end user to override certain values
substitutions:
name: "supramatic-e3"
friendly_name: "SupraMatic E3"
state: "State"
opening: "Opening"
closing: "Closing"
open: "Open"
closed: "Closed"
stopped: "Stopped"
venting: "Venting"
error: "Error"
relay_state: "Relay state"
got_valid_broadcast: "Valid Status received"
error_state: "Error State"
prewarn_state: "Prewarn State"
light: "${friendly_name} Light"
sw_vent: "${friendly_name} Venting"
sw_light: "Switch Light"
btn_vent: "${friendly_name} Vent"
btn_impulse: "${friendly_name} Impulse"
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
project:
name: "tynet.hcpbridge_e3"
version: "1.0.0"
platformio_options:
board_build.f_cpu: 240000000L
board_build.flash_mode: qio
monitor_speed: 9600
monitor_filters: esp32_exception_decoder
lib_ldf_mode: deep+
# board_build.f_flash: 40000000L
external_components:
- source: github://Tysonpower/hoermann_door
refresh: 0s
esp32:
board: adafruit_feather_esp32s3
framework:
type: esp-idf # mandatory for esp version
dashboard_import:
package_import_url: github://Tysonpower/HCPBridgeMqtt_tynet/esphome_e3.yaml@main
i2c:
sda: GPIO06
scl: GPIO05
scan: false
wifi:
ap: {} # This spawns an AP with the device name and mac address with no password.
captive_portal:
improv_serial:
api:
ota:
- platform: esphome
web_server:
port: 80
version: 3
auth:
username: !secret web_username
password: !secret web_password
# Enable logging
logger:
level: DEBUG
baud_rate: 9600
uart:
id: uart_bus
baud_rate: 19200
rx_pin: 18
tx_pin: 17
# UAP Config from here ----------------------------------------
uapbridge_esp:
id: garage_door_comp
# rts_pin: 4 # this can be set, if needed for the connected hardware
uart_id: uart_bus
auto_correction: true
cover:
- platform: uapbridge
name: ${friendly_name}
device_class: garage
switch:
- platform: uapbridge
venting_switch:
id: venting_switch
name: "${sw_vent}"
#uncomment if you want to use the switch insteat of the light component for light
# light_switch:
# id: light_switch
# name: "${sw_light}"
binary_sensor:
- platform: uapbridge
relay_state:
name: "${relay_state}"
error_state:
name: "${error_state}"
prewarn_state:
name: "${prewarn_state}"
got_valid_broadcast:
name: "${got_valid_broadcast}"
output:
- platform: uapbridge
id: gd_light
light:
- platform: uapbridge
id: my_light
name: "${light}"
output: gd_light
text_sensor:
- platform: uapbridge
id: garage_door_state
name: "${state}"
# filters:
# - substitute:
# - "Opening -> ${opening}"
# - "Closing -> ${closing}"
# - "Open -> ${open}"
# - "Closed -> ${closed}"
# - "Stopped -> ${stopped}"
# - "Venting -> ${venting}"
# - "Error -> ${error}"
button:
- platform: uapbridge
vent_button:
id: button_vent
name: "${btn_vent}"
impulse_button:
id: button_impulse
name: "${btn_impulse}"