Universal media player volume is broken

I use a broadlink RM Mini for IR control and this custom component to transform it into a media_player.
If your TV is a smart TV this custom component might do the trick too.

If you are interested here is the SOAP command I use for volume (LG HTS device) :

- platform: command_line
  name: hts_volume
  command: "curl -s -H 'Content-Type:text/xml;charset=\"utf-8\"' -H 'SOAPAction:\"urn:schemas-upnp-org:service:RenderingControl:1#GetVolume\"' -X POST http://192.168.1.200:2870/control/RenderingControl --data '<?xml version=\"1.0\" encoding=\"utf-8\"?><s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\" s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\"><s:Body><u:GetVolume xmlns:u=\"urn:schemas-upnp-org:service:RenderingControl:1\"><InstanceID>0</InstanceID><Channel>Master</Channel></u:GetVolume></s:Body></s:Envelope>' | grep -oPm1 \"(?<=<CurrentVolume>)[^<]+\" | tail -n1"
  scan_interval: 10
  value_template: '{{ value | multiply(0.01) | round(2) }}'
1 Like