Giter Site home page Giter Site logo

Comments (17)

seydx avatar seydx commented on June 30, 2024 1

taking it directly were a good Solution ^^

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Hm can you try activate Apple TV with Bravia sync and try again getting the logical address

It must be detected as meta:cec and Not meta:playback

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

Yeah I tried that, and it says: meta:playbackdevice

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Hmm, i will look later, maybe there is a workaround to Start a cec device

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

So it is not possible to start a cec device without logical adress, its only possible to change the hdmi input. Do you have checked the cec settings from apple tv? Normally all devices that support cec must be shown as cec in the output, otherwise it is not possible to start it

i will change the code to prevent getting error without logical adress

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

i checked the icon tag of my cec devices and "meta:playback" is correct, so just forgot what i have said above with "meta:cec" ^^

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

Yeah it shows the Apple TV in the CEC settings as enabled. Very strange! I'm guessing different models have different implementations of the protocol, which is kinda mad.

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

I'm able to wake my Apple TV with this command:

curl -H "Content-Type: application/json" \
  -H "X-Auth-PSK: xxx" \
  -X POST \
  -d '{"id": 20, "method": "setPlayContent", "version": "1.0", "params": [{"uri":"extInput:cec?type=player&port=1"}]}' \
  http://192.168.0.18/sony/avContent

Unfortunately, this only works after first powering on the TV, waiting a finite period of time, then sending the command. Perhaps we can add these types of macros as switches? Or, again dynamically determine if the TV is on and power on only if needed?

While it was off, I got:

{"error":[404,"Not Found"]}

I used this kind of as reference, but I don't think even that is identical to mine. The plugin may need to dynamically figure out what's supported before using it, to properly support different Bravia TV's. :-/
https://aydbe.com/assets/uploads/2014/11/json.txt

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

There is already a function to check the tv state first before turning on the cec device. If there is an "error" in response, it tries to turn on the tv, if there is "result" in response it tries to turn on the cec device.

Here is the problem. It always tries turning on with port AND logical adress, and if there is no logical adress you got an "error" in response and the plugin thinks the tv is off and try everything again

To solve this, we must check the given parameter in the config file. If there is only port given, so we need an uri without the logical adress, if both is given, we need an uri with port and logical adress

I will check this and publish a new version later

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

Why not just change it to taking the uri directly? Then it should work in all cases. Glad to hear you handle the power off case!

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Because the uri which is working for you doesnt work for me :/ so i need to check the given Parameter and Change dynamically the uri

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

should be fixed with v2.3
can you try and give some feedback pls

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

I like the auto-config in the new one!

It works while the TV is on, but when it's off, it turns the TV on then crashes with this error:

[2018-3-25 21:58:06] [Sony] Turning on the TV...
/Users/elp/.nvm/versions/node/v7.6.0/lib/node_modules/homebridge-sonybravia-platform/accessories/Inputs.js:185
                                        this.SourceSwitch.getCharacteristic(Characteristic.On).setValue(self.state);
                                                         ^

TypeError: Cannot read property 'getCharacteristic' of undefined
    at Timeout._onTimeout (/Users/elp/.nvm/versions/node/v7.6.0/lib/node_modules/homebridge-sonybravia-platform/accessories/Inputs.js:185:58)
    at ontimeout (timers.js:469:11)
    at tryOnTimeout (timers.js:304:5)
    at Timer.listOnTimeout (timers.js:264:5)

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Should be fixed with 3d142c6

new Version is on the way

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

can you try the latest version and give some feedback pls

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

It's working great, turns the TV on then turns the ATV on exactly as expected, thanks!

from homebridge-sonybravia-platform.

epheterson avatar epheterson commented on June 30, 2024

Hey this stopped working exactly as it was – when I have the definition set to HDMI4, it still maps to HDMI1. I'm not sure when this changed, exactly.

I'm using this:

			"cecDevices": [{
				"title": "Player 1",
				"hdmiport": 4
			}]
		}

With that, I see in the Home App HDMI2, HDMI3, HDMI4 and "Sony Player 1" which maps to HDMI1. When I turn on the TV with HDMI4 selected (where the Apple TV is), the HDMI4 tile is lit, and not "Sony Player 1".

Any ideas?

from homebridge-sonybravia-platform.

Related Issues (20)

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.