-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhackem-autopolive.yml
65 lines (58 loc) · 1.28 KB
/
hackem-autopolive.yml
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
esphome:
name: hackem-yellows # TODO: rename
esp32:
board: esp32dev
logger:
api:
encryption:
key: !secret doorlock_apikey
captive_portal:
web_server:
ota:
password: !secret ota_pass
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: Hackem Yellows Fallback Hotspot
password: !secret wifi_fallback_password
sensor:
- platform: adc
pin: GPIO35
name: dryness_y1
attenuation: 11db
update_interval: 10s
output:
- platform: gpio
inverted: true
pin: GPIO18
id: relay_y1
- platform: gpio
inverted: true
pin: GPIO19
id: relay_y2
switch:
- platform: output
name: relay_y1
output: relay_y1
id: relay_y1_sw
restore_mode: ALWAYS_OFF
on_turn_on:
- logger.log: "Switch 1 Turned On"
- delay: 5s
- logger.log: "Switch 1 Turning Off automatically"
- switch.turn_off: relay_y1_sw
on_turn_off:
- logger.log: "Switch 1 Turned Off"
- platform: output
name: relay_y2
output: relay_y2
id: relay_y2_sw
restore_mode: ALWAYS_OFF
on_turn_on:
- logger.log: "Switch 2 Turned On"
- delay: 5s
- logger.log: "Switch 2 Turning Off automatically"
- switch.turn_off: relay_y2_sw
on_turn_off:
- logger.log: "Switch 2 Turned Off"