Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

Set bulb color "on_boot" for esphome

$
0
0

@Kicke02 wrote:

I’m currently learning HA and messing around with a cwww bulb that’s flashed to ESPHome. This is the code I’m using on it:

esphome:
  name: mono_deltaco_lamp1
  platform: ESP8266
  board: esp01_1m
  
  #Correct white on boot TEST
  on_boot:
    priority: -10
    then:
      - light.turn_on: 
          id: mono_deltaco_lamp1
          brightness: 10%
          color_temperature: 2700K
          
wifi:
  ssid: "..."
  password: "..."

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Mono Deltaco 1 Fallback"
    password: "..."

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "..."

ota:
  password: "..."
  
output:
  - platform: esp8266_pwm
    id: output_ww
    pin: GPIO12
  - platform: esp8266_pwm
    id: output_cw
    pin: GPIO14

light:
  - platform: cwww
    name: "Mono Deltaco"
    id: mono_deltaco_lamp1
    warm_white: output_ww
    cold_white: output_cw
    cold_white_color_temperature: 6500 K
    warm_white_color_temperature: 2700 K
    restore_mode: ALWAYS_ON
    effects:
      - random:
      - strobe:
      - flicker:

I’m wondering if anyone could tell me what I’m doing wrong at the beginning under the “on_boot” automation?
The lights are neither dimming to 10% nor changing from the painfully cold 6500K default light?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>