dilruacs / media_player.sony

Custom component for Home Assistant to control Sony devices
Apache License 2.0
3 stars 11 forks source link

Misspell on authentication on master #2

Closed drageloth closed 5 years ago

drageloth commented 5 years ago

Error Failed to call service configurator/configure. cannot import name 'AuthenicationResult' from 'sonyapilib.device' (/config/deps/lib/python3.7/site-packages/sonyapilib/device.py)

when trying to authenticate. If I edit the file media_player and replace Authenication with Authentication it works.

Other than that, I get these error whenever I press a button: Failed to call service media_player/media_next_track. Failed to read command list from device. Home Cinema is BDVE4100. I guess maybe not compatible?

Sorry about replying in general, but I'm not a dev!

dilruacs commented 5 years ago

Hi, thanks for testing!

The spelling error is inherited from the upstream library, where it has been fixed before; causing a mismatch. As I did not re-authenticate my device since, this code wasn't referenced again in my setup so far.

I fixed it, if you check out the code again, you have the correct spelling.

As far as support for the BDV-E4100 is concerned: it should be supported. The code of the library that is being used by this component has been refactored recently and eliminates a few bugs: I will get around to releasing an updated version of this component when I get back from my holiday in a week.

Could you try to retrieve http://10.0.0.42:52323/dmr.xml (insert the IP of your device) and post it here?

drageloth commented 5 years ago

Of course! There you go:

`<?xml version="1.0"?>

1 0 urn:schemas-upnp-org:device:MediaRenderer:1 BLU-RAY HOME THEATRE SYSTEM Sony Corporation http://www.sony.net/ BLU-RAY HOME THEATRE SYSTEM BDV-2013 uuid:00000000-0000-1010-8000-fcf1521f11ba DMR-1.50 playcontainer-1-0 image/jpeg 120 120 24 /bdv_ej_device_icon_large.jpg image/png 120 120 24 /bdv_ej_device_icon_large.png image/jpeg 48 48 24 /bdv_ej_device_icon_small.jpg image/png 48 48 24 /bdv_ej_device_icon_small.png urn:schemas-upnp-org:service:RenderingControl:1 urn:upnp-org:serviceId:RenderingControl /RenderingControlBdvSCPD.xml /upnp/control/RenderingControl /upnp/event/RenderingControl urn:schemas-upnp-org:service:ConnectionManager:1 urn:upnp-org:serviceId:ConnectionManager /ConnectionManagerSCPD.xml /upnp/control/ConnectionManager /upnp/event/ConnectionManager urn:schemas-upnp-org:service:AVTransport:1 urn:upnp-org:serviceId:AVTransport /AVTransportSCPD.xml /upnp/control/AVTransport /upnp/event/AVTransport urn:schemas-sony-com:service:Party:1 urn:schemas-sony-com:serviceId:Party /PartySCPD.xml /upnp/control/Party /upnp/event/Party 1.1 1 MS_DigitalMediaDeviceClass_DMR_V001 MediaDevices VEN_0106&DEV_0400&REV_01 Multimedia.DMR

` dmr.txt

drageloth commented 5 years ago

Case closed as the other problem does not match the topic