Closed SparkyDan555 closed 1 month ago
I’m on holiday at the moment so won’t look at this for at least a week. Also I don’t have a sky box anymore and never had an LG TV, so this may be a challenge.
I’ll try to dig out what call is being made, but pretty sure it is just calling volume up directly against the LG entity, so no idea why it is complaining about service template.
Can you post here a working call using the service tab in Developer tools, then I may be able to envision what is going on.
Can confirm, this is now fixed. Thanks!
Describe the bug
The "Media player entity to control volume of" is set to an LG WebOS TV. The volume can be controlled directly from the TV media player but not via the Sky Q media player. The following error is produced:
To reproduce
Set the "Media player entity to control volume of" to an LG TV (not sure if other media players are affected) and try to control volume from Sky Q media player entity.
Expected bahavior
Sky Q controls the volume of the LG TV
What version of SkyQ has the issue?
v2.11.9
What was the last working version of Sky Q Integration?
No response
What version of Home Assistant Core has the issue?
core-2024.8.3
Configuration type
UI
Configuration UI
Configuration YAML
No response
Anything in the logs that might be useful for us?
2024-08-27 19:27:17.626 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [139863882066976] Unexpected exception Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 241, in handle_call_service response = await hass.services.async_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2763, in async_call response_data = await coro ^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/core.py", line 2806, in _execute_service return await target(service_call) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 999, in entity_service_call single_response = await _handle_entity_call( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1071, in _handle_entity_call result = await task ^^^^^^^^^^ File "/config/custom_components/skyq/media_player.py", line 496, in async_volume_up await self._volume_entity.async_volume_up(self.hass) File "/config/custom_components/skyq/classes/volumeentity.py", line 105, in async_volume_up await self._async_call_service(hass, SERVICE_VOLUME_UP, data) File "/config/custom_components/skyq/classes/volumeentity.py", line 118, in _async_call_service await async_call_from_config( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 333, in async_call_from_config params = async_prepare_call_from_config( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 364, in async_prepare_call_from_config domain_service = config[CONF_SERVICE_TEMPLATE]