Code Monkey home page Code Monkey logo

homebridge-hyperion-light's Introduction

homebridge-hyperion-light

💥 Homebridge plugin to use Hyperion as HomeKit accessory

Features

  • Switch on/off
  • Control color and brightness of tv backlight
  • Switch ambilight on/off (optional)
  • Get current state/color

Install

Homebridge is required

npm version

npm install -g homebridge

to use this plugin

npm version

npm install -g homebridge-hyperion-light

Add your Accessory to the config.json

Configuration sample:

       "accessories": [{
           "accessory": "Hyperion",
           "autoupdate": "true",
           "name": "TV Backlight",
           "ambilightName": "TV Ambilight",
           "host": "20.1.0.138",
           "port": "19444"
       }]

Attributes:

  • "accessory": Name of Accessory "Hyperion" (required)
  • "autoupdate": Autoupdate this package from NPM (optional, only for one device!)
  • "name": Name of TV Backlight (required)
  • "ambilightName": Name of switch for Ambilight (optional)
  • "host": The hostname or ip (required)
  • "port": The port (usually 19444) (required)

Code of Conduct

See the CODE

License

See the LICENSE file for license rights and limitations (MIT).

homebridge-hyperion-light's People

Contributors

firsttris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tvhggg mav2010

homebridge-hyperion-light's Issues

Add second instance.

Hi,

I'v tried to add an second instance. I have the lights behind the tv (19444), but also AtmoOrb, on channel 19446.

How do I do this, if I try, it's not working. And the 19444 channel is responding really slow.

I did this:

"accessories": [
            {
           "accessory": "Hyperion",
           "autoupdate": "true",
           "name": "TV Backlight",
           "ambilightName": "TV Ambilight",
           "host": "192.168.1.10",
           "port": "19444"
            },
            {
            "accessory": "Hyperion",
            "name": "AtmoOrb",
            "host": "192.168.1.10",
            "port": "19446"
            }

Cannot read property 'length' of undefined nach Update auf Homebridge 4.25

Hallo Tristan,

nach dem Update von Homebridge 4.20 auf 4.25 tritt nun folgender Fehler auf:

/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:225
if (myString.length>maxLength) myString = myString.substring(0,maxLength); //Truncate strings that are too long
^

TypeError: Cannot read property 'length' of undefined
at Characteristic.Model.Characteristic.validateValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:225:19)
at Characteristic.Model.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:273:19)
at Service.AccessoryInformation.Service.setCharacteristic (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Service.js:178:32)
at HyperionAccessory.getServices (/usr/local/lib/node_modules/homebridge-hyperion-light/index.js:109:10)
at Server._createAccessory (/usr/local/lib/node_modules/homebridge/lib/server.js:378:36)
at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:266:26)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:81:38)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)

Mache ich irgend etwas falsch? Hab' ich was übersehen?

Ambilight on/off not correct

I have separated buttons in homekit. One switch for ambilight and the other one for color. If i open up homekit and switch off ambilight and then close homekit app and reopen it, ambilight will be highlighted as ”on”. Please update this plugin to work better with hyperion.ng

Receiving error

Thank you for the homebridge-hyperion plugin!

I'm receiving an error via homebridge when trying to switch the light (on/off or any color):

2017-04-06 10:00:07 stdout at HAPServer._handleCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:972:10)
2017-04-06 10:00:07 stdout at HAPServer.emit (events.js:201:7)
2017-04-06 10:00:07 stdout at emitMany (events.js:127:13)
2017-04-06 10:00:07 stdout at Bridge.Accessory._handleSetCharacteristics (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:685:8)
2017-04-06 10:00:07 stdout at Array.forEach (native)
2017-04-06 10:00:07 stdout at Bridge. (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:740:22)
2017-04-06 10:00:07 stdout at Characteristic.setValue (/usr/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:155:10)
2017-04-06 10:00:07 stdout at emit (events.js:201:7)
2017-04-06 10:00:07 stdout at emitMany (events.js:127:13)
2017-04-06 10:00:07 stdout at lightService.getCharacteristic.on (/usr/lib/node_modules/homebridge-hyperion-light/index.js:46:38)
2017-04-06 10:00:07 stdout TypeError: Cannot read property 'updateCharacteristic' of undefined
2017-04-06 10:00:07 stdout
2017-04-06 10:00:07 stdout ^
2017-04-06 10:00:07 stdout this.ambilightService.updateCharacteristic(Characteristic.On, 0);
2017-04-06 10:00:07 stdout /usr/lib/node_modules/homebridge-hyperion-light/index.js:46

