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:
-
alias: âKnight Riderâ
trigger:
- platform: state
entity_id: input_select.hyperion_effect
state: âKnight Riderâ
action:
service: shell_command.h_knight_rider
-
alias: âPolice Lights Solidâ
trigger:
- platform: state
entity_id: input_select.hyperion_effect
state: âPolice Lights Solidâ
action:
service: shell_command.h_police_lights_solid
-
alias: âOffâ
trigger:
- platform: state
entity_id: input_select.hyperion_effect
state: âOffâ
action:
service: shell_command.h_off
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.