onlyoneme / home-assistant-custom-components-wiim

WiiM devices integration for Home Assistant.
68 stars 9 forks source link

Home Assistant 2024.7.2 unavailable; Failed communicating with WiiM (UPnP #23

Open victoroos opened 4 months ago

victoroos commented 4 months ago

hi all,

So I updated HA, but now I get a Failed communicating with WiiM (UPnP error from HA with the devices being unavailable. Any tips and knows why?

cheers Vic ps: beta is installed

jaid33 commented 4 months ago

This issue? https://github.com/onlyoneme/home-assistant-custom-components-wiim/issues/22 The solution from GitIt-GotIt worked for me.

hnuttin commented 4 months ago

I have the same issue, also on the beta branch with the including fix provided in https://github.com/onlyoneme/home-assistant-custom-components-wiim/issues/22

I get these log statements every few minutes: 2024-07-19 14:08:19.919 WARNING (MainThread) [custom_components.wiim_custom.media_player] Failed communicating with WiiM (UPnP) 'KEF' at 192.168.0.231

And this results in a constant available/unavailable state in HA like seen here:

Screenshot 2024-07-19 at 14 33 01
andreaalloway commented 4 months ago

It appears that the linkplay repo from nagyrobi https://github.com/nagyrobi/home-assistant-custom-components-linkplay appears to have solved this issue and that it now supports WiiM devices. I was able to convert to that integration instead of this one.

For my config files I've updated my WiiM entries to look like:

- platform: linkplay
  host: 192.168.#.#
  protocol: https
  name: WiiM Example
  sources:
    {
      'optical': 'Optical',
      'line-in': 'Analog',
      'bluetooth': 'Bluetooth',
    }
  uuid: 'FF98<REDACTED>'
victoroos commented 4 months ago

It appears that the linkplay repo from nagyrobi https://github.com/nagyrobi/home-assistant-custom-components-linkplay appears to have solved this issue and that it now supports WiiM devices. I was able to convert to that integration instead of this one.

For my config files I've updated my WiiM entries to look like:

- platform: linkplay
  host: 192.168.#.#
  protocol: https
  name: WiiM Example
  sources:
    {
      'optical': 'Optical',
      'line-in': 'Analog',
      'bluetooth': 'Bluetooth',
    }
  uuid: 'FF98<REDACTED>'

Aah yes that worked. Changed the config a bit (without the UUID) and voila. Thank you!

hildebrau commented 3 months ago

Ok, so my WiimPro should be detected by the latest HA, right? And what do I do if it isn't? I made sure this hacs component or the original link player one is not installed or configured.

If I manually try to configure the built in linkplayer in core it asks for my IP address. I enter in the IP from my WiiM app under network and it just rejects it and asks for the IP again. Not much help on that!

Did anyone else get it working? Just want to make sure I'm barking up the right tree here.

Thanks

victoroos commented 3 months ago

Ok, so my WiimPro should be detected by the latest HA, right? And what do I do if it isn't? I made sure this hacs component or the original link player one is not installed or configured.

If I manually try to configure the built in linkplayer in core it asks for my IP address. I enter in the IP from my WiiM app under network and it just rejects it and asks for the IP again. Not much help on that!

Did anyone else get it working? Just want to make sure I'm barking up the right tree here.

Thanks

Unfortunately same here. Not detected and IP isn't working

hildebrau commented 3 months ago

And, unfortunately, nothing is logged in the HA log file after adding the IP fails.

Unfortunately same here. Not detected and IP isn't working

hildebrau commented 3 months ago

Looks like my current issue is being tracked at https://github.com/Velleman/python-linkplay/issues/34 and some other issue #'s that one references. I guess we wait it out.

Or more directly, this seems to be the eventual fix: https://github.com/home-assistant/core/pull/124307

nwithan8 commented 2 months ago

PR to fix this in Core was just merged, looks like it will come as part of the 2024.9.0 release on Sept. 4: https://github.com/home-assistant/core/pull/124307

EDIT: Can confirm, was able to add my WiiM Pro via IP address in the "LinkPlay" integration in Home Assistant 2024.9.0

victoroos commented 2 months ago

PR to fix this in Core was just merged, looks like it will come as part of the 2024.9.0 release on Sept. 4: home-assistant/core#124307

EDIT: Can confirm, was able to add my WiiM Pro via IP address in the "LinkPlay" integration in Home Assistant 2024.9.0

well yes but it still isn't recognized at all, as in,a s a player

hildebrau commented 2 months ago

well yes but it still isn't recognized at all, as in,a s a player

I'm curious what you were expecting.

My WiiM Pro shows up as a Chromecast destination and DLNA device on HA now.

I sure wish I could automate it to play a YTM playlist, though. Any ideas on how to do that?

nwithan8 commented 2 months ago

PR to fix this in Core was just merged, looks like it will come as part of the 2024.9.0 release on Sept. 4: home-assistant/core#124307 EDIT: Can confirm, was able to add my WiiM Pro via IP address in the "LinkPlay" integration in Home Assistant 2024.9.0

well yes but it still isn't recognized at all, as in,a s a player

I'm also facing the same thing. WiiM was able to be added via LinkPlay, but it didn't make any entities or devices. Seems like it's a known issue: https://github.com/home-assistant/core/issues/125283

victoroos commented 2 months ago

well yes but it still isn't recognized at all, as in,a s a player

I'm curious what you were expecting.

My WiiM Pro shows up as a Chromecast destination and DLNA device on HA now.

I sure wish I could automate it to play a YTM playlist, though. Any ideas on how to do that?

I expect it to be seen as a media player. :)