Universal media player volume is broken

Ok, is there a way to use the sources options (HDMI, HDMI1 etc…) in a script so tu run automatically in an automation?

I get the following error:

" File “/home/homeassistant/.homeassistant/custom_components/media_player/samsungtv.py”, line 76, in setup_platform
add_devices([SamsungTVDevice(host, port, name, timeout, mac)])
File “/home/homeassistant/.homeassistant/custom_components/media_player/samsungtv.py”, line 87, in init
from wakeonlan import wol
ImportError: cannot import name ‘wol’"

How to solve?

I have started controlling onlyo rec with samsunt tvs remote, but cat get it to work with HA
How to set Samsung tv to control volume with volume slider.
Please guide.

Yes you can :

media_laptop:
  sequence:
  - service: media_player.select_source
    data_template:
      entity_id: media_player.tv
      source: 'HDMI 1'

You should ask the creator of the custom component for that. Sounds like the dependencies are wrong.

1 Like

Unfortunately, I will be unable to guide you all the way through. The solution depends heavily on your setup and models and will require hours of tests and failures.

That’s a good oportunity to learn ! Try exploring some of the ways I explained here, learn Python and UPnP/SOAP, it is some very useful skills to have. Remember it’s not about the destination, it’s about the journey. :wink:

I hope you’ll make it through !

hi! i would like to know if you were able to implement the slider volume using this set-up. if so, can you redirect me to the link that you’ve follow to execute this?

I am using a broadlink and a dumb tv. i have already get the codes and these were running but unable to fine tune the front end. TIA!

You can’t get a slider if the TV doesn’t report a volume level (to broadlink).

i see. thank you!

I only see there a list of ir codes (and no explanation), i have my codes for controlling a ‘dunb’ Samsung TV but i can only control it via switches. Tried Universal Media Player but it needs at least one real Media Player.
How exactly did you create a Media Player from scratch?

1 Like

Indeed you need an existing one. Your best bet would be to either recode the universal media player to not require a underlying media_player or to create a “dummy” one like a samsung TV with 0.0.0.0 IP address or something along those lines.