-
Notifications
You must be signed in to change notification settings - Fork 1
/
tv_backlight.yaml
59 lines (45 loc) · 1.03 KB
/
tv_backlight.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
substitutions:
device_name: tv_backlight
upper_device_name: TV Backlight
esphome:
name: $device_name
platform: ESP8266
board: d1_mini
on_boot:
then:
- light.turn_on:
id: $device_name
effect: "Rainbow"
wifi: !include include/wifi.yaml
captive_portal:
web_server:
port: 80
# Enable logging
logger:
level: INFO
# Enable Home Assistant API
# api:
ota:
mqtt: !include include/mqtt.yaml
light:
- platform: fastled_clockless
chipset: WS2811
pin: GPIO5
num_leds: 191
rgb_order: GRB
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
button:
- platform: restart
name: $upper_device_name Restart
switch:
- !include include/effects_switch.yaml