Kodi Remote Control

[quote=“LightsOn, post:120, topic:184260”]Hi all,

I have now moved away from kodi remote. In theory it was great but as others have found small issues made it a pain. For me the main issues were vera restarts and also uodates somtimes timing out and status being lost in vera. For me I just needed player status and have since installed the kodi plugin callbacks2. You can send http request on all player states. For me I sent status updates in text to a single multiswitch status value. Such a Resume or Pause. I tjen kust use pleg to deal with the logic. This has worked flawlessly for my needs. Hope this helps some one else too.[/quote]

Nice idea.
Do you have this working in Isengard?

Thanks
N

Hmmm embarrassing that I dont know the exact kodi im running? Fairly certain its the latest version. I belive it works across most recent kodi releases. This soloution realy is working well for me. I tested with http sends then mived to running a script. Tje scripts I compile with autoit and the send the http request twice with a short 2 second gap and then do other things I want to happen also. Allows for a simple soloution that works every time and that can be extendable to wider uses. The plug in also allows for ctions on other events also but I have no needbfor these yet. Definatly worth a look. Ot also means you can remove tje plug in vera side this reducing the lpad on vera. Win win.

Sory on mobile so bad grammer etc. Last bit is “reducing load” not ipdad lol.

lol

Hi lights out.

What’s the http string you are using to call your multi switch?
Kodi remote is failing to report its status correctly and want to follow you in using xbmc callback2

Thanks
N

Hi LightsOn

I am just setting up a new VeraEdge to replace my VeraLite and am debating if to put KodiRemote back on or not. So is the Callbacks2 Kodi add-on simple to get up and running? It enables you to run a script upon player state. Where are the scripts stored on the local Kodi HTPC or on the File Server / NAS? And the script I presume just contains a http request to send to Vera for it to do something.

More details and some examples would be helpful !

Cheers

Hi Alpha1

I use the below - adapt as you need:

http://[ip]:49451/data_request?id=variableset&DeviceNum=[device_ID]&serviceId=urn:dcineco-com:serviceId:MSwitch1&Variable=Status[the_number_if_the_Switch_1>8]&Value=[desired_variable]

Hi cw-kid - you can either launch an http request by just, for example, adding the above string adapted for your needs. or you can run a script, python with variables, or in my case a simple au3 script compiled to .exe. the script as you state just has http requests in it as discussed above. the scripts you can store where ever - as long as Kodi can map to it then it is usable.

Hope this helps? I am really pleased I transitioned.

[quote=“cp1983, post:109, topic:184260”][quote=“seanwalter, post:103, topic:184260”]For people on UI7 getting the “Can’t detect device” error…I was also having this problem and solved it pretty simply – after following all instructions in this forum, but with no luck.

I finally decided I had nothing to lose (at 2am…) and noticed in Advanced Settings–>Variables there is a variable called “CommFailure”. I manually changed this from 1 to 0, and now my Kodi Remote is detected.

I did do a couple of other things, but I doubt they are necessary. You can try them if the simple change above doesn’t solve your problem:

  1. Follow all other instructions in the forum to install the plugin correctly and install the addon correctly in Kodi

  2. Upgrade Kodi to 15.0 Isengaard (I was on the 14.2 Helix before)

  3. In Advanced–>Params I filled in the following:

  • Added the MAC address for my Kodi box
  • Added “Team Kodi” as the manufacturer
  • Added “Isengaard” as the model

I am 99% sure all I really had to do was follow the instructions already in the forum and then change the CommFailure variable, but I’ll never know unless someone else in the forum tries to do that and reports back before doing all these other things.

Or maybe sometime this week I’ll set up another instance for the other Kodi box in the house, and report back myself.

ps - many thanks to cw-kid for elaborating the instructions, and for that blog post, which got me thinking more about the effects of the Params and Variables

pps - many many thanks to Ron for an awesome plugin

ppps - on UI7 there is an unlabeled and mostly invisible Mute button…any chance someone can make it more obvious and/or add real volume controls? I am still very much a noob – just opened my first Vera (Edge) this morning.[/quote]

I was also finally able to get rid of the “Can’t detect device” from KODIRemote on UI7. I only changed the CommFailure variable for 0 to 1. No need to change the other parameters.[/quote]

I just installed KodiRemote for the first time on Vera Edge UI7. I am trying to change the CommFailure variable from 1 to 0 however it never seems to keep the change and when I go back in to the Variables tab again its changed back.

I have tried clicking in the field and pressing 0 on keyboard and then tab to come out of the field and it says “Change property command sent”

