I gave Home Assistant a bodily coloration wheel, and now I flip by way of albums prefer it’s 2008


I liked my first Walkman to the purpose the place I used it till it fell aside, however my favourite music participant was nonetheless my iPod. There was nothing fairly like flipping by way of the albums within the Cover Flow view by spinning my thumb across the click on wheel. When I discovered an outdated distant that had its personal wheel-style enter, I questioned if I might convey these days again.

I nonetheless miss Cover Flow

Flipping by way of albums on my iPod was a pleasure

Cover Flow was a technique of scrolling by way of recordsdata that made its technique to the iPod, iTunes, and even Finder. For music, Cover Flow displayed a row of album covers, with one cowl entrance and heart, and the others stacked to both facet. You might use the press wheel to scroll by way of the row of album covers to pick the one you needed to play.

There have been two issues that made Cover Flow so good. Firstly, it seemed beautiful, with every album cowl having a refined reflection beneath it. It was an effective way to understand the attractive album artwork of your music assortment.

The second factor that made it so nice was the feeling of swiping by way of the album covers with the press wheel. Spinning your thumb across the wheel and seeing the covers fly previous was simply extremely satisfying. Sadly, Cover Flow now not exists in Apple Music, and the press wheel is a thing of the past.

I discovered an outdated Zigbee distant with a coloration wheel in a drawer

I questioned if I might use the colour wheel to convey Cover Flow again

A MIBOXER Zigbee remote with a color wheel controller.

I’d not likely considered Cover Flow for a while, till I discovered an outdated Zigbee good house distant in my drawer. I’d purchased it once I was making an attempt to make my very own common distant to exchange my Logitech Harmony setup, but it surely did not have the best controls to be of any use, so it ended up in a drawer.

The distant is meant for controlling lights and contains a number of buttons for turning lights on and off, in addition to sliders for brightness and coloration temperature. At the highest of the distant, there’s a massive round contact management that you should utilize to pick a particular coloration.

When I noticed the distant in my drawer, the colour wheel instantly made me consider the press wheel on an outdated iPod. I questioned if it could be doable to make use of the distant like a click on wheel to swipe by way of album covers, identical to the nice outdated days.

I related the distant to Home Assistant utilizing Zigbee2MQTT, set it to file the inputs from the distant, after which slowly ran my thumb across the wheel. To my delight, it produced a quantity from 0 to 254 that represented the place on the colour wheel, and as I moved my thumb across the ring, new readings arrived about 3 times a second.

It meant that by evaluating two consecutive readings, I might inform which route across the wheel I used to be scrolling, though I needed to repair the case the place, on the prime of the wheel, it jumps from 254 again to 0. The solely actual limitation was that the distant solely sends 29 readings (about 8.4 seconds of knowledge) earlier than it goes silent till you elevate your thumb and contact it once more, but it surely felt like an issue that I might stay with.

Like at all times, another person already had an identical concept

Cover Flow playing cards already existed, however none fairly match my wants

A Home Assistant dashboard showing album covers from Music Assistant.

The subsequent half was to get the distant to scroll by way of a Cover Flow-style view of my Music Assistant albums in a dashboard. Like most good Home Assistant tasks that I consider, another person had already had the identical concept, and there are a number of customized dashboard playing cards that may present albums in a mode much like Cover Flow.

None of the playing cards have been actually suited to my wants, so I turned to Claude Code for assist. Notice that I’m not saying “I constructed” as a result of that actually will get my goat. Claude constructed it; I simply advised it what to construct, however Claude did it a few thousand occasions sooner than I might have achieved. It makes use of albums saved in my Music Assistant library and ignores any albums that lack cowl artwork or include fewer than 5 songs.

The first model Claude constructed let Home Assistant do the mathematics that turned the information from the colour wheel into directions for which album cowl to indicate. It labored, however scrolling from album to album was fairly jumpy. Claude then moved the wheel dealing with to the cardboard itself, which reads the distant instantly and strikes the covers by fractions at a time in order that they seem to stream easily.

Claude additionally added momentum, in order that after a quick spin of the wheel, the albums proceed to stream previous after which sluggish to a cease. With the browser dealing with the animation, the stream feels actually clean and pure to make use of.

Flipping by way of albums on my 27-inch iMac display screen is wonderful

It’s like having the planet’s largest iPod

After making a couple of additional tweaks, I used to be actually proud of what Claude had constructed. I’ve the Cover Flow dashboard run full-screen on my ancient iMac whereas I’m working, and it seems unimaginable on the 27-inch 5K show. When I need to play music, I simply slide my thumb across the coloration wheel and play the chosen album by urgent the ON button on the distant.

Once I’ve began an album enjoying, a Now Playing display screen seems that exhibits the monitor itemizing and lyrics for the present music. The precise line within the lyrics is highlighted because the music performs. Scrolling the colour wheel within the Now Playing display screen lets me choose totally different tracks, and one other button on the distant takes me again to the Cover Flow display screen if I need to choose a distinct album or swap to a Cover Flow of my playlists.

It’s actually a pleasure to make use of and works even higher than I’d anticipated. It actually is like having an iPod with a large 27-inch display screen on my desk. It’s additionally helped me uncover simply what number of lyrics I’ve been singing utterly mistaken this complete time.

Sometimes one of the best concepts occur by likelihood

This complete challenge happened as a result of I noticed an outdated distant, and it gave me an concept. Inspiration may be discovered within the strangest of locations, and the tasks that come out of nowhere can typically turn into one of the best. My subsequent plan is to translate the entire thing to my TV to provide me a good larger iPod in the lounge.



Source link