Skip to content

Instantly share code, notes, and snippets.

@artipixel
Created December 31, 2022 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artipixel/d29168d46f24a89cbcd708cc79fa34ce to your computer and use it in GitHub Desktop.
Save artipixel/d29168d46f24a89cbcd708cc79fa34ce to your computer and use it in GitHub Desktop.
ESP Home Bed light
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