OK - I got this all going last night - ordered the following:
Barrel Plug Connectors: Amazon Barrel Plugs
Jumper Wires: Amazon Jumper Wires For GPIO RPI
WS2801 Led Modules: Amazon WS2801 LED Modules
4 Pin connectors: Amazon 4 Pin Connectors
30W Power Supply: Amazon Waterproof 30W Power Supply
I used a Raspberry Pi 2 I had hanging around idle and loaded Hyperion from here - Hyperion Install WIKI on a fresh LibreElec Libreelec Download installation.
I used this diagram - RPI GPIO Wiring Diagram for Hyperion/WS2801 to get everything wired up.
Once I got Hyperion installed on top of Libreelec - it was a matter of adding the Hyperion component from HA to control the box and it picked it up perfectly. Was able to turn on and off and change colors no problem at all - NEAT. But not enough
I wanted the effects like I saw in @derdude1893 and @SmartValley posts - like here: Hyperion Thread
This took a while to figure out - I’ve never used an input slider, so had to figure that out and reverse engineering Bruh’s automations around the slider and the calls to the shell commands etc.
- You need a shell command that will take arguments - I don’t use shell - I use Powershell - lol
So it took me a bit to learn some basics around shell scripting, arguments and case statement - thanks for the code @hareeshmu Thread On Grandfather clock in regards to how to make the call since I couldn’t see Bruh’s shell scripts. My script looks like this:
#!/bin/bash
case $1 in
“Knight rider”)
echo ‘{ “command”: “effect”, “effect”: {“name”:“Knight rider”}, “priority”: 100 }’ | nc 192.168.2.135 19444
;;
“Police Lights Solid”)
echo ‘{ “command”: “effect”, “effect”: {“name”:“Police Lights Solid”}, “priority”: 100 }’ | nc 192.168.2.135 19444
;;
“Off”)
echo ‘{ “command”: “clear”, “priority”: 100 }’ | nc 192.168.2.135 19444
#echo ‘{ “color”: [0,0,0], “command”: “color”, “priority”: 0 }’ | nc 192.168.2.135 19444
;;
*)
echo “Sorry, I don’t understand”
;;
esac
-
Getting the rights correct to run the shell command was also key - thanks to @carlostico here: Rights For executing shell command
-
You need to setup each shell command for each effect: See here - Bruh
-
You Then Need an automation per effect:
That’s a quick and dirty write up but I hope it helps someone else out in regards to Hyperion, raspberry PI, GPIO and HASS/effects.
I’m planning on using these as led path lighting for my house - maybe changing color based on temp or time and using the effects from time to time for holidays etc.
Thanks for reading and thanks to everyone posting on here with all the help - it makes HASS great - hope I gave back a little.