This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFunHouse.yaml
175 lines (158 loc) · 3.85 KB
/
FunHouse.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
esphome:
name: funhouse
platformio_options:
board_build.mcu: esp32s2
board_build.variant: esp32s2
# Uncomment the following to use the Arduino framework.
# I don't recommend this since things don't appear to actually work.
# In particular, OTA updates haven't worked for me.
# platform:
# - https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
# platform_packages:
# - framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.2
esp32:
board: esp32dev
variant: esp32s2
framework:
type: esp-idf
logger:
api:
ota:
password: !secret ota_password
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Funhouse Fallback Hotspot"
password: !secret fallback_ap_password
# todo Not available when using the esp-idf framework.
# captive_portal:
i2c:
sda: GPIO34
scl: GPIO33
sensor:
- platform: mcp9808
name: "Temperature"
id: temperature_sensor
# Capacitive touch is not yet available for the ESP32-S2.
# esp32_touch:
# setup_mode: false
# Note that some of the click buttons may be triggered by the capacitive touch sensors.
binary_sensor:
- platform: gpio
pin: GPIO16
name: "PIR Sensor"
device_class: motion
- platform: gpio
name: "Button Up"
pin:
number: GPIO5
mode:
input: true
filters:
- delayed_on_off: 100ms
- platform: gpio
name: "Button Select"
pin:
number: GPIO4
mode:
input: true
filters:
- delayed_on_off: 100ms
- platform: gpio
name: "Button Down"
pin:
number: GPIO3
mode:
input: true
filters:
- delayed_on_off: 100ms
# - platform: esp32_touch
# name: "Capacitive Touch 6"
# pin: GPIO6
# threshold: 20000
# - platform: gpio
# pin:
# number: GPIO7
# mode:
# input: true
# pullup: true
# inverted: true
# name: "Capacitive Touch 7"
# - platform: gpio
# pin:
# number: GPIO8
# mode:
# input: true
# pullup: true
# inverted: true
# name: "Capacitive Touch 8"
# - platform: gpio
# pin:
# number: GPIO9
# mode:
# input: true
# pullup: true
# inverted: true
# name: "Capacitive Touch 9"
# - platform: gpio
# pin:
# number: GPIO10
# mode:
# input: true
# pullup: true
# inverted: true
# name: "Capacitive Touch 10"
# - platform: gpio
# pin:
# number: GPIO11
# mode:
# input: true
# pullup: true
# inverted: true
# name: "Capacitive Touch 11"
# - platform: esp32_touch
# name: "Capacitive Touch 12"
# pin: GPIO12
# threshold: 20000
status_led:
pin: GPIO37
# The NeoPixel driver is not available for the ESP32-S2 when using the esp-idf framework.
# light:
# - platform: neopixelbus
# chipset: DOTSTAR
# data_pin: GPIO14
# clock_pin: GPIO15
# num_leds: 5
# rgb_order: BRG
# name: "Dotstars"
# There are currently link errors when attempting to use SPI with the esp-idf framework.
# spi:
# clk_pin: GPIO36
# mosi_pin: GPIO35
# todo Enable when displaying text.
# font:
# - file: "FreeMono.ttf"
# id: my_font
# size: 20
# There are currently link errors when attempting to use the display component with the esp-idf framework.
# display:
# - platform: st7735
# model: "INITR_18BLACKTAB"
# reset_pin: GPIO41
# cs_pin: GPIO40
# dc_pin: GPIO39
# rotation: 0
# col_start: 0
# row_start: 0
# device_width: 240
# device_height: 240
# eight_bit_color: true
# lambda: |-
# it.printf(0, 0, id(my_font), "The sensor value is: %.1f", id(temperature_sensor).state);
# The ESP32 DAC component is not yet available for the ESP32-S2 when using the esp-idf framework.
# output:
# - platform: esp32_dac
# pin: GPIO42
# id: dac_output