-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting up RXV 2060 fails on ZONE_4 #25
Comments
Sure i will test any fixes. |
Oh, interesting... When does this failure happen? During initial setup? Also, could you attach your desc.xml for the system? (Probably http://ip.of.receiver/YamahaRemoteControl/desc.xml) We will probably actually need to properly introspect the desc.xml for features on all the zones, and would be useful to see what this one looks like. |
Happens during initial setup when update() is called. desc.xml is now at https://gist.github.com/rawdlite/bd23a2fa108a4459e061d8bb0f034a8f |
This is where it's going to be going wrong in HA, there just isn't the idea that a media player doesn't have these things - https://github.com/sdague/home-assistant/blob/c89592af7d09f50fe1006798a77a5f752ce5fb55/homeassistant/components/media_player/yamaha.py#L100-L101 That's going to get run at the end of init (and then also when changes happen later). We may just want to hide zones that don't have these controls |
@sdague if we do capabilities detection right we should be able to modify https://github.com/sdague/home-assistant/blob/c89592af7d09f50fe1006798a77a5f752ce5fb55/homeassistant/components/media_player/yamaha.py#L155 to return correct bitset per zone. |
Yeh, there looks like there is nearly no controls on Zone_4 https://gist.github.com/rawdlite/bd23a2fa108a4459e061d8bb0f034a8f#file-rx-v-2060-desc-xml-L1375 vs. Zone_3 (for instance - https://gist.github.com/rawdlite/bd23a2fa108a4459e061d8bb0f034a8f#file-rx-v-2060-desc-xml-L1250) There are probably 2 options here that make sense.
|
@wuub we're also going to have to modify receiver.basic_status, that assumes Mute / Volume properties as well. |
Yes, i can see that. What about |
@rawdlite if you're happy with only the MAIN_ZONE you can drop Yamaha autodiscovery and specify host manually. No zone detection will be done then, and this bug should not trigger. |
Actually i have:
yet auto discovery is done. i probably hack at |
I intergrated generic discovery into Home Assistant recently (though I didn't think it was in a release yet), so you'd also have to turn off the discovery component. |
@rawdlite yeh, that would work. I can put together and ignore zones patch for HA now |
@rawdlite can you file a Home Assistant bug for me to work against here? |
sure. |
Can you check out that this branch fixes things for you? - https://github.com/sdague/home-assistant/tree/yamaha_zone_ignore If so, I'll PR that today. |
yep, setting it up now. |
FYI: I'm attending PyCon.CZ until late Sunday it's going to be difficult On Fri, 28 Oct 2016, 12:23 rawdlite, [email protected] wrote:
|
No sure i did the setup right:
i get:
and
|
Yeh, my bad, I'm working on an update now |
Do a force pull on that branch again, it should be working now. |
Yes that looks good. Component is set up now. |
It is possible that the interface for this receiver changed enough that the code we have doesn't work with it. Probably worth logging the request / response out of the actually POST calls through requests. Power and Volume control look the same between your desc.xml and the one I've got for my receiver. So volume is really the one that would be worth figuring out first. |
i don't know whether this is related or not, but i checked against your dev branch and i only see the following error with the yamaha_zone_ignore branch. Exception in thread Thread-7: After that further changes of volume and source work as expected. I could not replicate the error i have seen earlier. |
That should not actually be related. That just means the upnp discovery isn't working for your yamaha unit. That's probably only happening cooincidentally in time, because the upnp discovery takes about 15 - 20 seconds from boot to get results back and feed them to Home Assistant. It might be an interesting thing to fix, but given that you specified the unit fully, it's not actually important here. If discovery was working, you'd actually see 2 versions of the stereo. |
OK, thanks for the quick fix then. |
The Yamaha RX V2060 has a Zone 4 without Mute or Volume (it is HDMI only)
This leads to the request for the mute state to return res.content as b''.
and then:
File "/home/hass/.homeassistant/deps/rxv/rxv.py", line 91, in _request
response = ET.XML(res.content)
File "/usr/lib/python3.4/xml/etree/ElementTree.py", line 1326, in XML
return parser.close()
File "", line None
=> Error while setting up platform yamaha
I think it might be best to allow zones to be ignored.
Furthermore exceptions from calls to ET.XML should probably be catched.
The text was updated successfully, but these errors were encountered: