Feit Electric A19 Bulb

Purchased several of these from Costco, on sale for 20.99 for a two pack, was a great deal. But in looking around online I couldn’t find any configs for ESPHome.

It still creates two Lights one RGB and one Color Temperature white… .If anyone has any suggestions to consolidate great otherwise here is my config.

power_supply:
  - id: rgb_power
    pin: GPIO13

light:
  - platform: cwww
    name: "Livingroom Lights"
    cold_white: output_component1
    warm_white: output_component2
    cold_white_color_temperature: 153 mireds
    warm_white_color_temperature: 500 mireds
  - platform: fastled_spi
    name: "Bulb RGB"
    chipset: SM16716
    clock_pin: GPIO4
    data_pin: GPIO14
    power_supply: rgb_power
    num_leds: 8
    rgb_order: BGR

output:
  - platform: esp8266_pwm
    id: output_component1
    pin: GPIO5
  - platform: esp8266_pwm
    id: output_component2
    pin: GPIO12

OM60/RGBW/CA/AG, (Amazon)

BPA800/RGBW/AG/2 (Costco)

SYW-A19RGBWAGT1 (Also on the bulbs from Costco)

what component is this?

You did not look too far. I just searched for ESPHome on Home Assistant’s site and was directed to this:

Apparently you can use MQTT.

Sorry I should update my post this is the esphome yaml config for my bulb itself. Platform: cww is the color temperature changing white LED’s that are in this bulb. The direct pwm in these bulbs drives a much brighter white and white hue temps ie 2K to 5K vs the separate RGB controller powered by the SM16716

Yes however the esphome treats these as two different lights so even I’m mqtt it’s sending two entities. Would prefer an esphome fix rather than my optional light template work around

You know I completely missed the reference to esphome in your first post. Understand now.

Have you seen this https://github.com/stelgenhof/AiLight

I found this about HA & ESPHome.

and yes, I am new here :wink:

Thanks Nick,

I did see this post, unfortunately the bulb I have uses a different LED controller that the ailight. However, the code above is working mostly for anyone else who also got some of these Tuya based bulbs and wants to move local.

Was debating on leaving them Tasmota/MQTT as there is a functional template that works, but I rather like what has become of the esphome stuff. The only thing that I have an issue with is ESPHome makes what is technically two bulbs in one, This bulb has a white temperature dimmable bulb and a separate RGB LED.

Yes I didn’t have time to check whether the bulbs you are using were compatible with AiLight, sorry if it was a garden path that led nowhere.

I like EspHome too. I only started using it a few days ago when I received an esp32 module with an oled on it. Magic getting it printing so quickly and with access to fonts etc. The rapid development with edit, compile and upload via ota is also magic.

This was a Tuya blub so it was my first push into Tuya-convert, it was so easy but this bulb has so many options being RGB and White so it makes it a little complicated on the ESPHome side. plus about $10.00 US a bulb pretty darn good.

Stboch,

So did you do an OTA update using Tuya-convert for these bulbs then connected them to home assistant using the config at the top of this page?

I used the default tasmota flash in the tyua convert app and then compiled and downloaded the bin from ESPhome and used the web interface to flash the esphome to the bulb. I found it safer then copying the correct bin to my tuya-convert pi and hoping it all went well.

@stboch - I’m also playing with these exact bulbs and started with a config I found on ESPHome for a similar Tuya based bulb. https://esphome.io/cookbook/mirabella-genio-bulb.html?highlight=bulb

Copying that config gets me a single bulb in HA but the RGB controls don’t work properly, although they do tweak the color temp a bit. I’m wondering if you made any more progress?

output:
  - platform: esp8266_pwm
    id: output_red
    pin: GPIO4
  - platform: esp8266_pwm
    id: output_green
    pin: GPIO12
  - platform: esp8266_pwm
    id: output_blue
    pin: GPIO14
  - platform: esp8266_pwm
    id: output_white
    pin: GPIO5

light:
  - platform: rgbw
    name: "rgbw_e27_01"
    id: light
    red: output_red
    green: output_green
    blue: output_blue
    white: output_white

If your using the same bulb then use light

- platform: fastled_spi
name: “Bulb RGB”
chipset: SM16716
clock_pin: GPIO4
data_pin: GPIO14
power_supply: rgb_power
num_leds: 8
rgb_order: BGR

After talking with Otto though currently because they are two different controller types they will be two bulbs. So I switched back to Tasmota for the time being.

could anyone share with a noob how to get these working with tasmoadmin / mqtt. is that the way to add them to ha

After spending several hours playing around here is my script:
I added several effects as well as the web server (probably not a very secure idea)
you can remove these sections if you wish.

This was tested on the feit OM60/RGBW/CA/AG

