-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkyle-office-outlet.yaml
89 lines (73 loc) · 1.47 KB
/
kyle-office-outlet.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
substitutions:
name: "Kyle Office Outlet"
esphome:
name: kyle-office-outlet
esp8266:
board: esp8285
api:
ota:
safe_mode: true
password: !secret fallback
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Sonoff Fallback Hotspot"
password: !secret fallback
manual_ip:
static_ip: 10.0.4.2
gateway: 10.0.0.1
subnet: 255.0.0.0
dns1: 10.0.0.10
dns2: 1.1.1.1
captive_portal:
logger:
baud_rate: 0
uart:
rx_pin: RX
baud_rate: 4800
sensor:
- platform: cse7766
current:
name: "${name} Current"
voltage:
name: "${name} Voltage"
power:
name: "${name} Power"
id: my_power
update_interval: 10s
- platform: total_daily_energy
name: "${name} Energy"
power_id: my_power
# Time component needed to reset energy at midnight
time:
- platform: homeassistant
id: homeassistant_time
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: true
name: "${name} Button"
on_press:
- switch.toggle: relay
- platform: status
name: "${name} Status"
output:
# Register the green LED as a dimmable output...
- platform: esp8266_pwm
id: s31_led
pin:
number: GPIO13
inverted: true
light:
# ... and then make a light out of it.
- platform: monochromatic
name: "${name} LED"
output: s31_led
switch:
- platform: gpio
name: "${name} Relay"
pin: GPIO12
id: relay