esphome/tests/test1.1.yaml

142 lines
2.5 KiB
YAML

---
substitutions:
devicename: test1_1
sensorname: my
textname: template
roomname: fastled_room
esphome:
name: test1-1
name_add_mac_suffix: true
platform: ESP32
board: nodemcu-32s
platformio_options:
board_build.partitions: huge_app.csv
on_loop:
then:
- light.addressable_set:
id: addr1
range_from: 0
range_to: 100
red: 100%
green: !lambda "return 255;"
blue: 0%
white: 100%
wifi:
networks:
- ssid: "MySSID"
password: "password1"
uart:
- id: adalight_uart
tx_pin: GPIO25
rx_pin: GPIO26
baud_rate: 115200
rx_buffer_size: 1024
adalight:
network:
power_supply:
- id: atx_power_supply
enable_time: 20ms
keep_on_time: 10s
enable_on_boot: true
pin:
number: 13
inverted: true
i2c:
sda: 21
scl:
number: 22
allow_other_uses: true
scan: true
frequency: 100kHz
setup_priority: -100
id: i2c_bus
pca9685:
frequency: 500
address: 0x0
i2c_id: i2c_bus
output:
- platform: pca9685
id: pca_0
channel: 0
- platform: pca9685
id: pca_1
channel: 1
- platform: pca9685
id: pca_2
channel: 2
light:
- platform: rgb
name: Living Room Lights
id: ${roomname}_lights
red: pca_0
green: pca_1
blue: pca_2
- platform: fastled_clockless
id: addr1
chipset: WS2811
pin:
allow_other_uses: true
number: GPIO23
num_leds: 60
rgb_order: BRG
max_refresh_rate: 20ms
power_supply: atx_power_supply
color_correct: [75%, 100%, 50%]
name: FastLED WS2811 Light
effects:
- adalight:
uart_id: adalight_uart
- automation:
name: Custom Effect
sequence:
- light.addressable_set:
id: addr1
red: 100%
green: 100%
blue: 0%
- delay: 100ms
- light.addressable_set:
id: addr1
red: 0%
green: 100%
blue: 0%
- platform: fastled_spi
id: addr2
chipset: WS2801
data_pin:
allow_other_uses: true
number: GPIO23
clock_pin:
number: GPIO22
allow_other_uses: true
data_rate: 2MHz
num_leds: 60
rgb_order: BRG
name: FastLED SPI Light
- platform: partition
name: Partition Light
segments:
- id: addr1
from: 0
to: 0
- id: addr2
from: 1
to: 10
- id: addr2
from: 20
to: 25
- single_light_id: ${roomname}_lights