Giter Site home page Giter Site logo

homebridge-sonybravia-platform's Issues

ATV has port, but no logical address, doesn't work with current implementation

I'm not sure how to enter this, whenever I choose a random port number I see the app runaway wildly turning it on in a loop.

Command output:
{
"connection": true,
"icon": "meta:playbackdevice",
"label": "Apple TV",
"title": "Player 1",
"uri": "extInput:cec?type=player&port=1"
},

My config:
"cecs": [{
"label": "Apple TV",
"logaddr": 0,
"port": 1
}]

The result:
[2018-3-23 03:28:06] [Sony] Turning on the TV...
[2018-3-23 03:28:07] [Sony] Turning on the TV...
[2018-3-23 03:28:07] [Sony] Turning on the TV...
[2018-3-23 03:28:07] [Sony] Turning on the TV...
[2018-3-23 03:28:08] [Sony] Turning on the TV...
[2018-3-23 03:28:08] [Sony] Turning on the TV...
[2018-3-23 03:28:09] [Sony] Turning on the TV...
[2018-3-23 03:28:09] [Sony] Turning on the TV...
[2018-3-23 03:28:09] [Sony] Turning on the TV...
[2018-3-23 03:28:10] [Sony] Turning on the TV...
[2018-3-23 03:28:10] [Sony] Turning on the TV...
[2018-3-23 03:28:10] [Sony] Turning on the TV...
[2018-3-23 03:28:10] [Sony] Turning on the TV...
[2018-3-23 03:28:10] [Sony] Turning on the TV...
[2018-3-23 03:28:10] [Sony] Turning on the TV...
[2018-3-23 03:28:11] [Sony] Turning on the TV...
[2018-3-23 03:28:11] [Sony] Turning on the TV...
[2018-3-23 03:28:11] [Sony] Turning on the TV...
[2018-3-23 03:28:11] [Sony] Turning on the TV...
[2018-3-23 03:28:11] [Sony] Turning on the TV...
[2018-3-23 03:28:12] [Sony] Turning on the TV...
[2018-3-23 03:28:12] [Sony] Turning on the TV...
[2018-3-23 03:28:12] [Sony] Turning on the TV...
[2018-3-23 03:28:12] [Sony] Turning on the TV...
[2018-3-23 03:28:12] [Sony] Turning on the TV...
[2018-3-23 03:28:13] [Sony] Turning on the TV...
[2018-3-23 03:28:13] [Sony] Turning on the TV...
[2018-3-23 03:28:13] [Sony] Turning on the TV...
[2018-3-23 03:28:13] [Sony] Turning on the TV...

HDMI arc

Volume control don’t work when sound bar is selectioned.

HomeKit support

Now that HomeBridge has been updated to support tv services, can this be added to this Plugin?

Plug-in not working: Port issue?

I installed the Bravia plugin, and configured the config file. I started off slowly only activating the Power and Volume, but neither are working. I changed the port to be 194 and even set up port forwarding on my router to point to the TV ip address. Any thoughts why it's not working?

{
"platform": "BraviaTV",
"name": "TV",
"ipadress": "192.168.7.98",
"port": 194,
"psk": "XXXX",
"tvEnabled": true,
"volumeEnabled": false,
"inputsEnabled": false,
"detectCEC": false,
"extraInputs": false,
"appsEnabled": false,
"channelsEnabled": false,
"remoteControl": false
}

Enhancement: Allow setting of Home App with Apps service

The app service is a nice way to open apps, and it displays both the current and home app, but it'd be cool if it also allowed setting of the home app. All it would need is one more toggle, I suppose this would mandate that it's not set it the config file as well.

With the television completely turned off, Homebridge does not work well

With the television completely turned off, Homebridge does not work well, that is, if for whatever reason I decide to turn it off completely from the power socket then Hombridge appears not working, all the Home App buttons do not work. Why is this happening? If I go on a trip and I want to turn off the TV, I can't since then I don't have access to anything
CopyQ RVcWnz