I’ve also tried ticking the box “switch to input type text” but that doesn’t seem to work either.

How did you change the variable and make it stick?

Also when playing Trailers in the Kodi Apple iTunes Trailers add-on it doesn’t appear to make Vera restart. As I reported it was earlier with my VeraLite UI5.

EDIT: OK maybe it was changing it but I couldn’t see it was, as after refreshing the browser page it now says CommFailure is 0. And after then reloading Vera it now does NOT say “Can’t Detect Device” ;D

[quote=“LightsOn, post:127, topic:184260”]Hi Alpha1

I use the below - adapt as you need:

http://[ip]:49451/data_request?id=variableset&DeviceNum=[device_ID]&serviceId=urn:dcineco-com:serviceId:MSwitch1&Variable=Status[the_number_if_the_Switch_1>8]&Value=[desired_variable]

Hi cw-kid - you can either launch an http request by just, for example, adding the above string adapted for your needs. or you can run a script, python with variables, or in my case a simple au3 script compiled to .exe. the script as you state just has http requests in it as discussed above. the scripts you can store where ever - as long as Kodi can map to it then it is usable.

Hope this helps? I am really pleased I transitioned.[/quote]

LightsOn, as i said in my PM, thanks so much for your help and clear instructions!

Some news for you guys.

Looks like there is a new Kodi add-on for Vera I just stumbled on it via a Google Search

http://www.smarthome.com.au/smarthome-blog/xbmc-vera-z-wave-addon/

Its called “XBMC Z-Wave Vera Addon”

It can run scenes upon play and pause. you can specify a time range for night mode and most interesting it also lets you create shortcuts to five other Vera scenes and has an on-screen popup menu to select them!

Screen shot:

http://www.smarthome.com.au/media/extendware/ewimageopt/media/template/54/b/xbmc-insteon-addon-24.jpg

I’ve not tried this add-on but it might be worth testing.

KodiRemote on the other hand is actually working pretty well for me at the moment on my new VeraEdge UI7 unit with OpenElec Kodi v15.2

Wow, now that looks pretty slick. going to give that a go tonight.

I like the Kodi remote which this topic runs for but i find it all a bit hit and miss if it works. I like the on screen shortcuts from this new plugin!

Thanks for posting!
N

[quote=“alpha1, post:131, topic:184260”]Wow, now that looks pretty slick. going to give that a go tonight.

I like the Kodi remote which this topic runs for but i find it all a bit hit and miss if it works. I like the on screen shortcuts from this new plugin!

Thanks for posting!
N[/quote]

Let us know how you get on trying this new add-on ? I may have a go myself as well if I have time.

I’ve started a new thread about the new add-on here so least we can discuss it there instead.

I tried it but there are some issues already.

There are a couple of KODI Vera addons in Git i have found:

Not sure if they are related to this thread though

[quote=“alpha1, post:134, topic:184260”]There are a couple of KODI Vera addons in Git i have found:

Not sure if they are related to this thread though[/quote]

The first one I am aware of and it doesn’t work fully.

The second one I am not sure about, have you tried installing it on Kodi ?

Hi

Was just looking in the Kodi log for something else and noticed a few of these errors relating to KodiRemote. Anyone else seeing this?

09:20:32 T:140661303006976 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <class 'urllib2.URLError'> Error Contents: <urlopen error [Errno 111] Connection refused> Traceback (most recent call last): File "/storage/.kodi/addons/script.service.micasaverde/default.py", line 91, in onPlayBackStarted data = json.load(urllib2.urlopen(url)) File "/home/stephan/projects/openelec-6.0/build.OpenELEC-Generic.x86_64-6.0.1/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 126, in urlopen File "/home/stephan/projects/openelec-6.0/build.OpenELEC-Generic.x86_64-6.0.1/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 400, in open File "/home/stephan/projects/openelec-6.0/build.OpenELEC-Generic.x86_64-6.0.1/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 418, in _open File "/home/stephan/projects/openelec-6.0/build.OpenELEC-Generic.x86_64-6.0.1/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 378, in _call_chain File "/home/stephan/projects/openelec-6.0/build.OpenELEC-Generic.x86_64-6.0.1/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 1207, in http_open File "/home/stephan/projects/openelec-6.0/build.OpenELEC-Generic.x86_64-6.0.1/Python-2.7.3/.install_pkg/usr/lib/python2.7/urllib2.py", line 1177, in do_open URLError: <urlopen error [Errno 111] Connection refused> -->End of Python script error report<--