The fault is probably all mine, any tips?

Homebridge npm error

hi I'm getting error
Update Cancelt! Error: Command failed: npm view homebridge-hyperion-light version
npm ERR! Response timeout while trying to fetch https://registry.npmjs.org/homebridge-hyperion-light (over 30000ms)

I no you are no longer using hyperion from your other posts but i have only been getting this error since upgrading my npm and was hoping it was something that just needed updating on the add-on thanks

HomeApp always shows Ambilight on when first loading

Hi,

Great work. I just have one odd problem.
When I first load the HomeApp it shows the Ambilight switch as on even though it is off. I can then control it properly. Each time I start the HomeApp it again shows it as on. Are you experiencing this?

Select Effects

Hi,
it would be nice to get an option to let start the boot effects of Hyperion like the Rainbow mood, Rainbow Swirl, Blue mood blobs and all the other ones.

Hyperion 2.0 Support

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

error

Nach dem Update wegen den Effects - hab ich jetzt das hier ^^

`
/usr/lib/node_modules/homebridge-hyperion-light/hyperion.js:76
ledState = data.info.activeLedColor.length > 0;
^

TypeError: Cannot read property 'length' of undefined
at verifyLightState (/usr/lib/node_modules/homebridge-hyperion-light/hyperion.js:76:40)
at send (/usr/lib/node_modules/homebridge-hyperion-light/hyperion.js:174:9)
at Socket.client.on (/usr/lib/node_modules/homebridge-hyperion-light/hyperion.js:61:13)
at emitNone (events.js:91:20)
at Socket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
`

error

Hi,

wollte grade mal dein plugin testen, bekomme beim starten der homebridge aber immer diesen hier:

`
[2017-01-07 21:08:44] Loading 1 accessories...
[2017-01-07 21:08:44] [TV Wand] Initializing Hyperion accessory...
[2017-01-07 21:08:44] [TV Wand] Starting Hyperion Accessory
/usr/lib/node_modules/homebridge-hyperion-light/index.js:106
if (this.effectName !== null && this.effectName.length > 0) {
^

TypeError: Cannot read property 'length' of undefined
at HyperionAccessory.getServices (/usr/lib/node_modules/homebridge-hyperion-light/index.js:106:52)
at Server._createAccessory (/usr/lib/node_modules/homebridge/lib/server.js:378:36)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:266:26)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:81:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
`

Aus der cfg habe ich auch die effects Zeile gelöscht, aktuell ist diese so:
"accessories": [ { "accessory": "Hyperion", "name": "TV Wand", "ambilightName": "TV Wand MB Light", "host": "192.168.178.60", "port": "19444" } ]

Neue Version available?

[14/09/2017, 20:48:48] [TV Backlight] Version check for homebridge-hyperion-light
[14/09/2017, 20:48:48] [TV Backlight] npm version is 1.1.4
, your local version is 1.1.4
[14/09/2017, 20:48:48] [TV Backlight] There is a new version available. Please update with sudo npm -g update homebridge-hyperion-light
[14/09/2017, 20:48:48] [TV Backlight] Upgrading now .. this may take some time.
[14/09/2017, 20:48:51] [TV Backlight] A new version was installed recently. Please restart your node to complete the update
[14/09/2017, 20:48:51] [TV Backlight] Message from updater 

macht doch irgendwie keinen Sinn oder? Bei mir kommt die Meldung leider immer...

An / Aus Status wird nicht korrekt abgefragt

Hallo Tristan,

zunächst einmal möchte ich mich bei dir für deine klasse Arbeit bedanken!

Ich kann mir gut vorstellen, dass der Fehler bei mir liegt,
da ich damit allein auf weiter Flur zu stehen scheine. :D

Schalte ich nämlich mein Ambilight aus, dann wird mir zunächst auch der Status "Aus" in meiner Home-App angezeigt. Wenn ich die Home-App schließe und anschließend wieder starte, dann wird das Ambilight seltsamerweise wieder als "Ein" angezeigt, obwohl es tatsächlich aus ist....

Wie und wo fragst du den Status ab und ist es mir irgendwie möglich deine Statusabfrage für meine Zwecke anzupassen - falls notwendig?!

Grüße
Jan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.