Comments (17)
taking it directly were a good Solution ^^
from homebridge-sonybravia-platform.
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.
Yeah I tried that, and it says: meta:playbackdevice
from homebridge-sonybravia-platform.
Hmm, i will look later, maybe there is a workaround to Start a cec device
from homebridge-sonybravia-platform.
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.
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.
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.
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.
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.
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.
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.
should be fixed with v2.3
can you try and give some feedback pls
from homebridge-sonybravia-platform.
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.
Should be fixed with 3d142c6
new Version is on the way
from homebridge-sonybravia-platform.
can you try the latest version and give some feedback pls
from homebridge-sonybravia-platform.
It's working great, turns the TV on then turns the ATV on exactly as expected, thanks!
from homebridge-sonybravia-platform.
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)
- Can turning off an input/CEC turn off the TV? HOT 43
- illegal Argument by channel HOT 1
- hide port HDMI HOT 1
- Plug-in not working: Port issue? HOT 6
- Siri understands power commands only a couple of times after restarting homebridge
- HDMI arc
- Controlling volume with soundbar HOT 1
- Getting error to use different version of node (not current) HOT 1
- HomeKit support HOT 2
- Missing left and right button controls in Remote Control
- Switching to TV HOT 8
- Remote says "this accessory is not currently supported by the home app"
- With the television completely turned off, Homebridge does not work well
- Cannot control volume HOT 3
- Enhancement: Allow setting of Home App with Apps service HOT 2
- Plugin doesn't allow homebridge to launch while TV is off HOT 14
- Volume controller HOT 19
- v2.3 can get stuck on launch HOT 4
- Volume slider should show proper % when maxVolume is set HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebridge-sonybravia-platform.