osk2 / yamaha-soundbar Goto Github PK
View Code? Open in Web Editor NEWYamaha soundbar integration for Home Assistant.
Yamaha soundbar integration for Home Assistant.
Hello,
The "Home assistant Yamaha soundbar" stopped working.
My device is: Yas209.
The entity status show now:
"This entity is no longer being provided by the yamaha_soundbar integration. If the entity is no longer in use, delete it in settings."
The log is:
Logger: homeassistant.components.media_player
Source: helpers/entity_platform.py:364
integration: Media player (documentation, issues)
First occurred: July 7, 2024 at 10:53:57 AM (1 occurrences)
Last logged: July 7, 2024 at 10:53:57 AM
Error while setting up yamaha_soundbar platform for media_player
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in _async_setup_platform
await asyncio.shield(awaitable)
File "/config/custom_components/yamaha_soundbar/media_player.py", line 275, in async_setup_platform
yamaha = YamahaDevice(name,
^^^^^^^^^^^^^^^^^^
File "/config/custom_components/yamaha_soundbar/media_player.py", line 313, in init
self._factory = UpnpFactory(requester, disable_unknown_out_argument_error=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: UpnpFactory.init() got an unexpected keyword argument 'disable_unknown_out_argument_error'
My HA details are:
Core: 2024.7.1
Supervisor: 2024.06.2
Operating System: 12.4
Frontend: 20240705.0
And by the way - this integration is not available anymore via the HACS (I couldn't find it there anymore).
The Ip of the Soundbar Yamaha SRX40A is 192.168.69.68 a ping is workin, the Yamaha App is working, but not the HA integration. Are there any Ideas? When I click on settings of the Soundbar on the Dash Board, I get, that I can not control it, because it has no Unique_ID
Logger: custom_components.yamaha_soundbar.media_player
Quelle: custom_components/yamaha_soundbar/media_player.py:452
Integration: Yamaha Soundbar (Dokumentation, Probleme)
Erstmals aufgetreten: 17:26:49 (14 Vorkommnisse)
Zuletzt protokolliert: 17:29:39
For: YamahaSRX40A (192.168.69.68) async get failed, response code: 404 Full message: <ClientResponse(https://192.168.69.68/httpapi.asp?command=setPlayerCmd:play:https://stream.rockantenne.de/alternative/stream/mp3) [404 Not Found]> <CIMultiDictProxy('Date': 'Wed, 13 Mar 2024 16:29:08 GMT', 'Server': 'Boa/0.94.13', 'Connection': 'close', 'Content-Type': 'text/html; charset=ISO-8859-1')>
hi @osk2
thx for your work on supporting yamaha-soundbar device.
I have the following warnings in HA logs that cause the connection reset to my yas-109:
WARNING (MainThread) [custom_components.linkplay.media_player] Failed async communicating with LinkPlayDevice (httpapi) 'YAS_109': <class 'TimeoutError'>
...
it occurs multiple times and I need to manually power the device up (e.g. to use Alexa commands). Any hint about the root cause of the problem?
The firmware running on the soundbar is 5.31.
Regards,
Lorenzo
I am using this integration to controller an ATS-2090. It works pretty well, but there is no ability to just turn it on or off. I have to hit play every time and select a source. Is there a way to add this functionality?
Hi, the addon doesn't work.
HA 2024.5.0
log
Registratore: homeassistant.setup
Fonte: setup.py:404
Prima occorrenza: 00:18:09 (1 occorrenze)
Ultima registrazione: 00:18:09
Error during setup of component yamaha_soundbar
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 404, in _async_setup_component
result = await task
^^^^^^^^^^
File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/yamaha_soundbar/init.py", line 175, in setup
hass.services.async_register(
File "/usr/src/homeassistant/homeassistant/core.py", line 2522, in async_register
self._hass.verify_event_loop_thread("async_register")
File "/usr/src/homeassistant/homeassistant/core.py", line 440, in verify_event_loop_thread
frame.report(
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 162, in report
_report_integration(what, integration_frame, level, error_if_integration)
File "/usr/src/homeassistant/homeassistant/helpers/frame.py", line 203, in _report_integration
raise RuntimeError(
RuntimeError: Detected that custom integration 'yamaha_soundbar' calls async_register from a thread at custom_components/yamaha_soundbar/init.py, line 175: hass.services.async_register(. Please report it to the author of the 'yamaha_soundbar' custom integration.
HA 2023.10.5. Addon stopped working. Within log getting such warning "Setup of media_player platform linkplay is taking over 10 seconds.". No sound bar access anymore.
This HACS integration generates many errors. This snippet includes 207 occurrences after a recent restart.
This error originated from a custom integration.
Logger: homeassistant.helpers.entity
Source: custom_components/linkplay/media_player.py:2678
Integration: Linkplay (documentation, issues)
First occurred: 11:55:01 (207 occurrences)
Last logged: 12:33:32
Update for media_player.duokim_garo fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 554, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 779, in async_device_update
await self.async_update()
File "/config/custom_components/linkplay/media_player.py", line 818, in async_update
await self.async_update_via_upnp()
File "/config/custom_components/linkplay/media_player.py", line 2678, in async_update_via_upnp
xml_tree = ET.fromstring(media_metadata)
File "/usr/local/lib/python3.10/xml/etree/ElementTree.py", line 1342, in XML
parser.feed(text)
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 15, column 38
Maybe you could take a look?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.