-
Notifications
You must be signed in to change notification settings - Fork 3
/
Sprinkler_control.yaml
107 lines (90 loc) · 1.91 KB
/
Sprinkler_control.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
esphome:
name: irrigation-node
platform: ESP8266
board: d1_mini
esp8266_restore_from_flash: false
on_boot:
- switch.turn_off: relay_1
- switch.turn_off: relay_2
- switch.turn_off: relay_3
- switch.turn_off: relay_4
- switch.turn_off: relay_5
- switch.turn_off: relay_6
- switch.turn_off: relay_7
- switch.turn_off: relay_8
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: "58cde34e759528b22cd12f8e67f1545a"
wifi:
ssid: !secret wifi_ssid_ext
password: !secret wifi_password
fast_connect: true
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Irrigation-Node Fallback Hotspot"
password: "Ne6eiK6wqhNl"
captive_portal:
switch:
- platform: gpio
name: "Zone 1"
id: relay_1
pin: 5
inverted: true
- platform: gpio
name: "Zone 2"
id: relay_2
pin: 4
inverted: true
- platform: gpio
name: "Zone 3"
id: relay_3
pin: 0
inverted: true
- platform: gpio
name: "Zone 4"
id: relay_4
pin: 2
inverted: true
- platform: gpio
name: "Zone 5"
id: relay_5
pin: 14
inverted: true
- platform: gpio
name: "Zone 6"
id: relay_6
pin: 12
inverted: true
- platform: gpio
name: "Zone 7"
id: relay_7
pin: 13
inverted: true
- platform: gpio
name: "Well Pump"
id: relay_8
pin: 16
inverted: True
binary_sensor:
- platform: status
name: "Irrigation System Status"
id: irr_stat
interval:
- interval: 15s
then:
- if:
condition:
wifi.connected:
then:
else:
- switch.turn_off: relay_1
- switch.turn_off: relay_2
- switch.turn_off: relay_3
- switch.turn_off: relay_4
- switch.turn_off: relay_5
- switch.turn_off: relay_6
- switch.turn_off: relay_7
- switch.turn_off: relay_8