Smart Lighting Automation with Switchbot Curtain 3 Motors

I wanted to share my recent automation project with the Switchbot Curtain 3 Motors. I’ve been using these motors with solar panels on a large window, and I wanted to optimize their battery life by implementing a smart charging system. Here’s how I approached it and what I learned along the way.

The Goal:
My aim was to ensure the motors’ batteries lasted as long as possible without constant charging. I decided to create an automation that would charge the motors when their battery levels dropped below 21% and stop charging once they reached 80%. This approach helps prevent overcharging and extends battery life.

The Setup:
I used Home Assistant to create two boolean helpers—one for each motor. These helpers act as indicators for when charging should start or stop. The automation checks the battery levels every 30 minutes and enables or disables the charging process accordingly.

The Automation Logic:

  • Charging Start: If the battery level drops below 21%, the corresponding boolean helper is turned on, initiating the charging process.
  • Charging Stop: If the battery level reaches 80%, the boolean helper is turned off, stopping the charge.
  • Scheduling: I also set up separate automations to open the curtains at specific times—7 AM on weekdays and 10 AM on weekends or holidays. Additionally, the curtains close 30 minutes before sunset to ensure privacy and energy efficiency.

Challenges and Solutions:
One challenge was ensuring the automation didn’t conflict with manual controls. I implemented checks to confirm the charging state before initiating any actions. Another consideration was timing the curtain movements to align with my daily routine without interfering with the charging cycle.

Outcome:
This setup has been running smoothly for a few weeks now, and I’m pleased with the results. The motors’ batteries maintain optimal levels, and the curtains operate seamlessly according to the schedule. It’s satisfying to see how a bit of planning and automation can enhance the functionality of smart devices.

Feedback Request:
I’d love to hear your thoughts on this automation. Do you see any potential improvements or alternative approaches? I’m always looking for ways to refine my setups and would appreciate any insights you might have!

Happy automating! :rocket: