seydx / homebridge-bravia-tvos

Homebridge plugin for Sony Bravia Android TVs
MIT License
347 stars 32 forks source link

[BETA] Version 3 - Bugfix Thread #32

Closed seydx closed 3 years ago

seydx commented 5 years ago

Hey everyone,

as some of you may know, I am currently working on the v3 of my Bravia plugin. Most of it is already done. Currently I'm looking for beta testers to wipe out the remaining bugs and / or incorporate new requests.

Here you can read how to install the plugin and how to set it:

https://github.com/SeydX/homebridge-bravia-tvos/tree/beta https://github.com/SeydX/homebridge-bravia-tvos/blob/beta/example-config.json

Note: Before you install the new plugin, I recommend you to delete the old plugin and remove it from HomeKit! And also delete the accessories and persist folders.

Then download the new plugin, install it, enter it in config.json, restart Homebridge and there you go!

henkhb commented 5 years ago

Hey. Thanks for the update. Deleting acessories and persist result in the need of readding the homebrdige instance to home app, right? So all automations, scenes, etc. will be gone? Hope this is not necessary in final version.

hmook commented 5 years ago

I've been trying the beta. Seems not to work in my controlled installation (Homebridge via Docker). Installed the beta plugin and started with the most basic config gave me the following error:

[4/5/2019, 11:33:46 AM] Loaded config.json with 0 accessories and 1 platforms.
[4/5/2019, 11:33:46 AM] ---
[4/5/2019, 11:33:46 AM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/5/2019, 11:33:46 AM] Loaded plugin: homebridge-bravia-tvos
[4/5/2019, 11:33:47 AM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/5/2019, 11:33:47 AM] ---
[4/5/2019, 11:33:47 AM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 11:33:47 AM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 11:33:47 AM] ---
[4/5/2019, 11:33:47 AM] Loading 1 platforms...
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] Initializing BraviaOSPlatform platform...
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] BraviaOSPlatform v3.0.0 by SeydX
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] GitHub: https://github.com/SeydX/homebridge-bravia-tvos
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] Email: seyd55@outlook.de
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 11:33:47 AM] [BraviaOSPlatform] start success...
[4/5/2019, 11:33:47 AM] Loading 0 accessories...
/usr/local/lib/node_modules/homebridge-bravia-tvos/src/platform.js:198
    service.addLinkedService(speaker);
            ^

TypeError: Cannot read property 'addLinkedService' of undefined
    at BraviaOSPlatform.configureAccessory (/usr/local/lib/node_modules/homebridge-bravia-tvos/src/platform.js:198:13)
    at Server._configCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:384:24)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:92:8)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
[4/5/2019, 11:33:51 AM] Loaded config.json with 0 accessories and 1 platforms.
[4/5/2019, 11:33:51 AM] ---
[4/5/2019, 11:33:51 AM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/5/2019, 11:33:51 AM] Loaded plugin: homebridge-bravia-tvos
[4/5/2019, 11:33:51 AM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/5/2019, 11:33:51 AM] ---
[4/5/2019, 11:33:51 AM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 11:33:51 AM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 11:33:51 AM] ---
[4/5/2019, 11:33:51 AM] Loading 1 platforms...
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] Initializing BraviaOSPlatform platform...
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] BraviaOSPlatform v3.0.0 by SeydX
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] GitHub: https://github.com/SeydX/homebridge-bravia-tvos
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] Email: seyd55@outlook.de
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 11:33:51 AM] [BraviaOSPlatform] start success...
[4/5/2019, 11:33:51 AM] Loading 0 accessories...
/usr/local/lib/node_modules/homebridge-bravia-tvos/src/platform.js:198
    service.addLinkedService(speaker);
            ^

TypeError: Cannot read property 'addLinkedService' of undefined
    at BraviaOSPlatform.configureAccessory (/usr/local/lib/node_modules/homebridge-bravia-tvos/src/platform.js:198:13)
    at Server._configCachedPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:384:24)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:92:8)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
[4/5/2019, 11:33:56 AM] Loaded config.json with 0 accessories and 1 platforms.
seydx commented 5 years ago

@henkhb Deleting the accessory and persist folder were just the easiest way to load the plugin without any errors. But you can also try without deleting them. Just remove the old plugin and old config entry of this plugin, restart HomeKit so the devices are gone and try

@hmook Is the log from inital start or after several restarts? I have pushed an update, can you try pls?

Just do "npm i -g --save SeydX/homebridge-bravia-tvos#beta" again

thx

hmook commented 5 years ago

@SeydX The log is made after serval restarts. I think the update is working. I'll be testing the config options right now. Hoping my daughter will sleep for just some more minutes ;-)

hmook commented 5 years ago

@SeydX Deens the issue of a non responding device is still here after adding a tv it works a few minutes then the name changes and the status is set to not responding again.

Ps Log doesn’t show errors except the node version isn’t right.

seydx commented 5 years ago

Hm, can you start in debug mode and post the log here after the device not responds

DEBUG=*

hmook commented 5 years ago

I've had debug mode switched on in all cases. So maybe I'm missing an option here or am I looking at the wrong debug mode?

So I've resetted homebridge and restarted it. after restarting I managed to add the device again to the home app. Again it seems to work just fine but after a few on-off and switching of modes it gave the following log file:

[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Homebridge Reset: New Username: XX:XX:XX:XX:XX
[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Homebridge Reset: New Pin: XXX-XX-XXX
[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Changes to config.json saved.
[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Homebridge Reset: "persist" directory removed.
[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Homebridge Reset: "accessories" directory removed.
[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Homebridge restart request received
[4/5/2019, 12:24:22 PM] [homebridge-config-ui-x] Executing restart command: killall -9 homebridge && killall -9 homebridge-config-ui-x
[4/5/2019, 12:24:26 PM] [homebridge-config-ui-x] Using Form Authentication
[4/5/2019, 12:24:26 PM] [homebridge-config-ui-x] Console v3.11.0 is listening on port 8080.
[4/5/2019, 12:24:27 PM] Loaded config.json with 0 accessories and 1 platforms.
[4/5/2019, 12:24:27 PM] ---
[4/5/2019, 12:24:27 PM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/5/2019, 12:24:27 PM] Loaded plugin: homebridge-bravia-tvos
[4/5/2019, 12:24:27 PM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/5/2019, 12:24:27 PM] ---
[4/5/2019, 12:24:27 PM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 12:24:27 PM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 12:24:27 PM] ---
[4/5/2019, 12:24:27 PM] Loading 1 platforms...
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] Initializing BraviaOSPlatform platform...
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] BraviaOSPlatform v3.0.0 by SeydX
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] GitHub: https://github.com/SeydX/homebridge-bravia-tvos
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] Email: seyd55@outlook.de
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] start success...
[4/5/2019, 12:24:27 PM] Loading 0 accessories...
Setup Payload:
X-HM://0023OOXJNOLKA
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

[HOMEKIT IMAGE WAS HERE]                                                      

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

[HOMEKIT CODE WAS HERE]              

[4/5/2019, 12:24:27 PM] [BraviaOSPlatform] [INFO] Adding new accessory: Woonkamer Televisie
[4/5/2019, 12:24:27 PM] Homebridge is running on port 51826.
[4/5/2019, 12:24:35 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: PlayStation 4
[4/5/2019, 12:24:35 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: Apple TV
[4/5/2019, 12:24:35 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 1
[4/5/2019, 12:24:35 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 2
[4/5/2019, 12:24:35 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 3/ARC
[4/5/2019, 12:24:35 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 4
[4/5/2019, 12:27:00 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Hi!
[4/5/2019, 12:27:13 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)
[4/5/2019, 12:27:15 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn on (WOL)
[4/5/2019, 12:27:18 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)

Now Will try to reset it once more and don't give any commands. Will post that log after this one.

[4/5/2019, 12:33:13 PM] [homebridge-config-ui-x] Homebridge restart request received
[4/5/2019, 12:33:13 PM] [homebridge-config-ui-x] Executing restart command: killall -9 homebridge && killall -9 homebridge-config-ui-x
[4/5/2019, 12:33:18 PM] [homebridge-config-ui-x] Using Form Authentication
[4/5/2019, 12:33:18 PM] [homebridge-config-ui-x] Console v3.11.0 is listening on port 8080.
[4/5/2019, 12:33:18 PM] Loaded config.json with 0 accessories and 1 platforms.
[4/5/2019, 12:33:18 PM] ---
[4/5/2019, 12:33:18 PM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/5/2019, 12:33:18 PM] Loaded plugin: homebridge-bravia-tvos
[4/5/2019, 12:33:18 PM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/5/2019, 12:33:18 PM] ---
[4/5/2019, 12:33:18 PM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 12:33:18 PM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 12:33:18 PM] ---
[4/5/2019, 12:33:19 PM] Loading 1 platforms...
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] Initializing BraviaOSPlatform platform...
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] BraviaOSPlatform v3.0.0 by SeydX
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] GitHub: https://github.com/SeydX/homebridge-bravia-tvos
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] Email: seyd55@outlook.de
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] **************************************************************
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] start success...
[4/5/2019, 12:33:19 PM] Loading 0 accessories...
[4/5/2019, 12:33:19 PM] [BraviaOSPlatform] [INFO] Configuring accessory Woonkamer Televisie
Setup Payload:
X-HM://0023XE5ILD1LH
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

[HOMEKIT IMAGE WAS HERE]                                

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

[HOMEKIT CODE WAS HERE}     

[4/5/2019, 12:33:19 PM] Homebridge is running on port 51826.
[4/5/2019, 12:33:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: PlayStation 4
[4/5/2019, 12:33:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: Apple TV
[4/5/2019, 12:33:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 1
[4/5/2019, 12:33:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 2
[4/5/2019, 12:33:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 3/ARC
[4/5/2019, 12:33:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 4
[4/5/2019, 12:34:00 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Hi!

Again without any commands given in the HomeApp it stopt working after let's say 2 minutes.

seydx commented 5 years ago

Can you start homebridge with -D

‚homebridge -D‘

hmook commented 5 years ago

I'm not sure because I'm on the docker install. But in the terminal of the docker install I've managed to start Homebridge with -D and it gave me the following log:

/homebridge # DEBUG=* homebridge -D
[4/5/2019, 12:46:06 PM] config.json (/root/.homebridge/config.json) not found.
[4/5/2019, 12:46:06 PM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/5/2019, 12:46:06 PM] Loaded plugin: homebridge-bravia-tvos
[4/5/2019, 12:46:06 PM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/5/2019, 12:46:06 PM] ---
[4/5/2019, 12:46:06 PM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 12:46:06 PM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 12:46:06 PM] ---
Load homebridge-bravia-tvos.BraviaOSPlatform
Setup Payload:
X-HM://0023ISYWY3GFC
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ HOMEKITIMAGE WAS HERE  │     
    └────────────┘  

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ HOMEKITCODE WAS HERE  │     
    └────────────┘     

  EventedHTTPServer Server listening on port 37095 +0ms
[4/5/2019, 12:46:06 PM] Homebridge is running on port 37095.
  EventedHTTPServer [::ffff:10.0.1.84] New connection from client +21s
  EventedHTTPServer [::ffff:10.0.1.84] HTTP server listening on port 37091 +6ms
  EventedHTTPServer [fe80::83e:c310:ceae:42e] New connection from client +24ms
  EventedHTTPServer [fe80::83e:c310:ceae:42e] HTTP server listening on port 32769 +4ms
  EventedHTTPServer [fe80::83e:c310:ceae:42e] Client connection closed +29ms
  EventedHTTPServer [fe80::83e:c310:ceae:42e] HTTP connection was closed +18ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /pair-setup +9ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair step 1/5 +8ms
  EventedHTTPServer [fe80::83e:c310:ceae:42e] HTTP server was closed +4ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +1s
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /pair-setup +239ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +0ms
  HAPServer [CC:22:3D:E3:CE:30] Pair step 2/5 +3ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +1s
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /pair-setup +112ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-setup +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair step 3/5 +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair step 4/5 +21ms
  HAPServer [CC:22:3D:E3:CE:30] Pair step 5/5 +4ms
  Accessory [Homebridge] Paired with client 4FA4722A-745B-4C16-9A21-DDDCE74ABD2D +9ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +8ms
  EventedHTTPServer [::ffff:10.0.1.84] Client connection closed +140ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP connection was closed +2ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP server was closed +2ms
  EventedHTTPServer [::ffff:10.0.1.84] New connection from client +3ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP server listening on port 38669 +1ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /pair-verify +3ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +0ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +3ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +18ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /pair-verify +21ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +2ms
  HAPServer [CC:22:3D:E3:CE:30] Client 4FA4722A-745B-4C16-9A21-DDDCE74ABD2D verification complete +8ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /accessories +23ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +6ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /pairings +1s
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pairings +0ms
  HAPServer [CC:22:3D:E3:CE:30] Adding pairing info for client +3ms
  Accessory [Homebridge] Paired with client A5FFF0CF-7817-446F-8B39-532C4AB27497 +1ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +10ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /characteristics +2s
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +0ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":1,"iid":2,"value":true}] +5ms
  Accessory [Homebridge] Setting Characteristic "Identify" to value true +3ms
  Accessory [Homebridge] Identification request +2ms
  Accessory [Homebridge] Identification request ignored; no listeners to 'identify' event +1ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +7ms
  EventedHTTPServer [::ffff:10.0.1.3] New connection from client +606ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP server listening on port 33317 +1ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP request: /pair-verify +4ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +2ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP Response is finished +22ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP request: /pair-verify +8ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +1ms
  HAPServer [CC:22:3D:E3:CE:30] Client 4FA4722A-745B-4C16-9A21-DDDCE74ABD2D verification complete +6ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP request: /accessories +5ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:10.0.1.3] HTTP Response is finished +5ms
  EventedHTTPServer [::ffff:10.0.1.2] New connection from client +419ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP server listening on port 33787 +1ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP request: /pair-verify +5ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP Response is finished +22ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP request: /pair-verify +10ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +2ms
  HAPServer [CC:22:3D:E3:CE:30] Client 4FA4722A-745B-4C16-9A21-DDDCE74ABD2D verification complete +5ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP request: /accessories +6ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:10.0.1.2] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:10.0.1.92] New connection from client +22ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP server listening on port 33265 +1ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP request: /pair-verify +2ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP Response is finished +11ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP request: /pair-verify +28ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +1ms
  HAPServer [CC:22:3D:E3:CE:30] Client 4FA4722A-745B-4C16-9A21-DDDCE74ABD2D verification complete +2ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP request: /accessories +4ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:10.0.1.92] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /characteristics +11s
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":1,"iid":2,"value":true}] +1ms
  Accessory [Homebridge] Setting Characteristic "Identify" to value true +1ms
  Accessory [Homebridge] Identification request +1ms
  Accessory [Homebridge] Identification request ignored; no listeners to 'identify' event +1ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +2ms
  EventedHTTPServer [::ffff:10.0.1.69] New connection from client +9s
  EventedHTTPServer [::ffff:10.0.1.69] HTTP server listening on port 38561 +1ms
  EventedHTTPServer [::ffff:10.0.1.69] New connection from client +5ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP server listening on port 37273 +1ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP request: /pair-verify +5ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 1/2 +1ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP Response is finished +22ms
  EventedHTTPServer [::ffff:10.0.1.69] Client connection closed +1ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP connection was closed +3ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP server was closed +2ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP request: /pair-verify +15ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:22:3D:E3:CE:30] Pair verify step 2/2 +1ms
  HAPServer [CC:22:3D:E3:CE:30] Client 4FA4722A-745B-4C16-9A21-DDDCE74ABD2D verification complete +9ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP request: /accessories +8ms
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: GET /accessories +1ms
  EventedHTTPServer [::ffff:10.0.1.69] HTTP Response is finished +4ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP request: /characteristics +2m
  HAPServer [CC:22:3D:E3:CE:30] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":1,"iid":9,"ev":false},{"aid":1,"iid":10,"ev":false},{"aid":1,"iid":11,"ev":false}] +4ms
  Accessory [Homebridge] Unregistering Characteristic "State" for events +1ms
  Accessory [Homebridge] Unregistering Characteristic "Version" for events +1ms
  Accessory [Homebridge] Unregistering Characteristic "Control Point" for events +0ms
  EventedHTTPServer [::ffff:10.0.1.84] HTTP Response is finished +3ms
hmook commented 5 years ago

Not sure if this helps. Tried debug mode in my docker-compose.yml and after that homebridge wasn't able to start and gave back this log:

[4/5/2019, 1:01:39 PM] [homebridge-config-ui-x] Homebridge restart request received
[4/5/2019, 1:01:39 PM] [homebridge-config-ui-x] Executing restart command: killall -9 homebridge && killall -9 homebridge-config-ui-x
[4/5/2019, 1:01:39 PM] [homebridge-config-ui-x] Restart command exited with an error. Failed to restart Homebridge.
[4/5/2019, 1:01:42 PM] Loaded config.json with 0 accessories and 1 platforms.
[4/5/2019, 1:01:42 PM] ---
[4/5/2019, 1:01:42 PM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 1:01:42 PM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 1:01:42 PM] ---
[4/5/2019, 1:01:42 PM] Loading 1 platforms...

/usr/local/lib/node_modules/homebridge/lib/api.js:134
      throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
            ^
Error: The requested platform 'BraviaOSPlatform' was not registered by any plugin.
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:134:13)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:326:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:89:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
[4/5/2019, 1:01:46 PM] Loaded config.json with 0 accessories and 1 platforms.
[4/5/2019, 1:01:47 PM] ---
[4/5/2019, 1:01:47 PM] Loaded plugin: homebridge-config-ui-x
[4/5/2019, 1:01:47 PM] Registering platform 'homebridge-config-ui-x.config'
[4/5/2019, 1:01:47 PM] ---
[4/5/2019, 1:01:47 PM] Loading 1 platforms...

/usr/local/lib/node_modules/homebridge/lib/api.js:134
      throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
            ^
Error: The requested platform 'BraviaOSPlatform' was not registered by any plugin.
    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:134:13)
    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:326:45)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:89:36)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (internal/modules/cjs/loader.js:701:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
    at Module.load (internal/modules/cjs/loader.js:600:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
    at Function.Module._load (internal/modules/cjs/loader.js:531:3)
seydx commented 5 years ago

Can you reset again and start homebridge again in debug mode pls

henkhb commented 5 years ago

Thanks for the update. I put in on a testing docker environment. First start was great. Everything worked. Then I tried to add "DVBS" as a source. After that, all sources appeared as single Devices (without function) and I was no longer able to select input devices on the main tv device.

Issue is occurring upon first reboot after install. Can reproduce it.

How to add digital sattelite? An how to add the home screen as app?

seydx commented 5 years ago

Hey @henkhb

can you please type following command in terminal and post the output here

curl http://**YOURIPHERE**/sony/avContent --header 'x-auth-psk: YOURPSKHERE' --data '{"id":3,"method":"getSourceList","version":"1.0","params":[{"scheme":"tv"}]}'

seydx commented 5 years ago

New Update Online!

Added a new parameter called "commands" into config.json to determine own commands as inputs

a list of commands can be found here https://pro-bravia.sony.net/develop/integrate/ircc-ip/ircc-codes/index.html

See example-config.json for an example https://github.com/SeydX/homebridge-bravia-tvos/blob/a39fead7d43e96af565807bd2a5bb07a1c1bce57/example-config.json#L41

Rewritten also a great part and fixed some bugs!

Added also a new function. You are now available to hide inputs in the TV settings!

wpbYz1S

henkhb commented 5 years ago

{"result":[[{"source":"tv:dvbs"}]],"id":3}/homebridge #

This is my output. How to add dvbs as a iput?

To the mentioned bug/behavior:

When I restart homebridge, all inputs appear in home as separated devices without function. This is probably due to the discovery, that runs during startup. When I force quit the home app and then reopen it, the inputs are correct again in the TV device.

Iam running the old version of your plugin on a different homebridge instance. Maybe this is interfering? Same TV.

hmook commented 5 years ago

Hi @henkhb do you also use the oznu docker homebridge? Can you please tell how I start that one in debug mode because I only can find the debug mode in the front-end UI and the one in the docker-compose.yml

henkhb commented 5 years ago

@hmook Yes. I am also using the dockerized version. But not in debug mode at the moment. The switch in config-ui is not working?

hmook commented 5 years ago

@henkhb In my onion it's working but I get the impression that @SeydX is looking for a more detailed debug. But as far as I know these are the to options to have some sort of debug mode in the oznu docker install.

henkhb commented 5 years ago

@hmook Even with debug switch on, the result is short like this: {"result":[[{"source":"tv:dvbs"}]],"id":3}/homebridge #

@SeydX Another funny thing I see here is that the TV is turned on during every restart of homebridge. Even with WOL off.

2.0 shows dvbs input correct.

seydx commented 5 years ago

@hmook the debug mode is ok, just wondering why you got not responding accessories...

@henkhb You should be able now to add DVBS to your setup. Just put "DVBS" under "channelSource" in your config.json

If CEC is on in config.json and you restart the plugin, the plugin will always turn on the tv to detect all external inputs. CEC devices are not shown in the rest api if the tv is off, because off this, we need to turn on the tv on to detect ALL inputs. But only at restart/init start

hmook commented 5 years ago

@SeydX yes I am wondering around myself. I've made a dedicated Raspberry Pi for testing purposes only (because the one that's handling my lights I can't live without). But it seems every time I add my Television it works for a couple of minutes and than the name changes and it's giving me 'No Response' logs don't show any errors besides the one that I am on Node 10.X and 8.X is required. Can't be it I imagine.

henkhb commented 5 years ago

@SeydX

This is what I tried from the beginning. Not working. Only CEC Devices. Thanks for explaining the power on behavior.

    {
        "platform": "BraviaOSPlatform",
        "tvs": [
            {
                "name": "Sony Bedroom",
                "ip": "192.168.178.8",
                "port": 80,
                "psk": "XXX",
                "extraInputs": false,
                "cecInputs": true,
                "channelSource": "DVBS",
                "apps": [
                    "YouTube",
                    "Netflix"
                ],
                "wol": true
            }
        ],
        "interval": 10
    }

[4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: Apple TV [4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: HDMI 1 [4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: HDMI 2/MHL [4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: HDMI 3 [4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: HDMI 4/ARC [4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: YouTube [4/6/2019, 11:35:46 AM] [BraviaOSPlatform] [INFO] Sony Bedroom: Adding new Input: Netflix

seydx commented 5 years ago

@henkhb

Reinstalled plugin? Added dvbs for several minutes

henkhb commented 5 years ago

@SeydX You are right. Put it on a fresh container and tada: Works! I guess I need to change my strategy. One Container per Device / Plugin.

Homebridge is kind of silly when it comes to reinstalls / updates and you are running into issues.

Two thinks I would like to see:

Channel up /down in the Remote (if possible) Home button to go directly to the home screen (already possible?)

seydx commented 5 years ago

@henkhb

Channel up/down in ‚remote‘ currently not possible , or i need to modify the arrow buttons in remote to channel up/down

But i think thats not the idea behind the arrow buttons ^^ But you can add channel up/down as inputs via the command parameter in config.json

Home Button as input is already possible with also a ‚command‘ entry in config.json

you need to add under your tv (config.json) following:

"commands": [
  "AAAAAQAAAAEAAABgAw==",
  "AAAAAQAAAAEAAAAQAw==",
  "AAAAAQAAAAEAAAARAw=="
]

(These are commands for home, channel up and channel down, just copy&paste)

Example-config https://github.com/SeydX/homebridge-bravia-tvos/blob/beta/example-config.json

Here you can find all available commands

https://pro-bravia.sony.net/develop/integrate/ircc-ip/ircc-codes/index.html

seydx commented 5 years ago

@hmook

which iOS and homebridge version you use?

hmook commented 5 years ago

@SeydX I'm on Homebridge Versie 0.4.48, and iOS version 12.2.

hmook commented 5 years ago

So tried removing the plugin; after that resetting homebridge (only UX plugin installed); after that added the beta plugin again and reentered my config. This resulted in the following log with some errors:


[4/6/2019, 11:48:22 AM] [homebridge-config-ui-x] Homebridge restart request received
[4/6/2019, 11:48:22 AM] [homebridge-config-ui-x] Executing restart command: killall -9 homebridge && killall -9 homebridge-config-ui-x
[4/6/2019, 11:48:26 AM] [homebridge-config-ui-x] Using Form Authentication
[4/6/2019, 11:48:27 AM] [homebridge-config-ui-x] Console v3.11.0 is listening on port 8080.
[4/6/2019, 11:48:27 AM] Loaded config.json with 0 accessories and 1 platforms.
[4/6/2019, 11:48:27 AM] ---
[4/6/2019, 11:48:27 AM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/6/2019, 11:48:27 AM] Loaded plugin: homebridge-bravia-tvos
[4/6/2019, 11:48:27 AM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/6/2019, 11:48:27 AM] ---
[4/6/2019, 11:48:27 AM] Loaded plugin: homebridge-config-ui-x
[4/6/2019, 11:48:27 AM] Registering platform 'homebridge-config-ui-x.config'
[4/6/2019, 11:48:27 AM] ---
[4/6/2019, 11:48:27 AM] Loading 1 platforms...
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] Initializing BraviaOSPlatform platform...
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] **************************************************************
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] BraviaOSPlatform v3.0.0 by SeydX
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] GitHub: https://github.com/SeydX/homebridge-bravia-tvos
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] Email: seyd55@outlook.de
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] **************************************************************
[4/6/2019, 11:48:27 AM] [BraviaOSPlatform] start success...
[4/6/2019, 11:48:27 AM] Loading 0 accessories...
Setup Payload:
X-HM://00249Y01TPLLE
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ HOMEKIT CODE │     
    └────────────┘                                     

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ HOMEKIT CODE │     
    └────────────┘  

[4/6/2019, 11:48:28 AM] [BraviaOSPlatform] [INFO] Adding new accessory: Woonkamer Televisie
[4/6/2019, 11:48:28 AM] Homebridge is running on port 51826.
[4/6/2019, 11:48:35 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: PlayStation 4
[4/6/2019, 11:48:35 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: Apple TV
[4/6/2019, 11:48:35 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 1
[4/6/2019, 11:48:35 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 2
[4/6/2019, 11:48:35 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 3/ARC
[4/6/2019, 11:48:35 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 4
[4/6/2019, 11:49:00 AM] TypeError: Cannot read property 'displayName' of undefined
    at PlatformAccessory.<anonymous> (/usr/local/lib/node_modules/homebridge-bravia-tvos/src/accessory.js:51:39)
    at PlatformAccessory.emit (events.js:189:13)
    at PlatformAccessory.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/platformAccessory.js:155:12)
    at Accessory.emit (events.js:189:13)
    at Accessory._identificationRequest (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:132:10)
    at Accessory.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:1029:14)
    at Characteristic.Identify.emit (events.js:189:13)
    at Characteristic.Identify.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:321:10)
    at Bridge.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:880:22)
    at Array.forEach (<anonymous>)
[4/6/2019, 11:49:00 AM] Got SIGTERM, shutting down Homebridge...
[4/6/2019, 11:49:09 AM] Loaded config.json with 0 accessories and 1 platforms.
[4/6/2019, 11:49:09 AM] ---
[4/6/2019, 11:49:09 AM] Plugin /usr/local/lib/node_modules/homebridge-bravia-tvos requires Node version of ^8.9.1 which does not satisfy the current Node version of v10.15.3. You may need to upgrade your installation of Node.
[4/6/2019, 11:49:09 AM] Loaded plugin: homebridge-bravia-tvos
[4/6/2019, 11:49:10 AM] Registering platform 'homebridge-bravia-tvos.BraviaOSPlatform'
[4/6/2019, 11:49:10 AM] ---
[4/6/2019, 11:49:10 AM] Loaded plugin: homebridge-config-ui-x
[4/6/2019, 11:49:10 AM] Registering platform 'homebridge-config-ui-x.config'
[4/6/2019, 11:49:10 AM] ---
[4/6/2019, 11:49:10 AM] Loading 1 platforms...
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] Initializing BraviaOSPlatform platform...
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] **************************************************************
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] BraviaOSPlatform v3.0.0 by SeydX
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] GitHub: https://github.com/SeydX/homebridge-bravia-tvos
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] Email: seyd55@outlook.de
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] **************************************************************
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] start success...
[4/6/2019, 11:49:10 AM] Loading 0 accessories...
[4/6/2019, 11:49:10 AM] [BraviaOSPlatform] [INFO] Configuring accessory Woonkamer Televisie
Setup Payload:
X-HM://00249Y01TPLLE
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ HOMEKIT CODE │     
    └────────────┘                      

Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    ┌────────────┐     
    │ HOMEKIT CODE │     
    └────────────┘     

[4/6/2019, 11:49:10 AM] Homebridge is running on port 51826.
[4/6/2019, 11:49:13 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)
[4/6/2019, 11:49:17 AM] [BraviaOSPlatform] [WARN] Woonkamer Televisie: Removing Input: PlayStation 4
[4/6/2019, 11:49:17 AM] [BraviaOSPlatform] [WARN] Woonkamer Televisie: Removing Input: Apple TV
[4/6/2019, 11:49:28 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn on (WOL)
[4/6/2019, 11:49:31 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)
[4/6/2019, 11:49:32 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn on (WOL)
[4/6/2019, 11:49:37 AM] [BraviaOSPlatform] [ERROR] Woonkamer Televisie: Error while getting input state!
[4/6/2019, 11:49:37 AM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)

Hoping this will help you out.

seydx commented 5 years ago

Thx! Fixed that, try reinstalling pls

hmook commented 5 years ago

Reinstalled same way as before. Stil having a minor issue:


4/6/2019, 12:02:55 PM] [BraviaOSPlatform] [INFO] Adding new accessory: Woonkamer Televisie
[4/6/2019, 12:02:56 PM] Homebridge is running on port 51826.
[4/6/2019, 12:03:03 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: PlayStation 4
[4/6/2019, 12:03:03 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: Apple TV
[4/6/2019, 12:03:03 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 1
[4/6/2019, 12:03:03 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 2
[4/6/2019, 12:03:03 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 3/ARC
[4/6/2019, 12:03:03 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 4
[4/6/2019, 12:03:31 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Hi!
[4/6/2019, 12:03:40 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)
[4/6/2019, 12:03:56 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn on (WOL)
[4/6/2019, 12:03:59 PM] [BraviaOSPlatform] [ERROR] Woonkamer Televisie: Error while getting input state!
[4/6/2019, 12:04:00 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)
[4/6/2019, 12:04:06 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn on (WOL)
[4/6/2019, 12:04:10 PM] [BraviaOSPlatform] [ERROR] Woonkamer Televisie: Error while getting input state!
[4/6/2019, 12:04:11 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)

Connection seems OK right now. Doesn't go to no response status.

seydx commented 5 years ago

Can you reinstall again pls. You should be able to see the error now

hmook commented 5 years ago

@SeydX Nailed it I guess thanks! Will be testing this weekend!

hmook commented 5 years ago

Unfortunately after a while the status changed again to 'no response' and the name of the device changed to other (overige in dutch)


[4/6/2019, 12:12:31 PM] [BraviaOSPlatform] [INFO] Adding new accessory: Woonkamer Televisie
[4/6/2019, 12:12:31 PM] Homebridge is running on port 51826.
[4/6/2019, 12:12:38 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: PlayStation 4
[4/6/2019, 12:12:39 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: Apple TV
[4/6/2019, 12:12:39 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 1
[4/6/2019, 12:12:39 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 2
[4/6/2019, 12:12:39 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 3/ARC
[4/6/2019, 12:12:39 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Adding new Input: HDMI 4
[4/6/2019, 12:13:02 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Hi!
[4/6/2019, 12:13:07 PM] [BraviaOSPlatform] [INFO] HDMI 1: Hide
[4/6/2019, 12:13:08 PM] [BraviaOSPlatform] [INFO] HDMI 2: Hide
[4/6/2019, 12:13:09 PM] [BraviaOSPlatform] [INFO] HDMI 4: Hide
[4/6/2019, 12:13:10 PM] [BraviaOSPlatform] [INFO] HDMI 3/ARC: Hide
[4/6/2019, 12:13:22 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn on Apple TV
[4/6/2019, 12:13:26 PM] [BraviaOSPlatform] [INFO] Woonkamer Televisie: Turn off (WOL)
seydx commented 5 years ago

@hmook

It seems that your homebridge push new characteristics, the problem with "no response" occures mostly, if one of these characteristics is "undefined" and if homebridge update the caracteristic/service with an undefined value, the accessory will become "no response"

But i dont know why it tries to push new characteristics, the plugin do this only after a restart. And you have the prob after several minutes.. that doesnt make any sense.. hmmm

seydx commented 5 years ago

@hmook

Which version does your Apple TV have?

hmook commented 5 years ago

@SeydX I have a AppleTV4 and a AppleTV4K in my network. HomeKit is using the 4 not the 4K most of the time.

pbendersky commented 5 years ago

@SeydX seems to be working great. The only missing thing for me, is the volume control. Any idea?

twocolors commented 5 years ago

hi in this https://github.com/SeydX/homebridge-bravia-tvos/issues/30 , not switch to DVBT [4/7/2019, 9:41:39 PM] [BraviaOSPlatform] [INFO] TV: Turn on DVBT and not found dig. tv all config

{
                    "name": "TV",
                    "ip": "192.168.0.11",
                    "port": 80,
                    "psk": "***",
                    "extraInputs": false,
                    "cecInputs": true,
                    "channelSource": "DVBT",
                    "apps": [],
                    "wol": true
                }

model tv KDL-60W605B +


[4/8/2019, 6:56:22 AM] [BraviaOSPlatform] [ERROR] TV: Error while getting power state!
[4/8/2019, 6:56:22 AM] [BraviaOSPlatform] [ERROR] [Bravia Debug]: {"config":{"transformRequest":{},"transformResponse":{},"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"text/xml","X-Auth-PSK":"***","SOAPACTION":"\"urn:schemas-sony-com:service:IRCC:1#X_SendIRCC\"","Cookie":"cookie","Content-Length":62,"User-Agent":"axios/0.18.0"},"method":"post","url":"http://192.168.0.11:80/sony/system","data":"{\"id\":1,\"method\":\"getPowerStatus\",\"version\":\"1.0\",\"params\":[]}"}}
[4/8/2019, 6:56:35 AM] [BraviaOSPlatform] [ERROR] TV: Error while getting power state!
``` power check ok in 2.0
hmook commented 5 years ago

@SeydX It's weird. I did a complete reinstall of ONZU docker Homebridge only installed the beta Bravia plugin but still after serval minutes I get a no response status.

hmook commented 5 years ago

@SeydX In addition to this also the homebridge device is giving a no response status. The following error acquired:

HAP Warning: Characteristic 00000136-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 000000D8-0000-1000-8000-0026BB765291. Adding anyway.
[4/8/2019, 12:05:06 PM] [BraviaOSPlatform] [ERROR] Woonkamer Televisie: Error while getting input state!
[4/8/2019, 12:05:06 PM] [BraviaOSPlatform] [ERROR] [Bravia Debug]: {}
seydx commented 5 years ago

@hmook

updated, can you try the new version pls

@pbendersky

TV volume control is currently removed from Apple from the 3rd party apps, need to add a service with custom characteristics to display volume in 3rd party apps. Currently in progress

twocolors commented 5 years ago

@SeydX plz fix in model KDL-60W605B switch to DVBT

seydx commented 5 years ago

@twocolors

What you mean exactly with DVBT? Whats is exactly your problem i didnt understand it

twocolors commented 5 years ago

@SeydX detected

[4/8/2019, 10:16:07 PM] [BraviaOSPlatform] [WARN] TV: TV active! Fetching inputs...!
[4/8/2019, 10:16:12 PM] [BraviaOSPlatform] [INFO] TV: Adding new Input: HDMI 1/MHL
[4/8/2019, 10:16:12 PM] [BraviaOSPlatform] [INFO] TV: Adding new Input: HDMI 2
[4/8/2019, 10:16:13 PM] [BraviaOSPlatform] [INFO] TV: Adding new Input: HDMI 3
[4/8/2019, 10:16:13 PM] [BraviaOSPlatform] [INFO] TV: Adding new Input: HDMI 4
[4/8/2019, 10:16:13 PM] [BraviaOSPlatform] [INFO] TV: Adding new Input: DVBT
[4/8/2019, 10:16:13 PM] [BraviaOSPlatform] [INFO] Registring new platform accessory: TV

when switch to DVBT nothing done, HDMI * - work and not found dvbc

$ curl http://192.168.0.11/sony/avContent -H 'x-auth-psk: ***' -d '{"id":3,"method":"getSourceList","version":"1.0","params":[{"scheme":"tv"}]}'
{"id":3,"result":[[{"source":"tv:dvbc"},{"source":"tv:dvbt"}]]}
seydx commented 5 years ago

can u post your config.json pls

can u reinstall it pls, updated some parts

seydx commented 5 years ago

New Update online

There are some significant changes in config.json, please check your config.json with the example-config.json

TL:DR

@twocolors Can you update and refresh your config.json pls and try it again

twocolors commented 5 years ago

@SeydX update to last beta

{ 
                    "name": "TV",
                    "ip": "192.168.0.11",
                    "port": 80,
                    "psk": "***",
                    "extraInputs": true,
                    "cecInputs": true,
                    "channelInputs": ["DVBT","DVBC","ANALOG"],
                    "apps": [],
                    "wol": true
                }

When run get error

[4/9/2019, 11:24:56 AM] [BraviaOSPlatform] [INFO] Adding new accessory: TV
[4/9/2019, 11:24:56 AM] [BraviaOSPlatform] [INFO] TV: CEC detected, checking TV state before fetching inputs...
[4/9/2019, 11:24:57 AM] Homebridge is running on port 51826.
[4/9/2019, 11:25:01 AM] [BraviaOSPlatform] [ERROR] TV: Error while getting new inputs!
[4/9/2019, 11:25:01 AM] [BraviaOSPlatform] [ERROR] TV: Please fix the issue and restart homebridge!
[4/9/2019, 11:25:01 AM] [BraviaOSPlatform] [ERROR] [object Object]
[4/9/2019, 11:25:07 AM] [homebridge-config-ui-x] Using Form Authentication
seydx commented 5 years ago

@twocolors

can you update pls? we should be able to see the error now

twocolors commented 5 years ago

@SeydX

[4/9/2019, 1:09:11 PM] [BraviaOSPlatform] [ERROR] TV: Error while getting new inputs!
[4/9/2019, 1:09:11 PM] [BraviaOSPlatform] [ERROR] TV: Please fix the issue and restart homebridge!
[4/9/2019, 1:09:11 PM] [BraviaOSPlatform] [ERROR] {"config":{"transformRequest":{},"transformResponse":{},"timeout":0,"xsrfCookieName":"XSRF-TOKEN","xsrfHeaderName":"X-XSRF-TOKEN","maxContentLength":-1,"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json","X-Auth-PSK":"***","User-Agent":"axios/0.18.0","Content-Length":62},"method":"post","url":"http://192.168.0.11:80/sony/system","data":"{\"id\":1,\"method\":\"getPowerStatus\",\"version\":\"1.0\",\"params\":[]}"}}

mb, not work WoL for model KDL ?

seydx commented 5 years ago

@twocolors

Is it working if you set WOL to false in config.json ?