Hi there!
I’m trying to configure the mute button of the Universal Media Player component, without success. Volume up and volume down are working fine. This is the error that I get:
2017-08-17 14:10:00 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/asyncio/tasks.py”, line 239, in _step
result = coro.send(None)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/core.py”, line 1025, in _event_to_service_call
yield from service_handler.func(service_call)
File “/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/homeassistant/components/media_player/init.py”, line 409, in async_service_handler
yield from getattr(player, method[‘method’])(**params)
TypeError: async_mute_volume() got an unexpected keyword argument ‘mute’
This is my configuration (running HA 0.50.2):
media_player:
platform: universal
name: Telecomando studio
children:
- media_player.studio
- media_player.studio_2
commands:
turn_on:
service: script.turn_on
data:
entity_id: script.studio_accendi
turn_off:
service: script.turn_on
data:
entity_id: script.studio_spegni
volume_up:
service: switch.turn_on
data:
entity_id: switch.studio_amplificatore_vol
volume_down:
service: switch.turn_off
data:
entity_id: switch.studio_amplificatore_vol
volume_mute:
service: switch.turn_on
data:
entity_id: switch.studio_amplificatore_vol_muto
attributes:
state: switch.studio_amplificatore
is_volume_muted: switch.studio_amplificatore_vol_muto
And this is the code for the studio_amplificatore_vol_muto switch (is the same code for on and off, I even tried without the off row with no help):
studio_amplificatore_vol_muto:
friendly_name: "studio_amplificatore_vol_muto"
command_on: 'JgBgAAABKZIUERM2ExEUERQ1FBETNxM2EzUUERQ1FDUUERM2EzcTERQ1FBEUNRQRExEUERQRExEUERQ2ExITNhM2EzYTNhM2EwAFAgABKEgTAAxOAAEnSRMADE0AAShIFAANBQAAAAAAAAAA'
command_off: 'JgBgAAABKZIUERM2ExEUERQ1FBETNxM2EzUUERQ1FDUUERM2EzcTERQ1FBEUNRQRExEUERQRExEUERQ2ExITNhM2EzYTNhM2EwAFAgABKEgTAAxOAAEnSRMADE0AAShIFAANBQAAAAAAAAAA'
Any thoughts?