forked from dashdrum/esphome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxmas_tree.yaml
58 lines (44 loc) · 1.01 KB
/
xmas_tree.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
substitutions:
device_name: xmas_tree
upper_device_name: Xmas Tree
esphome:
name: $device_name
platform: ESP8266
board: d1_mini
on_boot:
then:
- light.turn_on:
id: $device_name
effect: "Twinkle"
wifi: !include include/wifi.yaml
captive_portal:
web_server:
port: 80
# Enable logging
logger:
level: DEBUG
# Enable Home Assistant API
# api:
ota:
mqtt: !include include/mqtt.yaml
light:
- platform: fastled_clockless
chipset: WS2811
pin: GPIO5
num_leds: 50
rgb_order: RGB
name: $upper_device_name
id: $device_name
state_topic: $device_name/light/$device_name/state
command_topic: $device_name/light/$device_name/command
effects: !include include/led_effects.yaml
binary_sensor:
- !include include/effects_button.yaml
sensor:
- platform: wifi_signal
name: $upper_device_name WiFi Signal
update_interval: 60s
switch:
- platform: restart
name: $upper_device_name Restart
- !include include/effects_switch.yaml