XIAO SEED ESP32C6 + Zigbee + HomeAssistant + LED Fade on/off

Hello - I have purchased a few Seeed Studio XIAO ESP32C6 boards and have 2 projects I would like to assign to them. Preferably would like to connect them via Zigbee 3.0 to homeassistant but last resort is wifi with homeESP

Project A is to connect light sensor and create outdoor light sensor but this project is optional as I do have one spare C6 board. More important is:

Project B - using PWM managed mosfet connected to ESP32C6 would like to fade in and fade out LED light strips (single colour, non addressable). Would like them to be visible in Homeassistant as a swich that other process can turn on and turn off. The effect that I would like to achieve is when other automation switch on that light strip via ESP it should fade in and once it turn switch off led strips should fade off.

Is there anyone who can help me with implementation of this? While I found implementation of Zigbee protocol and tons of PWM LED fade tutorials I cannot find anything that combines all 3 world together.

Hi there,
and welcome here…
Hard to beat these, less than $5 on sale.
for Project A:


$4.22

$13.2268% off

Price shown before tax丨Extra 5% off with coins

Buy 10 pieces get 1% off

MOES Tuya Zigbee Smart Light Sensor Illuminance Brightness Detection Home Lighting Automation Smart Home Detector APP Control

5.0

4 Reviews ౹ 51 sold

Project B: sounds like most of the demos for PWM and HA light control?

HTH
GL :wink: PJ
:v:

Project A - where are they for that sale ? Would like to buy one but only one that I have found is for $21

Project B - I have all hardware - I am more on software side issue - need to make a code to make it works :slight_smile:

that is the fun part… everyone deffinatly needs to learn how to reverse engineer the sample code library… you need to make it more your own code and make it more object oriented programming so you can basicly make everything into function calls and use the low level functions to run under your high level logic

you will need to disect your individuial library code for each componant and make usre it works by itself and then add addional sensor functions ontop of the layer cake

@PJ_Glasso
Hi Mate - how to get that low price? Are you using some code ? The lowest I have found was AU$18

Also - do you know that it works with Homeassistant via ZHA?

@cgwaltney
Or go with easy way and just use ESPhome via WiFi while I will not figure out how to deal with Zigbee as this part makes everything complex (as ESPhome does not support Zigbee yet)

2 Likes

Hi Guys - no new ideas here ?

ok - for all who have already seen this topic and for future wanderer :slight_smile:
Have finished with building a wired weather station that included BH1750FVI light sensor.
Learning how to use C6 with Zigbee leaving for future - it goes to wonderful “some day” land