Kodi Remote Control

No not currently.

But upon entering the Videos area of Kodi e.g. the Movies or TV Shows library you can have KodiRemote detect this, using the Kodi State Change trigger of “Menu Video”

See the comments at the end of this article, we have just been discussing this today.[/quote]
Thanks for the suggestion. I will check that article.

[quote=“cw-kid, post:79, topic:184260”]And could more default Menu state items be added? For the Live TV areas of Kodi?

These are the ones we have currently

Kodi Open
Menu Home
Menu Program
Menu Picture
Menu Setting
Menu Video
Menu Music
Menu Weather
Kodi Close

Trying to work out a way not to have the lights dimmed or brightened when watching liveTV but only for movies.[/quote]

There’s no reason why not, as all the different views eg recorded tv, epg, guide etc are defined by Window IDs. That would give you way more control.

Also, if would be useful to allow more custom entries than the current 2 if possible.

Yes you are correct and using your idea of turning off a virtual switch when entering the Live TV areas of Kodi, so that the auto dimming / brightening of the lights doesn’t happen.

I see two ways this could be done, both would need the Vera plug-in updating!

  1. Add triggers for custom events, as we discussed, this should be done regardless really.

  2. Add more “Menu” status items to cover the Live TV areas of the Kodi GUI. E.g.

“Menu EPG”
“Menu TV Channels”
“Menu Radio Channels”
“Menu Recordings”
“Menu Timer”

Number 2 would be my preferred option as that would leave the custom events unused and they could then be used for something else.

And then using the existing “Menu Video” trigger to turn back on the virtual switch, when we enter the movies or TV shows areas of the Kodi GUI, would then allow the auto dimming / brightening of the lights to happen.

All of this would be based on the video playback status as well obviously, Start or resume videos dims the lights and pause or stop brightens the lights.

We’d use Luup code or pleg in our scenes to query the status of the virtual switch, off then nothing happens, on then the lights are then “Linked” with Kodi and are controlled as per the Kodi playback status etc.

[quote=“richgodfrey, post:82, topic:184260”][quote=“cw-kid, post:79, topic:184260”]And could more default Menu state items be added? For the Live TV areas of Kodi?

These are the ones we have currently

Kodi Open
Menu Home
Menu Program
Menu Picture
Menu Setting
Menu Video
Menu Music
Menu Weather
Kodi Close

Trying to work out a way not to have the lights dimmed or brightened when watching liveTV but only for movies.[/quote]

There’s no reason why not, as all the different views eg recorded tv, epg, guide etc are defined by Window IDs. That would give you way more control.

Also, if would be useful to allow more custom entries than the current 2 if possible.[/quote]

Regarding the existing “Menu Video” could this be split down further? For even more granular control.

The Kodi window ID’s can be seen here.

Ideally I like to have:

“Menu Movies”
“Menu TV Shows”

So it can determine if we are in the Movies or TV Shows area of the Kodi GUI.

Not sure if that is possible? But the more menu status items we have the better!

From the Kodi wiki

video WINDOW_VIDEOS 10006 6 None
this is just a wrapper for the current My Video view (who’s IDs are 21-25)

pvrsettings WINDOW_SETTINGS_MYPVR 10021 21
SettingsCategory.xml

videolibrary WINDOW_VIDEO_NAV 10025 25

MyVideoNav.xml - Replaces the following .XML files:
MyVideoGenre (WINDOW_VIDEO_GENRE),
MyVideoActors (WINDOW_VIDEO_ACTOR),
MyVideoYear (WINDOW_VIDEO_YEAR),
MyVideoTitle (WINDOW_VIDEO_TITLE)

So looks to me you can’t determine between just the Movies or TV Shows areas of Kodi.

But looks more promising for the Live TV areas, the ones where I’ve added a * are the ones I think we’d need adding:

pvrguideinfo WINDOW_DIALOG_PVR_GUIDE_INFO 10602 602
pvrrecordinginfo WINDOW_DIALOG_PVR_RECORDING_INFO 10603 603
pvrtimersetting WINDOW_DIALOG_PVR_TIMER_SETTING 10604 604
pvrgroupmanager WINDOW_DIALOG_PVR_GROUP_MANAGER 10605 605
pvrchannelmanager WINDOW_DIALOG_PVR_CHANNEL_MANAGER 10606 606
pvrguidesearch WINDOW_DIALOG_PVR_GUIDE_SEARCH 10607 607
pvrosdchannels WINDOW_DIALOG_PVR_OSD_CHANNELS 10610 610
pvrosdguide WINDOW_DIALOG_PVR_OSD_GUIDE 10611 611
*tvchannels WINDOW_TV_CHANNELS 10615 615
*tvrecordings WINDOW_TV_RECORDINGS 10616 616
*tvguide WINDOW_TV_GUIDE 10617 617
*tvtimers WINDOW_TV_TIMERS 10618 618
*tvsearch WINDOW_TV_SEARCH 10619 619
*radiochannels WINDOW_RADIO_CHANNELS 10620 620
radiorecordings WINDOW_RADIO_RECORDINGS 10621 621
radioguide WINDOW_RADIO_GUIDE 10622 622
radiotimers WINDOW_RADIO_TIMERS 10623 623
radiosearch WINDOW_RADIO_SEARCH 10624 624

make sure the port is correct
if you access the web interface of xbmc via another port … make sure to set it to this one.[/quote]

Duh! I didn’t even think of that. That’s exactly my issue. Thanks[/quote]

I finally got around to trying this again. Just put together a new HTPC/Game machine and still can’t get the media controls to work. I’ve entered in the port number and KodiRemote sees the status of my player and when it’s open or close. Only odd thing is that it keeps showing the computer as being down. Not sure what other settings I’d have to change as I use Yatse and it’s working fine with Kodi.

make sure the port is correct
if you access the web interface of xbmc via another port … make sure to set it to this one.[/quote]

Duh! I didn’t even think of that. That’s exactly my issue. Thanks[/quote]

I finally got around to trying this again. Just put together a new HTPC/Game machine and still can’t get the media controls to work. I’ve entered in the port number and KodiRemote sees the status of my player and when it’s open or close. Only odd thing is that it keeps showing the computer as being down. Not sure what other settings I’d have to change as I use Yatse and it’s working fine with Kodi.[/quote]

Sounds like your running Kodi on a Windows OS ?

I also have Kodi installed on my Windows 7 laptop. I just looked at the Windows firewall rules / allowed programs and Kodi was listed under Private network and ticked. If I un-tick this entry and apply and then try the buttons on the KodiRemote device instance in Vera, then the buttons no longer work!

If I then re-enable the firewall rule and close and re-open Kodi, then the buttons start working again.

Check your Windows firewall settings or that of any other software firewall you may have installed. As a test disable the firewall and then see if they work?

If that’s not the issue, try changing the Kodi webserver default port number from 80 to 8080.

Ok thanks for the tips. I got it working on port 8080. I THINK for the controls to work, you have to have Kodi webserver port on 8080 as it’s hardcoded into the xml file. What’s still puzzling me is that the computer is still showing down. Also, is it abnormal that I don’t have the xbmc icon in my device?

Actually, page 1 in this thread addressed that issue of 8080 being hardcoded into the file. I thought maybe it got changed since someone brought it up. I replaced all instances of 8080 in the implementation file to my port and it all works, without having to change the firewall rules.

I’m not sure, all my Kodi PCs were set to use port 8080 for the webserver anyways and when I installed KodiRemote the transport controls / navigational buttons worked out of the box. Also all my Kodi PCs state UP if they are powered on.

And on the advanced tab of the KodiRemote device in Vera it didn’t seem to matter if the port field said 80 or 8080 it worked either way. So maybe that port field doesn’t actually work as suggested by a comment on the first page of this thread.
I didn’t need to edit any xml files, presumably as I was already using port 8080.

And also all my KodiRemote device instances in the Vera web UI5 have the XBMC icon. Do yours not?

Glad you got it working

Yeah mine doesn’t have the icon. Now to come to think about it, not sure if XBMCState plugin ever had an icon. I’m running into another issue now where the status of the player will clear as a video is playing, making it impossible for pleg to react to player status. I still have XBMCState installed so I’m not sure if that’s interfering with it. I uninstalled Kodi Remote to see if XBMCState is exhibiting the same thing and it is. I’m gonna uninstall everything tonight and start from scratch.

Ok I fixed the “Computer: down” problem I was having. I tried to ping the kodi/htpc box and there was no response. So I googled this and found out that I had to turn on ICMP Echo request in Windows 7 firewall. Computer is now showing up. Yay! I think this solves the issue I had with “Player:” and “Kodi:” clearing it’s status after a certain amount of time - even if a video is playing.

I’m using UI7 and everything works just fine, status update from Kodi is instant and controls from Vera are working. I have a series of scenes that triggered by Kodi status, like Video_start will dim light and Video_pause will light philips hue strips etc. All those player status triggered scenes work fine, but the Kodi status like Kodi_open, Kodi_close is just not working, they can’t trigger any scenes. I find the addon from Kodi returns Xbmc_open instead of Kodi_open, so I modified the code and now it returns Kodi_open, but still it is not working… Actually I can modify the Kodi addon not to just change value but directly call the scene I want. But still I want to learn how all those things work, how to set up a variable to trigger Vera scenes. Any ideas of fixing it? Thanks

No one had this issue I mentioned before?

Hi All,

Thanks for all the hard work here. I just wanted to add my experience for other also. Any old all for XBMC State must indeed be un-istalled before the kodi add in can be installed and configured. By default you do indeed need to use 8080 with no user name or password in web server in kodi. you can get round this is you like buy downloading I_KODIRemote file - editing it to replace 8080 with the port you want - find and replace all in notpad++ works. You can also add a password by changeling “http://” … ipAddress … " to “http://<User_Name>:@” … ipAddress … "

save the file and upload it again - it will replace the original (so make a back up) - do the vera dance (f5 etc.) and all will work under the new desired port and also with a password and suer name if desired.

I also had no need for ther day and night function since i handle this with PLEG - as such the items i want reported I just select YES to and then leave the field for the day night plugin blank. I have not installed the day night plugin and all works fine for me. Logic can al be handled in PLEG. This will reduce load on Vera.

Hope this is helpfully to someone and thanks to all for the info and work on this app.

Has anyone been able to fix the annoying “Can’t Detect Device” issue in UI7?

Everything else works ok. It’s just this stupid error that annoys the hell out of me! :slight_smile:

The can’t detect device error message should stop showing after you change kodi port to 8080 and remove user name and password. I did that to get rid of the error message. But still the kodi_open and kodi_close can’t trigger scenes for me.

Does any one know how to have kodi report status at intervals as if say kodi remote reports audio playing after a period of time you get “–” as status even though content is still playing? If we could set an inteeval updater or something to report every x amount of time what the player state is that wold be ace.

Thanks! You mean remove username and password in Kodi in the section: system - services - webserver? I have the port number at 8080 and removed the default username: kodi. I had no password. Rebooted both Kodi and vera but am still getting the can’t detect device message?

Thanks! You mean remove username and password in Kodi in the section: system - services - webserver? I have the port number at 8080 and removed the default username: kodi. I had no password. Rebooted both Kodi and vera but am still getting the can’t detect device message?[/quote]

That’s what I did… system - services - webserver and removed the default username no password. And the error message just disappeared after relaunch both sides. Make sure you used the latest plugin files from this thread early pages. If still not working, I gonna have no idea…