Can turning off an input/CEC turn off the TV?

I like how I can turn on both the TV and Apple TV with one switch now (The Apple TV CEC). It'd then be great to also turn off the whole setup with the same switch.

For this to be possible, we'd need to pick between launching a home app on close, or sending the off command. Perhaps there could be a setting in the config to control it?

Remote says "this accessory is not currently supported by the home app"

Hello,
Thanks for this plugin. Very useful!
All of it works great in iOS 13.3 except the remote.
In Home App I currently get an error message:
"this accessory is not currently supported by the home app"
Is this a known issue? Is there a fix or workaround?

I have no other remotes than Apple TV working in Home App but I have one more remote working in Control center via the JSON config in Homebridge.
Grateful for any comment? Many thanks.

Help

Im having this problem when running homebridge.

Any help would be appreciated

[2/13/2018, 8:47:13 PM] [Sony Bravia] Initializing SonyBravia platform...
/usr/local/lib/node_modules/homebridge-sonybravia-platform/index.js:756
this.tvSwitch = self.tvSwitch;
^

ReferenceError: self is not defined
at new TVSwitchAccessory (/usr/local/lib/node_modules/homebridge-sonybravia-platform/index.js:756:21)
at async.waterfall.reqApps.token (/usr/local/lib/node_modules/homebridge-sonybravia-platform/index.js:131:36)
at nextTask (/usr/local/lib/node_modules/homebridge-sonybravia-platform/node_modules/async/dist/async.js:5310:14)
at Object.waterfall (/usr/local/lib/node_modules/homebridge-sonybravia-platform/node_modules/async/dist/async.js:5320:5)
at Object.accessories (/usr/local/lib/node_modules/homebridge-sonybravia-platform/index.js:117:12)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
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:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:393:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:508:3

Controlling volume with soundbar

On most recent version of plugin. Everything had been working just fine including volume control. Recently added a Sony soundbar to the TV and now when I try to change the volume in HomeKit I see the volume pop up on tv displaying the current volume but no changes occur. Homebridge terminal shows volume request with correct requested volume.

Cannot control volume

Everything works great except the volume controller, the volume bar just appear when I adjust the bulb in home app, but it does not actually control the volume. I have no idea how to fix it..help..
Great plugin, thanks!

Switching to TV

Hello, I have installed the plugin 1 week ago, however after switching to adifferent channel like AppleTV i can switch back to TV... what do I wrong

Volume slider should show proper % when maxVolume is set

The lightbulb brightness in the app is 100% always, regardless of what maxVolume is set to in config.json. You should override the max brightness to the maxVolume value so that you get both a smaller range / more control in the slider, and an accurate number displayed in the app.

Siri understands power commands only a couple of times after restarting homebridge

I have a strange issue, related only to this plugin so far. I have named the platform "TV". Powering on and off via Siri voice commands works only 1 or 2 times, after that Siri's response is "Hmm.. I can't do that with Homekit because I'm not sure what you mean by TV".

I have tried other names: Sony, Sony Bravia, etc. Always the same result, the voice command work only the first one or two times, after that they don't. From Home app (or Elgato Eve) everything works, only the voice commands do not work. The problem is both with this and the dynamic version of plugin.

I tried also other Bravia plugin (https://www.npmjs.com/package/homebridge-bravia), and with that there's no issue: Power on and off command works fine.

Funny thing is that voice commands for volume do work permanently, telling "Hey Siri, TV Volume 15" sets it every time to whichever value you want. Only the power commands fail.

v2.3 can get stuck on launch

In v2.3 I started seeing this, it's happened twice so far and I have to wait, or remove my cachedAccessories to resolve it.

It hit it after trying to use the new CEC feature, then launching homebridge while the TV was off. I'm attempting to turn to the CEC while the TV is off, and it crashes. After that, sometimes, on subsequent launches of homebridge I'll hit this issue.

[2018-3-25 22:07:24] [Sony] { Error: connect ECONNREFUSED 192.168.0.18:80
    at Object.exports._errnoException (util.js:1024:11)
    at exports._exceptionWithHostPort (util.js:1047:20)
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1150:14)
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect',
  address: '192.168.0.18',
  port: 80 }
