Smart Lighting Automation with Motion Blinds and OpenHAB

Hi everyone, I’ve been exploring ways to integrate my smart home devices more seamlessly, and I wanted to share my recent experience with Motion Blinds and OpenHAB. :star2:

I’ve been using OpenHAB for a while now, and while it’s incredibly powerful, setting up certain functionalities can be a bit of a puzzle. One area I’ve been focusing on lately is automating my sound system. I have a Logitech Z906 setup, and while it’s fantastic for audio quality, controlling it manually was getting a bit tedious. That’s when I decided to dive into OpenHAB and see if I could automate the process entirely.

After some research, I came across Raspotify and the OpenHAB Spotify Web Connect API. These tools allowed me to connect my Raspberry Pi to my sound system and control everything through OpenHAB. It was a bit of a learning curve, especially when it came to setting up the MQTT integration and writing the necessary rules, but the end result was worth it!

Here’s a quick overview of what I did:

  • Raspotify Setup: I installed Raspotify on my Raspberry Pi to act as a Spotify Connect device. This allowed my Logitech system to stream music directly from Spotify.
  • MQTT Integration: I used a Wemos D1 Mini to control the power and input settings of my sound system via MQTT. This meant I could trigger the system to turn on and switch to the correct input with a single command in OpenHAB.
  • Rule Automation: I wrote a rule in OpenHAB that handles the entire process—powering on the system, switching inputs, and starting the music—all with the click of a button in my sitemap.

The best part? I can now control my entire sound system from my phone or even through voice commands using Alexa or Google Assistant. It’s been a game-changer for how I enjoy music at home.

I’d love to hear if anyone else has tackled similar projects or has tips for improving this setup further. Happy automating! :rocket: