I’m working on support for foobar2000 (www.foobar2000.org) as media player component and would really appreciate your feedback, this is only the second time i code in python, there was quite a learning curve to get to this point.
I have a working version which i have been playing with for sometime, https://gitlab.com/ed0zer-projects/home-assistant/home-assistant-foobar2k
According to guidelines, i understood it is recommended to create an external module and import it into home assistant component, thus i created a basic class https://gitlab.com/ed0zer-projects/pyfoobar2k to control foobar2000 via http.
It uses foo_httpcontrol component for foobar2000 by oblikoamorale, and requires changes on foobar2000’s end.
There seem to be an issue with source selection, whenever the menu button of the media player card in UI is clicked, a select_source request was sent to switch the source (to the first one) before a source was actually selected, i haven’t figured this out yet, it was annoying so the first source is temporarily ignored for now.
Also tested this with foobarCon remote app for foobar2000, since foo_httpcontrol is already installed, only the template should be imported.
Only host is required,
media_player: - platform: foobar host: 192.168.1.100
or with additional parameters
media_player: - platform: foobar name: entity name host: 192.168.1.100 port: 8888 username: username password: password