Connect SmartHome 10W CCT Smart White LED Bulb B22 (CSH-B22WW10W)

Device Info
This Connect Smart Bulb has a B22 Bayonet fitting.
SKU: CSH-B22WW10W
Available from:
Manufacturer:
GPIO Pinout
| Pin | Function | 
|---|---|
| GPIO5 | Cold white color temperature | 
| GPIO13 | Warm white color temperature | 
Basic Configuration
substitutions:
  device_name: "csh-B22WW10W"
  friendly_name: "Connect SmartHome CSH-B22WW10W"
esphome:
  name: ${device_name}
  comment: ${friendly_name}
esp8266:
  board: esp01_1m
  restore_from_flash: true
wifi:
  ssid: "ssid"
  password: "password"
  ap:
    ssid: ${device_name}
    password: "password"
captive_portal:
logger:
api:
  encryption:
    key: !secret api_encryption_key
ota:
  password: "password"
output:
  - platform: esp8266_pwm
    id: cw_color_temp
    pin: GPIO5
  - platform: esp8266_pwm
    id: ww_color_temp
    pin: GPIO13
light:
  - platform: cwww
    name: ${friendly_name}
    cold_white: cw_color_temp
    warm_white: ww_color_temp
    cold_white_color_temperature: 6500 K
    warm_white_color_temperature: 2700 K
    effects:
      - random:
      - pulse:
      - strobe:
      - flicker: