I’ve updated the files on dropbox with a new version. This has mute functionality as well as it gets all the available sources and then you can select a source.
When you’re updating the files don’t forget to update the requirements line in the beoplay.py
Got it up and running, and it’s looking good - only thing is, that if the speaker is not playing when I boot up hassio, it will not fetch playing state and metadata… If I make sure the speaker is playing and I reboot, it works
You’re right Haven’t caught that one. Fixed it. Here is a new link:
That’s what happens when you’re not a coder
Btw, it only gets the sources when you launch home assistant to avoid polling the speakers all the time. So if you add a new source, you should restart home assistant to get that new one in the list.
Hi marton, CMDK
First of all thanks for taking up the challenge to implement B&O products in HA. I have a A9 and two M5 speakers.
Been reading along for a couple of days and progress seems to be promising, well done so far!
I am a bit of a noob and just set up HA a week ago, so all new days for me, however I really want to see how far you’ve got and try things out. Unfortunately I’m notified of an error regarding the process even though I tried following marton’s guide to pandaym 10d ago.
Is there anything else besides uploading the zip file to the ‘custom_packages’ folder and copying the Beoplay.py file to custom_components/media_player and changing the path?
configuration.yaml is set up as instructed as well?
(Error code in getting is: component and platform: media_player.beoplay can’t be set up, please check config)
@marton After using the component after a while, things starts happening in my log. My Volumio player stops connecting, and yesterday evening I even lost connection to my Philips Hue-hub at some point.
When I remove the beoplay: from my config, everything settles again. I’m wondering if it’s doing something to the async… What do you need from me in order to know more?
Unexpected error in Shape
Traceback (most recent call last):
File "/config/custom_components/media_player/beoplay.py", line 122, in _start_poll_command
await self.async_update_status()
File "/config/custom_components/media_player/beoplay.py", line 170, in async_update_status
self._speaker.getMusicInfo(data_json)
File "/config/deps/lib/python3.6/site-packages/beoplay/__init__.py", line 116, in getMusicInfo
self.media_track = data["notification"]["data"]["liveDescription"]
KeyError: 'liveDescription'
After this, it does not update state in HASS. Source changes can still be done from HASS.