[2018-3-25 22:07:34] [Sony] Getting apps...
[2018-3-25 22:07:34] [Sony] Error: Failed to load data, status code: 404
    at ClientRequest.<anonymous> (/Users/elp/.nvm/versions/node/v7.6.0/lib/node_modules/homebridge-sonybravia-platform/index.js:104:28)
    at Object.onceWrapper (events.js:316:30)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at HTTPParser.parserOnIncomingClient (_http_client.js:565:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
    at Socket.socketOnData (_http_client.js:454:20)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:252:12)
[2018-3-25 22:07:44] [Sony] Getting apps...
[2018-3-25 22:07:44] [Sony] Error: Failed to load data, status code: 404
    at ClientRequest.<anonymous> (/Users/elp/.nvm/versions/node/v7.6.0/lib/node_modules/homebridge-sonybravia-platform/index.js:104:28)
    at Object.onceWrapper (events.js:316:30)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at HTTPParser.parserOnIncomingClient (_http_client.js:565:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:116:23)
    at Socket.socketOnData (_http_client.js:454:20)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:252:12)
[2018-3-25 22:07:54] [Sony] Getting apps...

Volume controller

Hello,
Just installed the latest version and updated the config.json, volume controller still does not work.
the config.json:

{
    "bridge": {
        "name": "Homebridge",
        "username": "02:42:81:B2:65:96",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "This is an example configuration file. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "accessories": [],

    "platforms": [
        {
        "platform": "HomeAssistant",
        "name": "HomeAssistant",
        "host": "http://127.0.0.1:8123",
        "password": "",
        "supported_types": ["automation", "binary_sensor", "climate", "cover", "device_tracker", "fan", "group", "input_boolean", "light", "lock", "media_player", "remote", "scene", "script", "sensor", "switch", "vacuum"],
        "default_visibility": "hidden",
        "logging": true,
        "verify_ssl": false
        },
        {
            "platform": "config",
            "name": "Config",
            "port": 8080,
            "sudo": false
        },
        {
        "platform":"SonyBravia", 
        "name":"Sony",
        "ipadress":"192.168.2.180",
        "psk":"1234",
        "interval": 5,
        "maxVolume":60,
        "extraInputs":false,
        "volumeEnabled": true,
        "appsEnabled": false,
        "channelsEnabled":false,
        "homeapp":"com.sony.dtv.com.wasu.wasutvcs.com.wasu.wasutvcs.activity.AuthActivity",
        "cecs":
        [
            {
                "label":"PlayStation 4",
                "logaddr":8,
                "port":1
            }
        ]
        }
    ]
}

When adjust the volume in homekit log shows:

[2018-3-23 14:03:12] [Sony] Volume: 27
[2018-3-23 14:03:12] [Sony] Volume: 19
[2018-3-23 14:03:20] [HomeAssistant] Received event: ping
[2018-3-23 14:03:23] [Sony] Volume: 31

but TV volume does not change.

Plugin doesn't allow homebridge to launch while TV is off

It seems that getting the app list on my Sony requires it to be awake. I've set the always-on IP mode on the TV, and the plugin is able to turn the TV on while it's off. In spite of that, if I launch homebridge while the TV is off, it gets stuck looking for apps. I have Sony model KDL40W600B.

It just prints this in a loop:
[2018-3-23 04:31:48] [Sony] Sony: TypeError: Cannot read property '0' of undefined - Trying again
[2018-3-23 04:31:58] [Sony] Getting apps...
[2018-3-23 04:31:58] [Sony] Sony: TypeError: Cannot read property '0' of undefined - Trying again

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.