esphome:
  name: <YOUR_BULB_NAME>
  platform: ESP8266
  board: esp01_1m
  esp8266_restore_from_flash: true


wifi:
  ssid: "<YOUR_SSID>"
  password: "<YOUR_PASSWD>"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "<BULB_NAME> Fallback Hotspot"
    password: "<YOUR_PASSWD>"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
   password: "<YOUR_PASSWD>"

ota:
   password: "<YOUR_PASSWD>"

web_server:
  port: 80
  
sm16716:
  data_pin: GPIO14
  clock_pin: GPIO4
  num_channels: 3
  num_chips: 1

output:
  - platform: sm16716
    id: output_red
    channel: 0
    power_supply: rgb_power
  - platform: sm16716
    id: output_green
    channel: 1
    power_supply: rgb_power
  - platform: sm16716
    id: output_blue
    channel: 2
    power_supply: rgb_power
  - platform: esp8266_pwm
    id: output_cold_white
    pin: GPIO5
  - platform: esp8266_pwm
    id: output_warm_white
    pin: GPIO12

light:
  - platform: rgbww
    effects:
      # Use default parameters:
      - random:
      # Customize parameters
      - random:
          name: "Slow Random Effect"
          transition_length: 30s
          update_interval: 30s
      - random:
          name: "Fast Random Effect"
          transition_length: 4s
          update_interval: 5s
      - flicker:
      - flicker:
          name: Flicker Effect With Custom Values
          alpha: 95%
          intensity: 1.5%
      - strobe:
      - strobe:
          name: "Fast Strobe ROYGBIV"
          colors:
            - state: True
              brightness: 100%
              red: 100%
              green: 0%
              blue: 0%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
            - state: True
              brightness: 100%
              red: 100%
              green: 64.7%
              blue: 0%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
            - state: True
              brightness: 100%
              red: 100%
              green: 100%
              blue: 0%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
            - state: True
              brightness: 100%
              red: 0%
              green: 100%
              blue: 0%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
            - state: True
              brightness: 100%
              red: 0%
              green: 0%
              blue: 100%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
            - state: True
              brightness: 100%
              red: 29.4%
              green: 0%
              blue: 51%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
            - state: True
              brightness: 100%
              red: 93.5%
              green: 51%
              blue: 93.5%
              white: 0%
              duration: 500ms
            - state: False
              duration: 0ms
      - lambda:
          name: "10sec Fade ROYGBIV"
          update_interval: 10s
          lambda: |-
            static int state = 0;
            auto call = id(light1).turn_on();
            // Transtion of 1000ms = 1s
            call.set_transition_length(10000);
            if (state == 0) {
              call.set_rgbw(1.0, 0.0, 0.0, 0.0);
            } else if (state == 1) {
              call.set_rgbw(1.0, 0.647, 0.0, 0.0);
            } else if (state == 2) {
              call.set_rgbw(1.0, 1.0, 0.0, 0.0);
            } else if (state == 3)  {
              call.set_rgbw(0.0, 1.0, 0.0, 0.0);
            } else if (state == 4)  {
              call.set_rgbw(0.0, 0.0, 1.0, 0.0);
            } else if (state == 5)  {
              call.set_rgbw(0.294, 0.0, 0.51, 0.0);
            } else {
              call.set_rgbw(0.933, 0.51, 0.933, 0.0);
            }
            call.perform();
            state += 1;
            if (state == 7)
              state = 0;
    name: "<YOUR_BULB_NAME>"
    id: light1
    red: output_red
    green: output_green
    blue: output_blue
    cold_white: output_cold_white
    warm_white: output_warm_white
    cold_white_color_temperature: 6500 K
    warm_white_color_temperature: 2700 K

power_supply:
  - id: rgb_power
    pin: GPIO13
    
  
2 Likes

I’m excited to try this! I got these feit bulbs from Costco about a month ago now and really wanted to get them to work esphome but was reluctant to try due to the two lights issue mentioned above and since tasmota worked well.

1 Like

This should make them show up as a single bulb in HA. The effects look really cool too!

Has anyone tried this with Tuya Convert version 2.3.0? After flashing the latest ESPHome from Tasmota 7.0.0.3 (that comes with tuya-convert 2.3.0), the light controls (White level, temperature, color changes etc.) are not working. The commands are going to ESPHome (can see it in the ESPHome logs), but the light bulb is not responding to those commands.

I opened an issue with ESPHome - but checking here as well (especially because the lights with tuya-convert 2.2.0 are working just fine).

Well, I tried flashing sonoff-minimal.bin and then sonoff.bin and connected it back to HA through MQTT and now I am able to change colors, brightness, white level etc. Strange - but at least the light controls still work.

I can provide any additional information if that will be of any help.