I decided to radically modify a few things here&there in the code for myself, but didn’t want to mess with the original repo and pull requests one by one, so I’ve created my own fork:
Requires Home Assistant 0.110 or above.
A few new features:
- Configurable input sources list, to match choices in HA with the pyhsical inputs available on each device
- Configurable Icecast / Shoutcast webradio streams as additional input sources
- Retrieval of current playing content metadata from Icecast / Shoutcast webradio streams and filenames on directly attached USB sticks, Tidal, Dezzer
- Retrieval of coverart from last.fm service based on current playing content metadata from icecast or filenames
- Multirooom in both WiFi-Direct and Router mode, using Sonos-like ‘join’ and ‘unjoin’ service calls.
- Recall of music presets stored on the device
- Snapshot and restore state of the player for smooth usage with TTS or alerts
- Browsing and playing media files from the directly attached USB sticks through Lovelace UI
- Linkplay-chipset specific commands through HA service calls
media_player:
- platform: linkplay
host: 192.168.1.11
name: Sound Room1
icecast_metadata: 'StationNameSongTitle'
multiroom_wifidirect: False
sources:
{
'optical': 'TV sound',
'line-in': 'Radio tuner',
'bluetooth': 'Bluetooth',
'udisk': 'USB stick'
'http://94.199.183.186:8000/jazzy-soul.mp3': 'Jazzy Soul',
}
- platform: linkplay
host: 192.168.1.12
name: Sound Room2
icecast_metadata: 'Off' # valid values: 'Off', 'StationName', 'StationNameSongTitle'
sources: {}
Note that this is heavily work in progress. Also this is not backwards-compatible with the previous linkplay integration. Read the documentation carefully.