-
Notifications
You must be signed in to change notification settings - Fork 0
/
kast.yaml
53 lines (45 loc) · 1.11 KB
/
kast.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
substitutions:
devicename: kast
friendly_name: Kast
################ Generics ################
esphome:
name: ${devicename}
friendly_name: ${friendly_name}
esp8266:
board: esp01_1m
wifi:
manual_ip:
static_ip: !secret wifi_static_ip_kast
# General settings: captive portal, logger, api, ota, time, restart switch, wifi
# General sensors: status, uptime, version, wifi info
packages:
general_settings: !include includes/general_settings.yaml
general_sensors: !include includes/general_sensors.yaml
################ Components ################
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: Button
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: Switch
pin: GPIO12
restore_mode: RESTORE_DEFAULT_OFF
id: relay
output:
# Register the green LED as a dimmable output ....
- platform: esp8266_pwm
id: s20_green_led
pin:
number: GPIO13
inverted: True
light:
# ... and then make a light out of it.
- platform: monochromatic
name: Green LED
output: s20_green_led