Method has changed a fair bit since this was first posted, should be easier to play around with now
https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-mote
I love these things, and all easily controlled with Home Assistant,
I bought two strips to replace the lights in an old Stereo Cabinet that houses a Raspberry Pi running Moode: http://moodeaudio.org/ , and the Mote lights of course. Really breathed modern life into the great old thing
My code above expands on the manufacturer’s API with a Larson Scanner (cylon), Rainbow, Swipe, and Tiedye effects.
I’ve tweaked the API a bit so it’s easier to use as building blocks in Home Assistant for later patterns & colours etc.
To install:
-
Follow Pimoroni’s install instructions (will need to be a Debain base, hence Moode is a good music pick).
-
Copy these two files:
onto each Pi + Mote you want to control.
- Taking the switches_mote_example.yaml as the starting point:
and build as many switches and combinations as you like:
The curl command layout is:
command_on: curl -s http://[mote IP]:5000/mote/api/v1.0/ …
larsonloop / 1200 / 0 / ee7600 /0.1/ 1 /1
[effect type] / [channel_selection] / [direction] / [hex colour] / [pause_time] / [ persistence] / [repeats]
There’s more detail on what they mean in the API file:
The overall control / play-around screen looks like this:
- One final he script turns all the input_sliders etc. into a curl command:
It’s still a bit clunky, but really does get the job done.
My old music cabinet is now a visual-notification system, as well Pimped out stereo.
If there’s anyone with Motes, could you give this a try and let me know what you think?
Next task: learn AppDaemon which I imagine can take a lot of the messing out, make an overall MoteEffects class & hopefully get that merged into Pimoroni’s branch, and then make this a component in Home Assistant.
Some close ups inside the lamps:
My gif making skills are dreadful, and they don’t do the Motes justice - but here they are: