onlyoneme / home-assistant-custom-components-wiim

WiiM devices integration for Home Assistant.
60 stars 8 forks source link

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

Open victoroos opened 1 month ago

victoroos commented 1 month 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 1 month ago

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

hnuttin commented 1 month 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 1 month 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 1 month 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 1 week 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 1 week 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 1 week 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 1 week 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 days 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