Skip to content

Instantly share code, notes, and snippets.

@ctalkington
Last active November 23, 2021 12:24
Show Gist options
  • Save ctalkington/9c6caf65d7a3f9fee358afab2a88eb05 to your computer and use it in GitHub Desktop.
Save ctalkington/9c6caf65d7a3f9fee358afab2a88eb05 to your computer and use it in GitHub Desktop.
Merkury A21 75W Bulb ESPHome Config (requires v1.14+)
esphome:
name: bulb_75w_rgbw_qpw06
platform: ESP8266
board: esp01_1m
wifi:
ssid: 'YOURWIFISSID'
password: 'YOURWIFIPASSWORD'
logger:
api:
ota:
password: 'YOUROTAPASSWORD'
power_supply:
- id: rgb_power
pin: GPIO13
sm16716:
data_pin: GPIO14
clock_pin: GPIO4
num_channels: 3
num_chips: 1
output:
- platform: esp8266_pwm
pin: GPIO5
frequency: 1000 Hz
id: pwm_white
- platform: sm16716
id: sm16716_red
channel: 2
power_supply: rgb_power
- platform: sm16716
id: sm16716_green
channel: 1
power_supply: rgb_power
- platform: sm16716
id: sm16716_blue
channel: 0
power_supply: rgb_power
light:
- platform: rgbw
name: Bulb
id: bulb_75w_rgbw
red: sm16716_red
green: sm16716_green
blue: sm16716_blue
white: pwm_white
@ctalkington
Copy link
Author

@coneyrabbit
Copy link

Has there still not been a encompassing 1 entity solution to this bulb?

@ctalkington
Copy link
Author

ctalkington commented Nov 3, 2019

@coneyrabbit there is now in ESPHome 1.14 (updated this gist). BEWARE that brightness in Home Assistant controls the RGBs and White Value controls the White brightness.. if you have both values at 100% both sets of LEDS will run and overheat chip causing random restarts within 10min.

@nightshade00013
Copy link

Created a different YAML for the bulb recently that controls the colors correctly in Home Assistant. Not sure if it will work for all bulbs but the ones I purchased yesterday locally do work correctly. https://github.com/nightshade00013/ESP-Home-Configs/blob/master/Merkury-A21.yaml

@jokesters
Copy link

@coneyrabbit there is now in ESPHome 1.14 (updated this gist). BEWARE that brightness in Home Assistant controls the RGBs and White Value controls the White brightness.. if you have both values at 100% both sets of LEDS will run and overheat chip causing random restarts within 10min.

If you put color_interlock: true in the rgbw platform attributes it will force the white off for colors and turn the colors off when going back to white preventing both being on and overheating. Also when you click white or tell google to set the light to bright white it goes back to white. Saying just white they still turn to a dim white cause it doesn't turn the white value back up unless you say bright white. Pretty much fixes this is sure you are taking about here

@coneyrabbit
Copy link

Thanks @jokesters, I'll try it out tonight... Didn't get a notification of your mention/response so I'm just seeing this.

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