I’ve managed to fix it I think.
Basically I first used an online Python2 > Python3 convertor to sort some things out. Then I was still getting errors on addon-startup about xbmc.abortRequested: that is not valid anymore. After some searching I replaced it with xbmc.Monitor().abortRequested():
At this point in time the errors on KODI stopped popping up. It does seem like the “Configure” menu structure is a bit hosed up, don’t understand why because that’s not something I touched.
Note that I’m not a developer at all, I’ve never actually written any Python code in my life, but I can understand a bit and do some trial & error.
And finally I’ve checked on my Reactor sensor and it seems the states (start/stop/end/pauze) do seem to arrive at my Veraplus, so this is to confirm it works.
I’ve attached the converted file here for whoever might need it, just rename it to extension .py and place it in the correct addon-folder.
I made the modification of the addon.xml and the default.py in the shield but kodi 19.2 still does not see the extension for the vera
How did you proceed thank you
this avoids installing xbmcstate or kodiremote on the vera and just to launch a scenen or two that’s enough for me but the operation is practically identical
I know this is an old thread, but i had not updated kodi since this plugin stopped working in matrix. Since it was no longer supported, i decided to update it and fix it myself. All the menus work like they did previously. You still need the xbmcstate on your vera. You can install through unknown sources and install from zip file. Tested on 19.3.
Note: I should mention, I’m not the original developer. I just decided to update the script for python3 as well as the settings.xml file to support the new matrix format. Also the language support changes for matrix so it only supports ‘english’ settings - i dont think it ever support anything other than that though.
I was able to install your version… it kept all of my settings, and it seems to be enabled… but it’s not sending any of the events to my Vera. Did you have to do anything else special?
@mike_m,
Did you set your Kodi IP in your device parameters on Vera side ?
On Kodi side, did you set your device ID in your extension settings (and then restart Kodi) ?
Do you get “up” and “down” at least respectively when Kodi computer’s up and down or just"–" instead ? (could be the IP not set correctly. Maybe the port is missing or something ?)
Did you check every event is set to “yes” under “xbmc state” settings on Kodi ?
Otherwise, I have no idea. All I can say is that it works perfectly well for me.
I thought it was weird, because the older version I had installed was using KODIState1 not XBMC1. So in default.py I replaced all of the references of XBMCState to KODI.
My KODIRemote on Vera has a device type of “urn:schemas-upnp-org:device:KODIRemote:1”
I thought it was weird that it was referencing XBMCState1 and not KODIRemote1 as the plugin in Vera was expecting. I did a sed replace on those values in default.py and it is all working now. Not sure if @dbldown768 wants to add that to his code or not.
Also, the reason why the buttons on the Kodi plugin on Vera don’t work is because “As for many things Wiki is out of date. For security reasons there is a significant change in v18 that prevents GET working for most of the API commands. Use POST instead.”
So the get commands in the plugin like:
luup.inet.wget(“http://” … ipAddress … “:8080/jsonrpc?request=%7b%22jsonrpc%22%3a+%222.0%22%2c+%22method%22%3a+%22Player.GetActivePlayers%22%2c+%22id%22%3a+1%7d”, 5)
local jsondecoded = endecoder.decode(result1);
Hello, I’m reaching out again because I’ve just switched to Kodi Matrix and Vera Edge with UI7, and my xbmcstate is no longer working. I’ve been trying to tinker with it, but nothing seems to work, neither with Kodiremote nor xbmcstate. I’m a bit lost after reading all the posts that often refer to UI5 and Kodi 18. If a kind soul could guide me through the process to make it work with Kodi 20 and UI7, I would greatly appreciate it. It would be worth updating this plugin, as it’s quite useful. I believe I’m not the only one in this situation. Thank you very much.