[quote=“jvanhambelgium, post:180, topic:184260”]Thanks! Indeed the “Play” state never really worked. My light would not dim when starting a movie, I had to quickly “pause” “unpause” to make the lights go out.
Let me fix that in the code as you mentioned.
Hmm, running KODI on Adroid (ShieldTV) is slightly more annoying to make quick changes to files…[/quote]
If you have the Plex Server enabled, then you can go to Settings > Storage & Reset and enable Transfer files over network. It will give you a username and password. Then, from your Windows PC, you can browse to [font=courier]\<shield_ip>\internal[/font], enter the username and password, and access and edit the files directly.
Anyone used/tested this micasaverde-plugin on the new KODI 19 release ? Works fine on KODI Leia 18.9 but KODI 19 “Matrix” uses Python 3.x and not 2.7 anymore.
Sounds like there could be a lot more to it, reading from the below wiki page.
I have some old addons I am still using in Kodi, like the CAM Overlay addon for bringing up IP camera images in Kodi.
And other addons, if they won’t work in Kodi V19 looks like I maybe stuck on Kodi V18.9 for quite some time.
I guess its going to be a case of changing the addon.xml file and the xbmc.python dependency to 3.0.0 and just seeing if these various old addons will still work or not?
A brief procedure for porting existing code to Python 3-compatible with Future library:
Install Future library into your working Python 2 virtual environment: pip install future.
Run futurize utility to convert all your scripts and modules to portable code.
Test your new or converted addon in Kodi with Python 2 interpreter and fix all found issues. After that test the addon in Kodi with Python 3 interpreter and again fix all found issues. You can use Web-PDB debugger for troubleshooting issues in your code. It is compatible with both Python 2 and 3.
Arrggh, for some reason my KODI was auto-updated to Matrix 19 and I can confirm the Micasaverde addon is broken ;-(
I’ve edited the XML file on my Android box and placed 3.0.0 in the python field but no luck.
As you mentioned, there a few things different python 2.7 <> 3.x and it looks like the addon itself (default.py) needs some modifications.
Eg. I’m seeing errors in the KODI log on "No Module named ‘urllib2’
Also it seems the “import” syntax needs different way of coding in Python 3 ?
I’m using a nVidia ShieldTV and looking with the (non root) ES-file explorer but it seem the regular system-tree is not visible. Cannot see any /usr/… structure.
I did not reboot, just stopped/started KODI each time, then looked at logviewer etc.
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.