Skip to content

Instantly share code, notes, and snippets.

@grischard
Created February 5, 2026 19:06
Show Gist options
  • Select an option

  • Save grischard/da5a8ec6fe3649beb0add12b6ebe0750 to your computer and use it in GitHub Desktop.

Select an option

Save grischard/da5a8ec6fe3649beb0add12b6ebe0750 to your computer and use it in GitHub Desktop.
Cree P38 esphome
# Cree Lighting Connected Max Smart Led Bulb Par38
packages:
base: !include common_base.yaml
wifi:
min_auth_mode: !remove
bk72xx:
board: generic-bk7231t-qfn32-tuya
framework:
version: latest
# outputs + RGBCT light (identical across can-* devices)
output:
- platform: libretiny_pwm
id: output_red
pin: GPIO24
frequency: 2000 Hz
- platform: libretiny_pwm
id: output_green
pin: GPIO9
frequency: 2000 Hz
- platform: libretiny_pwm
id: output_blue
pin: GPIO26
frequency: 2000 Hz
- platform: libretiny_pwm
id: output_brightness
pin: GPIO7
frequency: 2000 Hz
- platform: libretiny_pwm
id: output_temperature
inverted: true
pin: GPIO8
frequency: 2000 Hz
light:
- platform: rgbct
id: light_rgbct
name: None
restore_mode: RESTORE_DEFAULT_ON
color_interlock: true
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2200 K
red: output_red
green: output_green
blue: output_blue
white_brightness: output_brightness
color_temperature: output_temperature
text_sensor:
- platform: libretiny
version:
name: ${friendly_name} LibreTiny Version
@sts098
Copy link
Copy Markdown

sts098 commented Apr 9, 2026

Thank you for posting. I was anxious to try this.

Just curious, does the white produced by this configuration with your CREE Par38's actually show as white? Mine are pink. This was an issue i had with my previous configuration as well. The bulbs appear to have RGB Channels and a Yellow 4th channel (not white). Selecting white lights all rgb's and produces a pink. To get an actual white color, I need to blend in yellow. This happens with all my cree PAR38 bulbs both old and new. Are you seeing something similar? Or are you having better luck?

@grischard
Copy link
Copy Markdown
Author

@sts098 Hello! Yes, the quality of the white on the three that I have is good. ESPHome's rgbct takes care of the temperature quite nicely.

@grischard
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment