-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathledstrip.yaml
110 lines (101 loc) · 3.15 KB
/
ledstrip.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
substitutions:
devicename: ledstrip
upper_devicename: Bureau
light_id_alarme: ledstrip_bureau
buzzer_pwm: D6
buzzer_platform: esp8266_pwm
bme280_i2c_sda: D2
bme280_i2c_scl: D1
packages:
device_base: !include common/device_base.yaml
device_esp32: !include common/device_esp8266.yaml
alarme: !include common/sensors_alarme.yaml
buzzer: !include common/buzzer.yaml
bme280: !include common/bme280.yaml
esphome:
name: ${devicename}
friendly_name: ${upper_devicename}
esp8266:
board: nodemcuv2
wifi:
manual_ip:
static_ip: 192.168.1.200
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable logging
# Set logger to NOT default pins because we are using RX and TX for driving LEDs
logger:
baud_rate: 0
hardware_uart: uart1
light:
- platform: neopixelbus
#internal: true
name: "FastLED SPI Light"
id: ledstrip_bureau
type: RGB
variant: P9813
num_leds: 2
data_pin: D7 # GPIO13 preferred for neopixelbus on ESP8266
clock_pin: D5 # GPIO14 required for neopixelbus on ESP8266
# method:
# type: spi
# speed: 0.500MHz
# gamma_correct: 1.8
# color_correct: [100%, 68%, 46%]
# effects:
# - <<: !include common/light_effect_alarme.yaml
# - pulse:
# - addressable_rainbow:
# - flicker:
# - flicker:
# name: Flicker more deviant
# alpha: 60%
# - flicker:
# name: Flicker more intense and deviant
# intensity: 20%
# alpha: 60%
# - random:
# - addressable_twinkle:
# - addressable_random_twinkle:
# - addressable_fireworks:
# - addressable_fireworks:
# name: Fireworks Effect With Random Colors
# use_random_color: true
# - addressable_fireworks:
# name: Very slow Fireworks Effect With Random Colors
# use_random_color: true
# spark_probability: 20%
# fade_out_rate: 90
# - addressable_flicker:
# - addressable_flicker:
# name: Addressable Flicker more intense
# intensity: 60%
# - addressable_color_wipe:
# - addressable_color_wipe:
# name: Color Wipe Effect With Custom Values
# add_led_interval: 1s
# - addressable_lambda:
# name: "Fireplace simple"
# update_interval: 30ms
# lambda: |-
# // it.size() - Number of LEDs
# // it[num] - Access the LED at index num.
# // Set the LED at num to the given r, g, b values
# // it[num] = ESPColor(r, g, b);
# // Get the color at index num (ESPColor instance)
# // it[num].get();
# it[0] = ESPHSVColor(30 + random_uint32() % 30, 255, 135 + random_uint32() % 120).to_rgb();
# it[1] = ESPHSVColor(random_uint32() % 30, 255, 135 + random_uint32() % 120).to_rgb();
# it[2] = ESPHSVColor(42, 255, 135 + random_uint32() % 120).to_rgb();
# - platform: partition
# name: "porte bas"
# segments:
# - id: ledstrip_bureau
# from: 0
# to: 0
# - platform: partition
# name: "porte haut"
# segments:
# - id: ledstrip_bureau
# from: 1
# to: 1