alexmohr / sonyapilib

Contains a python api to control sony devices.
MIT License
20 stars 11 forks source link

Sony Bravia KDL-xxHX723 (2011) not working because no reposnse to /Ircc.xml #51

Closed PaulWebster closed 3 years ago

PaulWebster commented 4 years ago

I am trying to get an old Sony TV integrated. However, it is not getting through the early phases because the request to fetch from /Ircc.xml fails.

I am digging around to try to see if the info is hiding somewhere else or if I can bypass the call. Can you post what would normally be returned from that URL so that I can see if equivalent info is available via a different URL/port?

alexmohr commented 4 years ago

You can take a look at the XML at https://github.com/alexmohr/sonyapilib/blob/master/tests/data/ircc.xml

PaulWebster commented 4 years ago

Making progress. I think that the data that it wants is in dmr.xml - and the code allows for that by checking to see if the Ircc port is the same as the dmr port if self.ircc_port == self.dmr_port:

However, the call to this is from HASS via sony/media_player.py ... so I think this means that media_player.py needs to allow the IRCC port to be specified and then this needs to be passed through from there to here. I'll create a new issue over there and reference this one.

PaulWebster commented 4 years ago

Update ... it looked like ircc_port was not being taken from the configuration.yaml file However, I think that this was happening because the device was configured prior to the field being available. So - I removed the sony.conf file to force a new config flow and then it was picked up ... at least I think that is what happened (lots of moving parts).

hongphuc95 commented 4 years ago

Update ... it looked like ircc_port was not being taken from the configuration.yaml file However, I think that this was happening because the device was configured prior to the field being available. So - I removed the sony.conf file to force a new config flow and then it was picked up ... at least I think that is what happened (lots of moving parts).

Hi, I have the same problem as yours. What steps did you take to resolve this issue? Thanks

PaulWebster commented 4 years ago

I did exactly as I wrote earlier. Note though that the code has had a few updates since this ticket so make sure you are using the latest.

hongphuc95 commented 4 years ago

I did exactly as I wrote earlier. Note though that the code has had a few updates since this ticket so make sure you are using the latest.

I didn’t see the sony.conf file in the code source. Perhaps it has been removed since this ticket?

alexmohr commented 4 years ago

The sony.conf files does not belong to this repository. It will be generated by the home assistant component as soon as the device configuration is done.

alexmohr commented 4 years ago

@PaulWebster @hongphuc95 Is this issue still relevant to you or where you able to solve this issue?

PaulWebster commented 4 years ago

Not an issue for me.

alexmohr commented 3 years ago

Closing this due to inactivity