I made a ESP32 AC Dimmer, with support ESPhome/Homeassistant

I am zeqing and in charge of Makerfabs, we made a simple ESP32 based AC dimmer. unlike some other home assistant" AC dimmer, " this dimmer is composed of 2 controllers: ESP32 and STM32 co-controller.

The main reason i made it as this is: As i tested, when the ESP32 runs the ESPhome, it can not delay accurately to chop the 50~100 hz AC, which made the final AC chopping bad and thus the connected lamp blinks; so i added a cheap STM32, to specially deal with the AC chopping, and let the ESP32 deal with the ESPhome-related works specially.

This AC Dimmer chopper circuit is based on Triac BT139, and zero-cross checking circuit, it detects the zero-cross points and then the Triac controlled to chop the AC.Besides, to avoid the problem of AC can not be totally shunted off with Triac, a relay is implemented to make the AC totally On/Off.

1 Like

Thanks for the share but without code and documentation it’s useless sorry to say :confused:

the Github: GitHub - Makerfabs/Home-Assistant-AC-Dimmer

Bought one could not get it to work… Followed wiki at How to use AC Dimmer for Home Assistant - Makerfabs Wiki. No errors just would not turn light on.

You know theres already an AC dimmer component listed in the Docs, right? Its been there for a long time and uses the same dimming method(zero-cross and triac)… this guy may or may not be legit, who knows.

I do know that you didnt have to be a guinea pig and test some unknown product by an unknown guy advertising in a forum. You know there are easier ways to burn your house down, right? Wow…

Same for me! Bought and configured as described. In Home Assistant everything looks fine, but when connecting a load (IR Bulb 350W) nothing happens.

I am wondering if that included custom_at.h is correct?

@zeqing2012, could you help us?

As described in that 5+ year old ancient guide?

Ill say it a second time…

This is an esphome native AC dimmer integration so that you dont need to use ancient custom components that likely dont even work after all these years and updates released. Try the already supported one…

Id also make sure your bulb is even capable of dimming because not all of them are capable.

1 Like

Just read the dimmer description, so it’s not using PWM
Does this mean if i use this to control fan speed. I won’t get that humming sound if the speed is below 100% like most tuya fan dimmer like below

@zeqing2012 do you have link for taobao shop?

Tuya = Dumpster fire