uezezs
(uezezs)
April 12, 2021, 8:53pm
1
While the kodi api perfectly skips 10 seconds using this curl
:
{ "jsonrpc": "2.0", "id": 1, "method": "Player.Seek", "params": { "value": { "seconds": 10 }, "playerid": $HomeRemote.Kodi_CurrentPlayerID.Value } }
I can’t figure out, how to add the additonal dictonary for seconds in homeassistant. This set’s the media back to it’s beginning, while using value:10
(without seconds) sets the media to it’s percentage hence 10%.
entity_id: media_player.localhost
method: Player.Seek
value:
seconds: 10
playerid: 1
I never got as far as changing the seek beyond what is programmed into Kodi as I never saw a need to, since this works identical to my remote control:
- service: kodi.call_method
data:
entity_id: media_player.kodi
method: Input.ExecuteAction
action: stepforward
entity_id: media_player.kodi
Then it uses the standard forward step intervals
1 Like
reedy
June 18, 2021, 8:05am
3
The following ended up working here:
kodi_seek_playing:
alias: "kodi seek TEST"
sequence:
- service: kodi.call_method
data:
method: Player.Seek
value:
seconds: 900
playerid: 1
entity_id: media_player.someplayer
3 Likes