Smart Lighting Automation with Shelly Devices: A Real-Life Success Story

Hey everyone, I wanted to share a really cool automation I’ve been working on with my Shelly devices. It’s been a bit of a learning curve, but the results have been amazing!

The Scenario: I have separate light switches for the hallway on each level of my house—basement, ground floor, and second floor. Additionally, there are light switches at the staircases to control the upstairs and downstairs lighting. All of these are now paired with Shelly devices to enable smart control via Home Assistant.

The Challenge: Sometimes, the hallway light on the second floor gets left on. While it’s great for visibility when heading downstairs, it can be frustrating when you reach the ground floor and realize you can’t turn it off. I wanted a way to toggle the second-floor hallway light directly from the staircase switch.

The Solution: I set up a long-click trigger on the staircase switch. When you hold down the switch, it toggles the hallway light on the second floor. It’s such a simple fix, but it’s made a huge difference in terms of convenience!

Here’s a quick look at the automation setup I used:

yaml
alias: Light - Toggle Upstairs Corridor Lights
id: ‘Light_toggle_upstairs_corridor_lights’
trigger:
platform: event
event_type: shelly.click
event_data:
device: shellyswitch25-84CCA89F70DD
channel: 2
click_type: long
action:
service: light.toggle
target:
entity_id: light.corridor_upstairs

Next Step: I’m now working on a similar setup for the basement. The idea is that pressing the downstairs lighting switch will automatically turn on the basement corridor light, but only if it’s in the same state as the downstairs lighting. It’s a bit more complex, but I’m excited to see how it works out!

If anyone has tips or suggestions for improving these automations, I’d love to hear them. It’s been such a rewarding experience to see how these smart devices can really enhance everyday life around the house.

Cheers,
[Your Name]