gw-wiscon / homebridge-philipstv

Homebridge module for Philips TV (with JointSpace enabled)
15 stars 49 forks source link

ReferenceError: powerState is not defined #11

Closed Nastras closed 5 years ago

Nastras commented 6 years ago

Hello @skrollme,

i tried to use your fork version. I get the following errors after a short time when starting the Homebridge:

Mär 16 11:17:09 HomeKitServer homebridge[10387]: [2018-3-16 11:17:09] [My Philips TV] getPowerState - ERROR: ETIMEDOUT Mär 16 11:17:10 HomeKitServer homebridge[10387]: /usr/lib/node_modules/homebridge-philipstv-x/index.js:294 Mär 16 11:17:10 HomeKitServer homebridge[10387]: if (that.state != powerState) { Mär 16 11:17:10 HomeKitServer homebridge[10387]: ^ Mär 16 11:17:10 HomeKitServer homebridge[10387]: ReferenceError: powerState is not defined Mär 16 11:17:10 HomeKitServer homebridge[10387]: at HttpStatusAccessory. (/usr/lib/node_modules/homebridge-philipstv-x/index.js:294:22) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at Request._callback (/usr/lib/node_modules/homebridge-philipstv-x/index.js:165:5) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at self.callback (/usr/lib/node_modules/homebridge-philipstv-x/node_modules/request/request.js:186:22) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at Request.emit (events.js:180:13) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at Timeout._onTimeout (/usr/lib/node_modules/homebridge-philipstv-x/node_modules/request/request.js:849:16) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at ontimeout (timers.js:466:11) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at tryOnTimeout (timers.js:304:5) Mär 16 11:17:10 HomeKitServer homebridge[10387]: at Timer.listOnTimeout (timers.js:267:5) Mär 16 11:17:10 HomeKitServer systemd[1]: homebridge-test.service: Main process exited, code=exited, status=1/FAILURE

I have a Philips Tv with Ambilight from year 2013.

Here is my config: { "accessory": "PhilipsTV", "name": "My Philips TV", "ip_address": "192.168.x.xx", "poll_status_interval": "60", "model_year" : "2013" }

Do you have any idea why I get this error?

Another question. I switch my TV on and off with the Harmonyhub plugin, I would like to use only the Ambilight function. Is it possible for the power function to disable in the config.json?

Thank You!!!