Is this a public PR I can watch or a private one? If public, please can you post the link?
Velleman:main
← daniel-simpson:feature/play-preset
opened 09:11PM - 15 Aug 24 UTC
Adds a function to play a preset via the HTTP API.
As per discussion in #31, … I was unable to find a similar API endpoint to play the "Next" preset (similar to `MCU+KEY+NXT`), so that functionality would require the TCPUART API alongside the HTTP one.
Note that even once added to the python library, there’ll need to be development work in home assistant core to hook it up.
1 Like
Hi, looking forward to it, that gives us finally a way to actually play something in core!
Btw, van you help me with below, with the hacs one, I used the play media services to play radio stations to it, bur can’t figure out how todo it with the core?
Can you help me? Details below…
opened 01:12PM - 08 Aug 24 UTC
integration: linkplay
### The problem
Hey, before i was using the custom linkplay integration, now te… sted the new linkplay core, my device A50 is well discoreved
But before i used service to play presets, like below example, how does that work now? cant find any documentation on it?
```
action: call-service
service: linkplay.preset
service_data:
entity_id: media_player.luidspreker_buiten
preset: 1
```
Also i had some service like below:
```
action: call-service
service: media_player.play_media
service_data:
entity_id: media_player.luidspreker_buiten
media_content_id: 'http://opml.radiotime.com/Tune.ashx?id=s10861'
media_content_type: url
```
but gives me now error like below?
```
2024-08-08 15:11:47.384 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [140708776533376] Unexpected exception
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 168, in async_resolve_media
item = _get_media_item(hass, media_content_id, target_media_player)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 111, in _get_media_item
item = MediaSourceItem.from_uri(hass, media_content_id, target_media_player)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_source/models.py", line 97, in from_uri
raise ValueError("Invalid media source URI")
ValueError: Invalid media source URI
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2763, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2806, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/linkplay/media_player.py", line 115, in _wrap
return await func(self, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/linkplay/media_player.py", line 225, in async_play_media
media = await media_source.async_resolve_media(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/media_source/__init__.py", line 170, in async_resolve_media
raise Unresolvable(str(err)) from err
homeassistant.components.media_source.error.Unresolvable: Invalid media source URI
```
### What version of Home Assistant Core has the issue?
core-2024.8.0
### What was the last working version of Home Assistant Core?
_No response_
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
Linkplay
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/linkplay/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
domain_int
(domain int)
August 31, 2024, 1:03pm
547
Hey guys,
I just deleted my entire config with the intent that the new integration was fully formed for my WiiM Pro, but it comes back with cannot find host.
Is this something known???
@domain_int I think you need Home Assistant core 2024.9.0 for WiiM Pro devices.
On my system Home Assistant discovers the WiiM Pro devices (hubs), not sure what to do next.
Yeah I get the same, no devices or entities
corgana
September 9, 2024, 6:21pm
551
Now that this is fixed with the latest update, is it possible to customize the input audio sources? I cannot select “Wi-fi” for example, and previously I was able to have internet streams as custom audio sources.
coops
(Coops)
September 16, 2024, 1:05pm
552
Hi, I’m just setting up a Linkplay integration for my Arylic Up2Stream devices, and have gone with with HACS custom integration for the same reasons as others, i.e. I want to use presets and link multiple devices.
I’ve hit a problem with the play/pause and play/stop buttons when setting up a mini-media-player card, that the linkplay media player doesn’t accept re-starting a radio stream with media_play, or media_play_pause service. Is there a way round this to make the play/pause or play/stop button work as expected?
Also, does the icecast_metadata: ‘StationNameSongTitle’ work with many internet radio stations? I’m just getting the station name.