Page 1 of 1

Kodi event

Posted: Monday 23 May 2016 8:54
by gvanrekum
Hi,

I've got the following issue: I want Domoticz to automaticly start a radio channel (after x seconds) when kodi has stop playing (video/ audio).
I've got the play part working (JSON RPC), but I can't get the automatic part to work. Kodi sends an "on" command to Domoticz when its stops playing, but it also sends this "on" command between 2 videos, so that's useless.

Anyone got an idea?

Thanks.

Greetz,
Gerard

Re: Kodi event

Posted: Thursday 26 May 2016 11:53
by gvanrekum
Hi,

Anyone an idea?
Thanks
Greetz,
Gerard

Re: Kodi event

Posted: Friday 27 May 2016 1:26
by Dnpwwo
You could use an event and check the if the Kodi was "on" and if the last updated time was greater than a certain number of seconds, if it was then turn the radio on.

The number of seconds might vary a little depending on the event type you use but you could easily turn it on in under a minute.

Re: Kodi event

Posted: Monday 06 June 2016 13:03
by gvanrekum
Thanks, I will test this solution! :-)