hchris1 / Eversolo

Eversolo Integration for Home Assistant
Apache License 2.0
17 stars 2 forks source link

Input selection #32

Closed hanvanvilsteren closed 8 months ago

hanvanvilsteren commented 8 months ago

Is your feature request related to a problem? Please describe.

I think the input selection needs to be added because it is a very important requirement to enable important automations.

Describe the solution you'd like

I'm not a programmer but I found specific HTML code to switch to different inputs. (Behind fetch, and '+DMPA6IP+' needs to be replaced with the IP address. Pasting the commands (in additional text) in the browser switches the inputs. Hope this can help you to add also the input_control to the integration!

Describe alternatives you've considered

Found the Paste URL's on this forum: https://www.audiosciencereview.com/forum/index.php?threads/eversolo-dmp-diy-web-control-panel-v1-0.50261/

Download the zip file, in Eversolo.html you can find maybe other Paste URL's.

Additional context

                                <IMG SRC="icons_white/icon_player.png" width=60 height=60><BR><BR>
                                <button type="submit" onClick="fetch('http://'+DMPA6IP+':9529/ZidooMusicControl/v2/setInputList?tag=XMOS&index=0')">PLAYER</button>
                            </TD>
                            <TD width="20%" valign=middle align=center>
                                <IMG SRC="icons_white/icon_bt.png" width=60 height=60><BR><BR>
                                <button type="submit" onClick="fetch('http://'+DMPA6IP+':9529/ZidooMusicControl/v2/setInputList?tag=BT&index=1')">BLUETOOTH</button>
                            </TD>
                            <TD width="20%" valign=middle align=center>
                                <IMG SRC="icons_white/icon_usb.png" width=60 height=60><BR><BR>
                                <button type="submit" onClick="fetch('http://'+DMPA6IP+':9529/ZidooMusicControl/v2/setInputList?tag=USB&index=2')">USB-C</button>
                            </TD>
                            <TD width="20%" valign=middle align=center>
                                <IMG SRC="icons_white/icon_toslink.png" width=60 height=60><BR><BR>
                                <button type="submit" onClick="fetch('http://'+DMPA6IP+':9529/ZidooMusicControl/v2/setInputList?tag=SPDIF&index=3')">OPTICAL</button>
                            </TD>
                            <TD width="20%" valign=middle align=center>
                                <IMG SRC="icons_white/icon_coax.png" width=60 height=60><BR><BR>
                                <button type="submit" onClick="fetch('http://'+DMPA6IP+':9529/ZidooMusicControl/v2/setInputList?tag=RCA&index=4')">COAXIAL</button>
hchris1 commented 8 months ago

@hanvanvilsteren Hi there! Seems like you already found this feature in the integration in the media player entity.

Let me know in case you encounter any issues with the input selection. Also feel free to give the repo a star in case you like it :)

hanvanvilsteren commented 8 months ago

Indeed! I found the option. There is however, if you select the integration an GUI control applet (selector) for vu-meters and the output. There is no gui selector for inputs. Not a big deal for me because I use it now for automation my spdif input when home assistant sees my TV becoming online. Very helpful ty!Maybe its a handy option to add also the input selector directly in the GUI as an option.Cheers HanOp 19 jan 2024 om 16:33 heeft Christian Horn @.***> het volgende geschreven: @hanvanvilsteren Hi there! Seems like you already found this feature in the integration in the media player entity. Let me know in case you encounter any issues with the input selection. Also feel free to give the repo a star in case you like it :)

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

hchris1 commented 8 months ago

The reason I didn't do that is because it felt somewhat against the Home Assistant philosophy because the media player entity already has support for source selection. I will consider this feedback!

Glad you find the integration useful :) Chris

hanvanvilsteren commented 8 months ago

No problem, maybe you should mention this in the readme of the integration. I’m not familiar with the media player in particular. I just found your integration because I was searching “eversolo home assistant” to create an automation automatically select the right input when tv becomes online. When it is turned off it selects the default input. That is for me quite an achievement lol.Have a good weekend.Cheers HanOp 19 jan 2024 om 16:59 heeft Christian Horn @.***> het volgende geschreven: The reason I didn't do that is because it felt somewhat against the Home Assistant philosophy because the media player entity already has support for source selection. I will consider this feedback! Glad you find the integration useful :) Chris

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>