Hey everyone,
I’m thrilled to share my recent adventure with ESPHome and custom automations. As a complete newbie in the world of home automation, I’ve been watching tutorials and reading docs for months, and finally, I took the plunge! ![]()
I decided to start with a simple project: modifying the behavior of a Sonoff T1 light switch. My goal was to make it so that a short press would toggle the light on/off, while a long press (4 seconds) would set a timer to turn it off after another 20 seconds. Sounds straightforward, right? Well, it turned out to be a bit of a puzzle! ![]()
At first, I wasn’t sure whether to tackle this in ESPHome, Home Assistant, or even Node-Red. After some research, I realized that ESPHome’s flexibility was the way to go. I dove into the ESPHome documentation and started experimenting with custom scripts. It was a bit overwhelming at first, but the more I tinkered, the more I understood how everything worked together. ![]()
After several trial-and-error sessions (and a few frustrated facepalms), I finally got it working! The short press toggles the light, and the long press activates the timer. It’s such a satisfying feeling to see everything come together. Now, I’m excited to explore more advanced automations and maybe even create some custom components. The possibilities are endless! ![]()
If anyone has tips or tricks for working with ESPHome or custom automations, I’d love to hear them! Let’s keep learning and growing together in this amazing community. ![]()
![]()