Hello, I am trying to configure an automation where I want the action to be a Kodi command “Channel UP” while I watch the Live TV (PVR). I thought this would be correct, but it doesn’t do anything:
I am sure that the MQTT part is correct because I have other automations that work (for example the “OK” button calls the method Input.Select on media_player.kodi )
Do you know how to do this? Or how to debug where and what is wrong?
Thank you a lot in advance!
Dario
To test your action you can fire the automation manually. Either by using the trigger automation servcie in the developer tools services page or using the toggle button in the more info pop-up box if your automation is displayed as an entity on the front end.
Looking at the API, I could not find a Channel up mehod. Is it not just the navigate up button?
Unfortunately not… I have already mapped the Input.Up with another button and it works…
Here is the Kodi documentation that I found about this action: https://kodi.wiki/view/Keymap#Commands
ChannelUpPVR Used to switch up to the next channel. Works only if you playback TV or radio (v13 Gotham addition)
I called it action, but I should have called it Keymap names… Anyway I found in the Kodi Forum that the keyboard key “0” performs a “previous channel”, and they also posted the JSON code
Unfortunately it does not exactly what I was looking for, because it toggles between the last two used channels… I wonder if there is somewhere a list of kodi actions somewhere…
Run API method media_player.kodi.Input.ExecuteAction({'action': 'PageUp'}) error: {'code': -32602, 'data': {'method': 'Input.ExecuteAction', 'stack': {'message': 'Received value does not match any of the defined enum values', 'name': 'action', 'type': 'string'}}, 'message': 'Invalid params.'}
I understood your strategy and I will use it as plan B if I really can’t manage to get it done with PageUp.
On the other hand, in the Kodi Forum they say that this should work:
I tried the action “pageup” and for the first time I don’t get any error code (once again without the playerid: 1). On the other hand it doesn’t make anything on my Kodi… Is it possible that the key is not coded on my Kodi?