Giter VIP home page Giter VIP logo

bang-olufsen / bang_olufsen-hacs Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 3.0 223 KB

Home Assistant integration for Bang & Olufsen products. Compatible devices: Beoconnect Core, Beolab 8, Beolab 28, Beosound 2 3rd gen, Beosound A5, Beosound A9 5th gen, Beosound Balance, Beosound Emerge, Beosound Level and Beosound Theatre

License: MIT License

Python 100.00%
bang-olufsen hacs homeassistant integration mozart

bang_olufsen-hacs's People

Contributors

cklit avatar mj23000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bang_olufsen-hacs's Issues

Forever initializing after 1.8

Hi

After upgrade to 1.8 my theatre keeps initializing forever. Attached screenshot and log file with debug enabled. The log file does not give me any clue to what is causing the problem. I've tried to delete the theatre device and added it again. Can someone point me to a direction where I can see the rootcause to the init problem.

Kind regards
Frank

Attached files:
init
home-assistant_2024-01-26T17-16-21.144Z.log

The hiccup:

2024-01-26 18:05:00.471 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Beosound Theatre-35857485 for bangolufsen
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 406, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/bangolufsen/init.py", line 93, in async_setup_entry
if not await client.check_websocket_connection():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/mozart_api/mozart_client.py", line 200, in check_websocket_connection
async with session.ws_connect(f"ws://{self.host}:9339/") as websocket:
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 1187, in aenter
self._resp = await self._coro
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 825, in _ws_connect
resp = await self.request(
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/client.py", line 601, in _request
await resp.start(conn)
File "/usr/local/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 960, in start
with self._timer:
File "/usr/local/lib/python3.11/site-packages/aiohttp/helpers.py", line 735, in exit
raise asyncio.TimeoutError from None
TimeoutError
2024-01-26 18:05:00.521 ERROR (MainThread) [homeassistant] Error doing job: Unclosed client session

Light/Control/FuncXX_KeyPress

Hi B&o

It would be nice if this integration could handle the Light and Control/FuncXX_KeyPress, from the Beoremote One.

So it's possible to name the different functions on the remote.

Thank you for this integration in general - it works flawlessly :)

Volume entity not working anymore

Hi,

Noticed that the sensor.beosound_volume entity does not work correctly anymore with my Beosound Theatre. Not sure whether this is related to the new firmware (3.4.1.8) on the Beosound, Home Assistant 2024.3.3 or the Bang & Olufsen integration.

You can still set the volume using the slider but the sensor.beosound_volume entity does not change.

I have scripts to change the volume up/down that does also not work anymore because they depend on the current volume level to work.

Kind regards

/Jan Lebeck

Feature request: Create App for Homey

Hey,

this is not really an issue, but I have no idea where I can post this request. If you have a better place, please do tell!

I love what you can do with this integration in Home Assistant. However I'm not very happy with Home Assistant. I think it is very illogical and is not very user friendly at all. The list is long, what I dislike about Home Assistant. However Home Assistant has a huge community and therefore a lot of integrations.
Another nice product on the market is Homey which can also be extended with so called Apps. More info on the Dev Site.

Is anything planned about creating such an App to integrate the B&O Mozart platform with Homey?

Lenny

Integration fails to set up in 1.5.3

The integration fails to start after updating from 1.3.x to latest. Does this log tell you anything? I use this every day so hopefully we can sort it out :)

2023-10-05 12:27:54.000 WARNING (SyncWorker_3) [homeassistant.loader] We found a custom integration bangolufsen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant
2023-10-05 12:30:20.059 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration bangolufsen: Unable to import component: cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)
  File "/config/custom_components/bangolufsen/__init__.py", line 26, in <module>
  File "/config/custom_components/bangolufsen/binary_sensor.py", line 16, in <module>
    from .entity import BangOlufsenEntity
  File "/config/custom_components/bangolufsen/entity.py", line 7, in <module>
2023-10-05 12:31:54.843 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration bangolufsen: cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)
2023-10-05 12:31:54.847 ERROR (MainThread) [homeassistant.config_entries] Error occurred loading flow for integration bangolufsen: cannot import name 'DeviceInfo' from 'homeassistant.helpers.device_registry' (/usr/src/homeassistant/homeassistant/helpers/device_registry.py)
  File "/config/custom_components/bangolufsen/__init__.py", line 26, in <module>
  File "/config/custom_components/bangolufsen/binary_sensor.py", line 16, in <module>
    from .entity import BangOlufsenEntity
  File "/config/custom_components/bangolufsen/entity.py", line 7, in <module>
2023-10-05 13:21:17.691 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration bangolufsen which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

Then when I try to set it up again from scratch:

Config flow could not be loaded: {"message":"Invalid handler specified"}

Beosound shape support?

This integration supports most B&O modern speakers, but I cannot find Beosund shape. Is it possible to extend the integration to also include that?

Events stop firing

I've noticed with increased frequency that sometimes when I pick up the remote and try to control something, the automation does not trigger. This is because the bangolufsen_event is no longer firing, as verified by adding a listener to it in the HA developer tools. Reloading the integration always fixes it, but is cumbersome.

Interestingly, everything else about the integration seems to work as normal when this happens. I can still control my product within HA—it's just the events from the remote that stop working.

Have you seen this behavior and do you have any idea what causes it and how it can be fixed?

Thank you

An error occurred while initializing the device. Try waiting or restarting the device.

Hi
I have tried multiple ways to connect my A9, but I keep running into this error:
An error occurred while initializing the device. Try waiting or restarting the device.

in the log I get some errors like:

ERROR (MainThread) [frontend.js.latest.202308020] :0:0 Script error.

WARNING (Thread-10 (worker)) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f6d6e2490>: Failed to establish a new connection: [Errno 111] Connection refused')': /api/v1/beolink/self

Shall I open anything in the Beoplay app?
Can I add the speaker though a config file?

Thanks

BeoRemote device triggers not available

When listening to bangolufsen_event in Developer tools, I see the following event getting fired:

event_type: bangolufsen_event
data:
type: Light/Func1_KeyPress
device_id: 61a69ed15c5ea2b7055737f8d4f70cab
origin: LOCAL
time_fired: "2023-05-31T14:08:04.267689+00:00"
context:
id: 01H1S267NB3S58B1Y6P2F05ZH9
parent_id: null
user_id: null

However, I do not get device triggers available in HA - the device_id does not show up. Seems like the BeoRemote does not become available as intended.

Device: Theatre
BeoRemote with Netflix/Amazon button.

Music Assistant support

I've been trying to get my Theatre playing though Music Assistant, but it doesn't work. It seems like it won't play the stream and instead just continues playing whatever was playing previously as set by another app. I.e. play/pause works, but setting the content stream does not.

I've followed the troubleshooting advice of Music Assistant but alas it didn't help.

Theoretically it should work, according to the developers. Just wondering if anyone's tried this successfully combination successfully and what you had to do to get streams working.

Thanks a lot for this integration. I use it all the time, every day. It's been a game changer.

Question/Request

Today I'm using the BEO extension package from HACS in order to support natively my BEO Soundstage, it is actually working pretty well. I know there is also options such as the ADLN discovered component but I'd like better to have native product..

My question is about the Soundstage Support, if you are planning to ADD it within the HAssio Based Integration such as this current version v2.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.