diff options
Diffstat (limited to 'esphome/config/3dprinter-led.yaml')
| -rw-r--r-- | esphome/config/3dprinter-led.yaml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/esphome/config/3dprinter-led.yaml b/esphome/config/3dprinter-led.yaml new file mode 100644 index 0000000..216914c --- /dev/null +++ b/esphome/config/3dprinter-led.yaml | |||
| @@ -0,0 +1,59 @@ | |||
| 1 | esphome: | ||
| 2 | name: 3dprinter-led | ||
| 3 | friendly_name: "3D Printer LED" | ||
| 4 | area: Office | ||
| 5 | on_boot: | ||
| 6 | priority: -100 | ||
| 7 | then: | ||
| 8 | - light.control: | ||
| 9 | id: led_strip | ||
| 10 | brightness: 50% | ||
| 11 | red: 70% | ||
| 12 | green: 70% | ||
| 13 | blue: 70% | ||
| 14 | color_brightness: 70% | ||
| 15 | white: 70% | ||
| 16 | |||
| 17 | esp8266: | ||
| 18 | board: d1_mini | ||
| 19 | |||
| 20 | # Enable logging | ||
| 21 | logger: | ||
| 22 | |||
| 23 | # Enable Home Assistant API | ||
| 24 | api: | ||
| 25 | encryption: | ||
| 26 | key: !secret api_encryption_key | ||
| 27 | |||
| 28 | # OTA | ||
| 29 | ota: | ||
| 30 | - platform: esphome | ||
| 31 | password: !secret ota_password | ||
| 32 | |||
| 33 | # WiFi Credentials | ||
| 34 | wifi: | ||
| 35 | domain: .lan | ||
| 36 | ssid: !secret wifi_ssid | ||
| 37 | password: !secret wifi_password | ||
| 38 | |||
| 39 | # Enable fallback hotspot (captive portal) in case wifi connection fails | ||
| 40 | ap: | ||
| 41 | ssid: "Couchlight Fallback Hotspot" | ||
| 42 | password: !secret wifi_ap_password | ||
| 43 | |||
| 44 | captive_portal: | ||
| 45 | |||
| 46 | light: | ||
| 47 | - platform: neopixelbus | ||
| 48 | name: None | ||
| 49 | icon: "mdi:led-strip-variant" | ||
| 50 | id: led_strip | ||
| 51 | type: GRBW | ||
| 52 | variant: SK6812 #800KBPS | ||
| 53 | num_leds: 35 | ||
| 54 | pin: D4 # GPIO2 | ||
| 55 | method: | ||
| 56 | type: esp8266_uart | ||
| 57 | bus: 1 | ||
| 58 | default_transition_length: 300ms | ||
| 59 | |||
