[APP][Pro] Kodi [2.6.0]

Not sure how to share through the app, but I think you mean this:

c6c77abc-11d2-4fc3-8113-c831798e459e

This is me starting, pausing, resuming and stopping on wired keyboard, Homey app and Yatse app.

Did the capabilities change for Kodi-devices going to 2.0?
Because I didnā€™t have to repair any other devices after the update.

Did a quick repair, everything seems to be ā€˜normalā€™ now :slight_smile:

@Fire69
What were the steps of your ā€˜quick repairā€™? Just for sake of completeness :). And yes, capabilities were added going to 2.0

I donā€™t see any weird things in your log, only that you keep losing connection to kodi every 2-3 minutesā€¦ Can you tell me a bit more about your Kodi setup? Do you shutdown Kodi every time? Note that Homey polls for a connection to kodi every 10s which means that if you boot Kodi, there could be a delay of max 10sec before Homey picks up a connection to Kodi. If you start a movie within those 10sec it could be possible that events donā€™t get picked up.

To test if events are fired properly you can create a test flow:
IF: Kodi starts playing something
THEN: Let homey speak ā€˜testā€™

If this flow is fired correctly, then your lights should work as well (provided your flow is correct)

I shouldā€™ve typed quick ā€˜re-pairā€™. :slight_smile:
I deleted my device, added it again and fixed my (luckily only 3) flows :smile:

I just need to say that you made a great app @Marvin_Schenkel ! I just found it and it was simple to install and a lot of options available, now i donā€™t have to tell Alexa to turn on/off cinema lights every time someone ā€œdisturbā€ me in the cinema! And there a lot of more things to enable/try out, thanks a lot! :grinning::+1:

Thanks a lot for the kind words and the donation :). Will make sure to buy some coffee from it :wink:

Tried what you suggested and everyting worked as it should except for one thingā€¦ so I talked to my friend tonight. He also has a Homey, also runs Kodi and only uses Yatse to control. He thought of the possibility that there might be a difference between the pause and play button within the Yatse app. Pressing the spacebar on the keyboard is the same button for pausing and resuming. Iā€™ve come to the conclusion that this is not the case with Yatse. Testing this Iā€™ve narrowed it down to this:

Using Yatse: Kodi starts playing activates flows as they should. So does stopping as well as pausing.

Apparently it is the resuming that isnā€™t being recognized as starting Kodi, so my lights stay on, eventhough Homey flows tell them theyā€™re supposed to turn offā€¦ I guess Iā€™ll have to take my situation to the Yatse developerā€¦ Or am I missing a workaround? What do you think?

How about you create a flow:
WHEN: Kodi has been resumed
THEN: Turn off the lights

ā€˜Kodi starts playing somethingā€™ is indeed not triggered on a resume action, so maybe that will help. i still find it weird that the Yatse app behaves differently than the key board, but since I donā€™t own a Yatse control I cannot test thisā€¦

Let me know if adding that extra flow solves your problem :slight_smile:

These are the flows I am using now (and have been using, except now I cut out time dependency to not get in the way of testing):

So thereā€™s really nothing to addā€¦ Any ideas what else I could test?

Strangeā€¦ What version of kodi are you running?

Krypton 17.6.0.0 with Horizon skin. Iā€™ll try and contact Tolriq, developer for Yatse if he has any clue. I have to provide both Yatse and Kodi logā€¦ Iā€™ll keep you in the loop. Do you, as a Kodi app developer for Homey (assuming that is what you do) use Kodi yourself? And you donā€™t use Yatse? Then what do you use?

@Bammeles
Ah yatse is an Android app. Though it was some kind of hardware. Yep I definitely use kodi myself. I just have it installed on a raspberry pi and use my TV remote. The only app I occasionally use is Kore. Iā€™ll download yatse and see if I can reproduce your problem! I know theyā€™ve changed something in resuming Kodi as of v18, so Iā€™ll have to check if yatse is working for me. Iā€™ll get back to you when I have some time on my hands

Thank you for your efforts so far. I could have mentioned it was an Android app. Ah, wellā€¦ I tried Kore once, but I am much happier with Yatse. At least at the time, not sure how good it is now. It might help to know I am running a version of Kodi that supports SVP (Smooth Video Project) through DSPlayer, which gives me 60 in stead of 24 frames per second. Makes everything run much, much smoother. It does require more powerful hardware than a Raspberry Pie thoughā€¦ Iā€™ll get back to you when Iā€™ve had word from the Yatse developer.

Discovered just now my flows arenā€™t working correctly anymore either.
When I start a movie, I have a flow ā€˜When Kodi starts a movieā€™, thatā€™s working correctly.
But for when the movie stops I use ā€˜A movie is stoppedā€™, this isnā€™t working anymore.
I changed it to ā€˜Kodi is stoppedā€™ and itā€™s working.
Strange thing I noticed (and this is both with Yatse and my Harmony remote) is that in the Homey-app the device is shown as paused.

@Fire69
Yeah I still need to sync the initial state of a device between Homey and Kodi, so sometimes you could see the device as ā€˜pausedā€™ while youā€™re playing a movie.

Also, ā€˜on movie stopā€™ is only triggered when the movie has ended including credits, not when you press ā€˜stopā€™ while watching a movie:

  • On movie stop (when a movie ends, including credits)

Is that whatā€™s going on, or is something broken? Would you expect this event to fire when you manually press stop?

1 Like

Thatā€™s not really the problem, the state changes when playing or stopping, itā€™s just that it always shows paused when Kodi is stopped.

I donā€™t know if something is broken, but behavior did change :slight_smile:
I had to change my working flow to ā€˜kodi is stoppedā€™ because otherwise my lights didnā€™t turn back on when I pressed Stop.
This wasnā€™t a problem before when I had ā€˜a movie stopsā€™
So maybe it was broken before :slight_smile:
Or maybe itā€™s because itā€™s showing as paused?

@Fire69
I think the ā€˜pausedā€™ thing is by design. Sonos devices have exactly the same behaviour. As for the ā€˜movie stopā€™, the behaviour has always been as I described above, so it would only fire when a movie ended including the credits (basically without any human interaction), so I find it weird that it worked for you before. Maybe I should rename to ā€˜a movie has finishedā€™ to avoid any confusion :).

Might not be bad, but thatā€™s your decision :wink:

Weird that it worked before indeed. But itā€™s ok now, so Iā€™m good :slight_smile:

Iā€™m trying to get two things done. Looks similair to some other flows here but not exactly.

  • A flow that when kodi starts playing a movie or tv show the lights should dim to 10%. (all hue and a fibaro dimmer 2). But when kodi stops I want it to return to the state it came from. And, when itā€™s paused by spacebar on wireless keyboard lights should undim and dim at resuming. I canā€™t get it right.

  • Second a flow that starts kodi playing music. I have on speech trigger ā€˜ok homey, bluesā€™. It works, it turns on my denon, switches to the right input, and plays a specific artist. But I would like to play it at genre or playlist. Is this possible? And, can we make it shuffle? Now itā€™s playing one blues album allways in the same order.