Line 91 contains:

data = json.load(urllib2.urlopen(url))

EDIT: Actually thinking about it, this could just mean my Vera unit was unreachable at the time. Which it was earlier today as it crashed. Will keep an eye on the log for this error again ?

Having some issue here guys - I’ve just configured Kodi to talk to my new VeraPlus and its going really well. Although it states “Cant Detect Device” in Vera. Im unsure what this means as I can see status information is working perfectly:
Computer: Up
Player: Audio_stop
Kodi: home

All that changed when I navigate or play TV / Films etc. But the red banner in Kodi wont go away. Anyone else experianced this?

Thanks
Evo

[quote=“Evoxer, post:137, topic:184260”]Having some issue here guys - I’ve just configured Kodi to talk to my new VeraPlus and its going really well. Although it states “Cant Detect Device” in Vera. Im unsure what this means as I can see status information is working perfectly:
Computer: Up
Player: Audio_stop
Kodi: home

All that changed when I navigate or play TV / Films etc. But the red banner in Kodi wont go away. Anyone else experianced this?

Thanks
Evo[/quote]

Read the last page
http://forum.micasaverde.com/index.php/topic,28490.msg252965.html#msg252965

[quote=“cw-kid, post:128, topic:184260”][quote=“cp1983, post:109, topic:184260”][quote=“seanwalter, post:103, topic:184260”]For people on UI7 getting the “Can’t detect device” error…I was also having this problem and solved it pretty simply – after following all instructions in this forum, but with no luck.

I finally decided I had nothing to lose (at 2am…) and noticed in Advanced Settings–>Variables there is a variable called “CommFailure”. I manually changed this from 1 to 0, and now my Kodi Remote is detected.

I did do a couple of other things, but I doubt they are necessary. You can try them if the simple change above doesn’t solve your problem:

  1. Follow all other instructions in the forum to install the plugin correctly and install the addon correctly in Kodi

  2. Upgrade Kodi to 15.0 Isengaard (I was on the 14.2 Helix before)

  3. In Advanced–>Params I filled in the following:

  • Added the MAC address for my Kodi box
  • Added “Team Kodi” as the manufacturer
  • Added “Isengaard” as the model

I am 99% sure all I really had to do was follow the instructions already in the forum and then change the CommFailure variable, but I’ll never know unless someone else in the forum tries to do that and reports back before doing all these other things.

Or maybe sometime this week I’ll set up another instance for the other Kodi box in the house, and report back myself.

ps - many thanks to cw-kid for elaborating the instructions, and for that blog post, which got me thinking more about the effects of the Params and Variables

pps - many many thanks to Ron for an awesome plugin

ppps - on UI7 there is an unlabeled and mostly invisible Mute button…any chance someone can make it more obvious and/or add real volume controls? I am still very much a noob – just opened my first Vera (Edge) this morning.[/quote]

I was also finally able to get rid of the “Can’t detect device” from KODIRemote on UI7. I only changed the CommFailure variable for 0 to 1. No need to change the other parameters.[/quote]

I just installed KodiRemote for the first time on Vera Edge UI7. I am trying to change the CommFailure variable from 1 to 0 however it never seems to keep the change and when I go back in to the Variables tab again its changed back.

I have tried clicking in the field and pressing 0 on keyboard and then tab to come out of the field and it says “Change property command sent”

I’ve also tried ticking the box “switch to input type text” but that doesn’t seem to work either.

How did you change the variable and make it stick?

Also when playing Trailers in the Kodi Apple iTunes Trailers add-on it doesn’t appear to make Vera restart. As I reported it was earlier with my VeraLite UI5.

EDIT: OK maybe it was changing it but I couldn’t see it was, as after refreshing the browser page it now says CommFailure is 0. And after then reloading Vera it now does NOT say “Can’t Detect Device” ;D[/quote]

I’ve been off the forums for awhile, but logged back on today because I’m having the same issues as other people where I can get my VeraEdge to see Kodi for a period of time, but eventually it “loses” the IP address I have manually entered in the Advanced Settings. I have put up with this for a few months now and am finally going to try a few other options, including some of the others mentioned in this thread.

I just don’t want anyone reading the forums thinking the solution I outlined last fall is a permanent solution. It seemed permanent at the time… I’d be interested to revisit if anyone has ideas for making it stick.

I don’t think I have had any issues with the Kodi Remote instances loosing their IP addresses. All seems OK.

I have had issues with the WOL with Ping Plugin however that is also setup for the Kodi PCs. That does sometimes lose the IP addresses.