Can't pause kodi when playing from pvr

hi everyone,

i’ve recently added the kodi integration to HA, but when i play something via the pvr i can’t pause it through HA only via kodi itself. when i play media that is locally stored i have no problem with pausing and restarting.
when trying to pause when its playing via the pvr i get the following error

Logger: homeassistant.components.websocket_api.http.connection
Source: components/kodi/media_player.py:652
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:36:03 (5 occurrences)
Last logged: 14:40:06

[139848017763920] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 5173809450002464958, 'jsonrpc': '2.0'})
[139848017763920] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 7225293518781462393, 'jsonrpc': '2.0'})
[139848017763920] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 1186702314573715244, 'jsonrpc': '2.0'})
[139848017763920] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 1618028311307542734, 'jsonrpc': '2.0'})
[139848017763920] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 3073990918560516334, 'jsonrpc': '2.0'})
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
    await hass.services.async_call(
  File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1480, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
    await self.hass.helpers.service.entity_service_call(
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 593, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 630, in _handle_entity_call
    await result
  File "/usr/src/homeassistant/homeassistant/components/kodi/media_player.py", line 253, in wrapper
    await func(obj, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/components/kodi/media_player.py", line 652, in async_media_play_pause
    await self._kodi.play_pause()
  File "/usr/local/lib/python3.8/site-packages/pykodi/kodi.py", line 207, in play_pause
    await self._set_play_state("toggle")
  File "/usr/local/lib/python3.8/site-packages/pykodi/kodi.py", line 203, in _set_play_state
    await self._server.Player.PlayPause(players[0]["playerid"], state)
  File "/usr/local/lib/python3.8/site-packages/jsonrpc_websocket/jsonrpc.py", line 53, in send_message
    return message.parse_response(response)
  File "/usr/local/lib/python3.8/site-packages/jsonrpc_base/jsonrpc.py", line 216, in parse_response
    raise ProtocolError(code, message, data)
jsonrpc_base.jsonrpc.ProtocolError: (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 5173809450002464958, 'jsonrpc': '2.0'})

i have kodi installed on ubuntu and use the next pvr adddon from kodi

did someone have this problem before and/or knows what causes this and how it can be solved.

Having the same problem!

Same error with latest version of Kodi and PVR IPTV Simple Client:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/kodi/media_player.py:652 
Integration: Home Assistant WebSocket API ([documentation](https://www.home-assistant.io/integrations/websocket_api), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+websocket_api%22)) 
First occurred: 20:14:20 (2 occurrences) 
Last logged: 20:14:24

* [1676660968] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 440955244, 'jsonrpc': '2.0'})
* [1676660968] (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 575393474, 'jsonrpc': '2.0'})

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 141, in handle_call_service await hass.services.async_call( File "/usr/src/homeassistant/homeassistant/core.py", line 1488, in async_call task.result() File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service await handler.job.target(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service await self.hass.helpers.service.entity_service_call( File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 642, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 681, in async_request_call await coro File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 679, in _handle_entity_call await result File "/usr/src/homeassistant/homeassistant/components/kodi/media_player.py", line 253, in wrapper await func(obj, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/components/kodi/media_player.py", line 652, in async_media_play_pause await self._kodi.play_pause() File "/usr/local/lib/python3.8/site-packages/pykodi/kodi.py", line 207, in play_pause await self._set_play_state("toggle") File "/usr/local/lib/python3.8/site-packages/pykodi/kodi.py", line 203, in _set_play_state await self._server.Player.PlayPause(players[0]["playerid"], state) File "/usr/local/lib/python3.8/site-packages/jsonrpc_websocket/jsonrpc.py", line 53, in send_message return message.parse_response(response) File "/usr/local/lib/python3.8/site-packages/jsonrpc_base/jsonrpc.py", line 216, in parse_response raise ProtocolError(code, message, data) jsonrpc_base.jsonrpc.ProtocolError: (-32100, 'Failed to execute method.', {'error': {'code': -32100, 'message': 'Failed to execute method.'}, 'id': 440955244, 'jsonrpc': '2.0'})