Hi guys. I am in doubt here. I’m in process of making Kodi Remote with code from @slipx06 post above. The code is working in HA lovelace, but it wont work from Tasker via HA plugin. Long story short, let’s focus on one button, for better overview - below is code for only one button from @slipx06 post:
- hold_action:
action: call-service
repeat: 100
service: kodi.call_method
service_data:
action: pageup
entity_id: media_player.kodi
method: Input.ExecuteAction
icon: 'mdi:chevron-double-up'
tap_action:
action: call-service
service: kodi.call_method
service_data:
action: pageup
entity_id: media_player.kodi
method: Input.ExecuteAction
template: remote_button_round
and this is working perfect.
I created task in Tasker with only one action:
Plugin > Home Assistant > Call Service
Service: kodi.call_method
JSON data: { "entity_id": "media_player.kodi", "method": "Input.ExecuteAction", "action": "pageup" }
And this is not working. If I click on TEST SERVICE inside Tasker, I got “Success” toast notification, but nothing happens on Kodi screen. Also, in HA log, I have following (I was also try with Kodi Method “Input.Up”):
2020-03-19 11:35:37 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 11:39:42 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:28:32 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:28:47 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:29:04 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:32:21 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:35:29 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:36:41 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:38:09 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:39:28 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:44:08 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.ExecuteAction({'action': 'pageup'}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:45:15 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.Up({}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:45:18 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.Up({}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:45:41 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.Up({}) error: {'code': -32601, 'message': 'Method not found.'}
2020-03-19 12:45:44 ERROR (MainThread) [homeassistant.components.kodi.media_player] Run API method media_player.kodi. Input.Up({}) error: {'code': -32601, 'message': 'Method not found.'}
I cannot understand why it says ‘Method not found’ if I run action from Tasker via Home Assistant, cause same that method is working from lovelace in Home Assistant?
Any clue?
Thanks.