Hyperion node for node-red
npm install node-red-contrib-hyperion
npm install node-red-contrib-hyperion
`
Usage
Set the `msg.payload` according to your requested action.
$3
Set the color using an array of RGB values.
`
{
"color": [255, 100, 0] // [r, g, b]
}
`
$3
Set the brightness using a value from 0 to 100.
`
{
"bri": 80
}
`
$3
Set an effect using the effects' name.
`
{
"effect": "Knight rider"
}
`
$3
Clear the data and switch off the LEDs.
`
{
"clear": true
}
`
Sample flow
`
[{"id":"79aecb29.a73e84","type":"Hyperion","z":"f8cb4d31.7e4e2","server":"db98cd21.6a2bb","x":340,"y":80,"wires":[]},{"id":"4064f27a.ee301c","type":"inject","z":"f8cb4d31.7e4e2","name":"","topic":"","payload":"{ \"color\": [20, 20, 0], \"bri\":50 }","payloadType":"json","repeat":"","crontab":"","once":false,"x":130,"y":80,"wires":[["79aecb29.a73e84"]]},{"id":"db98cd21.6a2bb","type":"Hyperion-Server-Conf","z":"","ip":"127.0.0.1","port":"19444","name":"Home"}]
``