If you're comfortable with programming and want to have more control over your system, you can choose to write the firmware yourself. This approach gives you complete customization and allows you to tailor the system to your specific needs. You can program the ESP32-C6 to handle sensor inputs, control contractors, and communicate with other devices or services.
Alternatively, you can use ESPHome, which is an open-source framework specifically designed for ESP8266 and ESP32 devices. ESPHome simplifies the process of configuring and managing ESP-based devices, including sensors and communication protocols. It provides a high-level abstraction layer, making it easier to integrate various components and set up automation. ESPHome supports both wired and wireless sensors, including Zigbee.
By the way, here is a home automation project with ESP32.
https://www.pcbway.com/project/sharepro ... 0a9d6.html
You can add more sensors and alarms to this project.