Home Assistance Light AC Dimmer HASS esp32-c3 110-240V
This is the world’s first AC dimmer based on ESP32-C3 chip, that truly compatible with Home Assistant, so the users can directly control the AC lights, dimmable LEDs, fans easily with Home Assistant. Specially designed for plastic enclosure for easy din rail mount.
There many DIY “dimmer” in the internet, but many of them actually used PWM for cutting the AC ON/OFF, this is not good as it will make the lamp blink. The true dimmer should firstly detect the AC zero-crossing point, and then control the ac wave.
IOTMUG Home assistant AC Light Dimmer chopper circuit is based on MOSFET transistors, and zero-cross checking circuit, it detects the zero-cross points and then the MOSFET transistors controlled to chop the AC.
IOTMUG MOSFET Trailing edge Home Assistant AC Light Dimmer is based on ESP32–C3 plus a simple ATTINY24 as co-controller, to ensure the ESP32 run HA firmware smoothly while the ATTINY24 detects the zero-crossing point in real time, so finally to ensure it can chop the AC as intended.
MOSFET Trailing Edge Dimmer features:
- Dimming voltage 100...240 VAC
- Frequency auto detect: 50HZ or 60HZ
- Maximum current 3A
- Compatible with Tasmota (needed tasmota firmware)
- DIN Rail mountable
Github :https://github.com/krida0electronics/hass
yaml file code
esphome:
name: dimmer3
friendly_name: Light Dimmer
esp32:
board: esp32-c3-devkitm-1
framework:
type: arduino
version: 2.0.6
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "4C72rpfcCI0NKtSubirAAO7vh3dps2fRFZrsSlOEpoc="
ota:
password: "fa12a4e581a7513099d8c5cbf19037e5"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Light-Dimmer Fallback Hotspot"
password: "C3ktQDAikyiu"
captive_portal:
output:
- platform: ledc
pin: GPIO03
id: gpio_03
frequency: "1220Hz" # 1220Hz, 2441Hz, 4882Hz
light:
- platform: monochromatic
output: gpio_03
name: "ESP32-C3"