firsttris / homebridge-hyperion-light

:collision: Homebridge plugin to use Hyperion as HomeKit accessory
MIT License
8 stars 2 forks source link

Hyperion 2.0 Support #10

Closed Apollo16 closed 6 years ago

Apollo16 commented 6 years ago

Hey,

would be nice if you could add Hyperion 2.0 support. You have to change the "hyperion-js-api" since the api of hyperion-remote has changed. Would be great since Hyperion 2.0 ambilight engine looks quite a bit more polished

firsttris commented 6 years ago

Is there a API Specification for Hyperion 2.0 ?

Apollo16 commented 6 years ago

Not documented, I'll compile it and document the json commands. Hyperion 'ng' 2.0 is almost complete but due to a lack of dev's the development is frozen atm.

firsttris commented 6 years ago

nice, if you are providing the json commands - i will update it. thx

Apollo16 commented 6 years ago

Sorry, i've wasted your time, the Hyperion-ng remote is quite bugged, I've had problems switching back to the V4L device after I set the LED color :( Thanks for your plugin 👍

Here are the json commands if you need them in the future. I don't think you need an explanation for them but added it anyway:

Set's LEDDEVICE color {"color":[0,0,0],"command":"color","origin":"hyperion-remote","priority":50}

Turn's LEDDEVICE (USB Grabber) On/Off {"command":"componentstate","componentstate":{"component":"LEDDEVICE","state":false}} {"command":"componentstate","componentstate":{"component":"LEDDEVICE","state":true}}

{"command":"clearall"}

Turn's V4L driver (USB Grabber) On/Off {"command":"componentstate","componentstate":{"component":"V4L","state":true}} {"command":"componentstate","componentstate":{"component":"V4L","state":false}}

Turn's Hyperion On/Off {"command":"componentstate","componentstate":{"component":"ALL","state":false}} {"command":"componentstate","componentstate":{"component":"ALL","state":true}}