Setting Up a Smart Lighting Automation with WebCore

Hi everyone, I’m diving into the world of smart home automation and I’m really excited to share my journey with you all. I’ve been trying to set up a ‘Welcome Home’ automation using WebCore, and while it’s been a bit of a learning curve, I’m making progress! :star2:

So, here’s what I’m aiming for: when I arrive home, my lights should automatically turn on. I’m using my phone’s geolocation feature to detect when I’m near my house. It sounds simple, but I want to make sure everything works seamlessly. I’ve heard WebCore is pretty powerful for this kind of thing, but I’m still getting the hang of it. :blush:

I started by creating a new piston in WebCore. I set it to trigger when my phone detects I’m near my house. Then, I added actions to turn on specific lights. But wait, I want to make sure the lights only turn on if it’s dark outside. I added a condition to check the sunset time using the built-in time widget. That way, the lights won’t come on if it’s still daylight. Smart, right? :sunrise:

Testing it out, I walked away from my house and then came back. The lights didn’t turn on immediately, which confused me at first. But I realized I forgot to adjust the proximity settings. I changed it to a shorter distance, and voilà! Now, the lights turn on as I approach the driveway. It’s such a cool feeling to walk up to a well-lit house without lifting a finger. :sparkles:

I also want to add a bit more to this automation. Maybe dim the lights if I’m coming home late at night or set different scenes depending on the time of day. But for now, I’m thrilled with how it’s working out. :tada:

If anyone has tips or common pitfalls to avoid when setting up WebCore automations, I’d love to hear them! Happy automating! :rocket: