For info, there is a new version of pimatic-kodi available. Kodi predicates, e.g. “<kodi device> is playing”, should now work as expected. There are also a couple of other bug fixed for some edge cases.