Hallo,
ich versuche einen GET Request auf die Kodi API zu machen, aber erhalte immer einen error.
Code
val output = sendHttpGetRequest("http://kodi:1234@192.168.0.164:8023/jsonrpc", "application/json", "{\"jsonrpc\":\"2.0\",\"method\":\"Player.GetItem\",\"params\":{\"properties\":\"[\"title\"]\",\"playerid\":\"1\"},\"id\":\"VideoGetItem\"}")
und der error
[errorbox]Script execution of rule with UID 'meinscript-1' failed: An error occurred during the script execution: Could not invoke method: org.openhab.core.model.script.actions.HTTP.sendHttpGetRequest(java.lang.String,java.util.Map,int) on instance: null in meinscript[/errorbox]
hat da vielleicht jemand einen hinweis?