Giter Site home page Giter Site logo

Comments (19)

seydx avatar seydx commented on June 30, 2024

Hm can you Post the Output from following Command pls:

curl -s -X POST -d "{"id":3,"method":"getVolumeInformation","version":"1.0","params":["1.0"]}" "http://TVIPHERE/sony/audio" -H "X-Auth-PSK: YOURPSK"

And can you Check if this Command changes the volume, and can you Post the Output from this Command too

curl -s -H "X-Auth-PSK: YOURPSKHERE" -d "{"id":2,"method":"setAudioVolume","version":"1.0","params":
[{"target":"speaker","volume":"2"}]}" "http://TVIPHERE/sony/audio"

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

Thanks for your reply.

I was failed to intsall "jq" because the plugin is running on a docker image oznu/docker-homebridge which cannot run the command “sudo apt-get install jq”.
do you know any other way to install that? then I can post what you asked.

Thanks so much

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

@ryanxu36

You dont need jq for the command

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

Both command return "curl: not found"

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

I dont use docker, but maybe you can use curl with this?

https://hub.docker.com/r/byrnedo/alpine-curl/

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

I have added a curl to my homebridge,
both your command returns
{"error":[5,"Illegal JSON"]}

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

@ryanxu36

hmm... can you upgrade to latest version and post the output here please

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

I have just upgraded to version 2.3 and the config is also up to date but the command returns same thing {"error":[5,"Illegal JSON"]}

For your information, I am using a Synology NAS docker to run homebridge with your plugin, and I can get correct list of apps installed on my TV with your home app command
curl -XPOST http://192.168.2.180/sony/appControl -d '{"id":2,"method":"getApplicationList","version":"1.0","params":["1.0"]}' -H 'X-Auth-PSK: 1234' | jq -r '.result[]'

I am thinking if it is a device or platform matter?

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Hmm the command for apps is working but not that for volume? Maybe above is a typo, can you try with this command. Its working with my TV.

(Note: change ip adress and psk with your own data)

curl -XPOST http://192.168.1.2/sony/audio -d '{"id":2,"method":"getVolumeInformation","version":"1.0","params":["1.0"]}' -H 'X-Auth-PSK: abc123'

And here again for set new value for volume:

curl -XPOST http://192.168.1.2/sony/audio -d '{"id":2,"method":"setAudioVolume","version":"1.0","params":[{"target":"speaker","volume":"10"}]}' -H 'X-Auth-PSK: abc123'

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

First command returns:

{"result":[[{"target":"speaker","volume":23,"mute":false,"maxVolume":100,"minVolum
e":0},{"target":"headphone","volume":15,"mute":false,"maxVolume":100,"minVolume":0
}]],"id":2}

Second command returns:

{"result":[0],"id":2}

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

The Second Command should Change the volume on the TV to 10. Can you Change manually the volume to 20 and Run the Second Command again to See it on the TV if the Command changes it really or Not pls

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

It dose not change the volume.
I set manually the volume to 20 and run the first command, the result is not "20" but "23".
The second command makes the volume bar pop-up on TV but not change the volume actually.

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Hmm that makes no Sense, because its asking the TV for the volume state and i dont know why it is saying "23" and not the real value "20"

Which model do you have?

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

My TV is a 2015 model KD-65X9000C

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

Oh, I realized that I have a Sony HT-ST9 soundbar connected to my TV, when I change the volume of TV the soundbar volume will also be changed automatically, they are linked. For example, the volume of TV is 20 and the volume of soundbar will be 10 (volume of TV=volume of sounbar*2), AND I can change the volume of TV only by step of "2", like 20->22->24... and the soundbar will be 10->11->12... So maybe thats the problem, I will remove the soundbar and try the command later and put the result here. Thank you so much..

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Haha :D yes that would be the problem, i think it will work when you remove it, im waiting for the output, thanks for response

from homebridge-sonybravia-platform.

ryanxu36 avatar ryanxu36 commented on June 30, 2024

It works when I remove the soundbar, maybe HDMI ARC cause the problem, it makes linkage between TV and soundbar and I am using soundbar as a common speaker, so your plugin cannot get the correct information of volume. Other features work great for me! Thanks for your great job!

from homebridge-sonybravia-platform.

seydx avatar seydx commented on June 30, 2024

Ah i understand, yeah the volume bulb can only control directly the tv and Not plugged in external accessory if they are Not listed in the api

Good to hear that everything Else Works fine, im closing the issue then

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.