-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsprinkler_system.yaml
56 lines (48 loc) · 1.15 KB
/
sprinkler_system.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
esphome:
name: sprinkler_system
platform: ESP8266
board: nodemcuv2
includes:
- shift_register_switch.h
libraries:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
switch:
- platform: custom
lambda: |-
std::vector<switch_::Switch *> switches;
for(int i = 0; i < 8; i++) {
auto zone_switch = new ShiftRegisterSwitch(i);
App.register_component(zone_switch);
switches.push_back(zone_switch);
}
return switches;
switches:
- name: "Sprinkler Zone 1"
inverted: yes
- name: "Sprinkler Zone 2"
inverted: yes
- name: "Sprinkler Zone 3"
inverted: yes
- name: "Sprinkler Zone 4"
inverted: yes
- name: "Sprinkler Zone 5"
inverted: yes
- name: "Sprinkler Zone 6"
inverted: yes
- name: "Sprinkler Zone 7"
inverted: yes
- name: "Sprinkler Zone 8"
inverted: yes
status_led:
pin: 16
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
text_sensor:
- platform: version
name: esphome_sprinkler_system_esphome_version