52 lines
885 B
YAML
52 lines
885 B
YAML
esphome:
|
|
name: downlight01
|
|
platform: ESP8266
|
|
board: esp01_1m
|
|
|
|
wifi:
|
|
ssid: "kungle-oss"
|
|
password: "hcfU8@gG&8Hm"
|
|
|
|
# Enable logging
|
|
logger:
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
my9231:
|
|
data_pin: GPIO13
|
|
clock_pin: GPIO15
|
|
num_channels: 4
|
|
num_chips: 1
|
|
|
|
output:
|
|
- platform: esp8266_pwm
|
|
pin: 14
|
|
id: output_blue
|
|
- platform: esp8266_pwm
|
|
pin: 12
|
|
id: output_green
|
|
- platform: esp8266_pwm
|
|
pin: 4
|
|
id: output_red
|
|
- platform: esp8266_pwm
|
|
pin: 5
|
|
id: output_coldwhite
|
|
- platform: esp8266_pwm
|
|
pin: 13
|
|
id: output_warmwhite
|
|
|
|
light:
|
|
- platform: rgbww
|
|
name: '${device_name} Light'
|
|
default_transition_length: 0s
|
|
red: output_red
|
|
green: output_green
|
|
blue: output_blue
|
|
cold_white: output_coldwhite
|
|
warm_white: output_warmwhite
|
|
cold_white_color_temperature: 6500 K
|
|
warm_white_color_temperature: 2700 K
|