forked from glmnet/esphome_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.esp32.yaml
More file actions
51 lines (43 loc) · 978 Bytes
/
Copy pathtest.esp32.yaml
File metadata and controls
51 lines (43 loc) · 978 Bytes
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
esphome:
name: test_esp32
platform: ESP32
board: nodemcu-32s
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "Test Esp32 Fallback Hotspot"
# password: "HBPaN3WZOE38"
# captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
output:
- platform: ledc
pin: GPIO19
id: 'buzzer'
switch:
- platform: template
name: buzzzzzz
turn_on_action:
then:
- output.ledc.set_frequency:
id: buzzer
frequency: 800Hz
- output.set_level:
id: buzzer
level: 50%
- delay: 500ms
- output.turn_off: buzzer
- delay: 200ms
- output.ledc.set_frequency:
id: buzzer
frequency: 600Hz
- output.set_level:
id: buzzer
level: 50%
- delay: 500ms
- output.turn_off: buzzer