Created
December 31, 2022 20:24
-
-
Save artipixel/d29168d46f24a89cbcd708cc79fa34ce to your computer and use it in GitHub Desktop.
ESP Home Bed light
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
esphome: | |
name: "bed-light" | |
esp8266: | |
board: d1_mini | |
framework: | |
version: 2.7.4 | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
# Enable fallback hotspot (captive portal) in case wifi connection fails | |
ap: | |
ssid: "Esphome-Web-Ac66Ec" | |
password: "MlZU0UD8HRJK" | |
captive_portal: | |
# Enable logging | |
logger: | |
# Enable Home Assistant API | |
api: | |
ota: | |
binary_sensor: | |
- platform: gpio | |
pin: D7 | |
name: "Bedroom PIR Sensor" | |
device_class: motion | |
id: bedmotion | |
light: | |
- platform: fastled_clockless | |
chipset: WS2812 | |
pin: D4 | |
num_leds: 14 | |
rgb_order: GRB | |
name: "BEDROOM LED" | |
id: bedroomled | |
effects: | |
- strobe: | |
- addressable_rainbow: | |
- addressable_scan: | |
- addressable_twinkle: | |
- addressable_random_twinkle: | |
- addressable_fireworks: | |
- addressable_flicker: | |
- platform: fastled_clockless | |
chipset: WS2812 | |
pin: D3 | |
num_leds: 16 | |
rgb_order: GRB | |
name: "Side LED" | |
id: sideled | |
effects: | |
- strobe: | |
- addressable_rainbow: | |
- addressable_scan: | |
- addressable_twinkle: | |
- addressable_random_twinkle: | |
- addressable_fireworks: | |
- addressable_flicker: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment