Created
July 31, 2021 23:05
-
-
Save JamesOsborn-SE/0ac2180e93fea5cbcf76ec295e2615cb to your computer and use it in GitHub Desktop.
hall light ESP Home
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
substitutions: | |
comment: "hall light" | |
devicename: hall-light | |
platform: ESP8266 | |
board: esp01_1m | |
esphome: | |
name: $devicename | |
platform: $platform | |
board: $board | |
comment: "${comment}" | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_pass | |
# Define SSID for hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: AP_${devicename} | |
#enable captive portal for hotspot | |
captive_portal: | |
# Enable logging | |
logger: | |
ota: | |
password: !secret ota_pass | |
api: | |
sm16716: | |
data_pin: GPIO12 | |
clock_pin: GPIO14 | |
num_channels: 3 | |
num_chips: 1 | |
output: | |
- platform: sm16716 | |
id: output_red | |
channel: 2 | |
power_supply: rgb_power | |
- platform: sm16716 | |
id: output_green | |
channel: 1 | |
power_supply: rgb_power | |
- platform: sm16716 | |
id: output_blue | |
channel: 0 | |
power_supply: rgb_power | |
- platform: esp8266_pwm | |
id: output_warm_white | |
pin: GPIO04 | |
min_power: 5% | |
- platform: esp8266_pwm | |
id: output_cold_white | |
pin: GPIO05 | |
min_power: 5% | |
light: | |
- platform: rgbww | |
id: light1 | |
name: "${devicename}" | |
red: output_red | |
green: output_green | |
blue: output_blue | |
cold_white: output_cold_white | |
warm_white: output_warm_white | |
cold_white_color_temperature: 6500 K | |
warm_white_color_temperature: 2700 K | |
color_interlock: true | |
gamma_correct: 0.0 | |
on_turn_on: | |
then: | |
- light.turn_on: | |
id: light1 | |
brightness: 100% | |
white: 50 % | |
color_temperature: 370 mireds | |
- light.turn_on: | |
id: light1 | |
brightness: 100% | |
white: 100 % | |
color_temperature: 370 mireds | |
effects: | |
- pulse: | |
power_supply: | |
- id: rgb_power | |
pin: GPIO13 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment