@Dnpwwo Good to hear from you! I am on Kodi 18.7 or 18.8, at the least the most recent stable. Yes, I'd rather fix it at the source (meaning, updating the plugin). I am not a fan of visualisation while playing audio, since it is CPU intensive, generating heat.
I am not capable to work with the python programming language and therefore I find the plugin code a little abstract. What I do understand of it is that when Kodi publishes that the screensaver kicked in, it is received in the plugin as the start of a sleep period, even stopping the domoticz 'kodi - playing' device. In the recent version of Kodi this is not true for Audio.
My suggestion for plugin improvement:
At reception of status 'Screensaver'
Check if media is still playing.
If no, continue as is todoay
if yes, check whether it is still video or audio and further ignore the status update (in other words, dont update the domoticz device)
(since the devices 'status' and 'playing' are updated as usuals when the next audio song starts, my suggestion would make the devices work again as they are supposed to)
At the reception of status 'On' (since, with the problem for Audio as described here above, at the end of a played album the status changes to 'On' and never again to 'screensaver' unless a Kodi interface button is pressed and the screensaver will be activated 5 minutes later)
Check whether the screensaver is on
If no, leave the status on
If yes, change the status to 'Screensaver'
When a video is started from Youtube (at least), the domoticz log shows 2 status updates: Kodi status (9), followed by (4). This happens in a split second, but the state (9) (=sleeping) already triggers the wrong part of my script.
Suggestion of improvement:
When the status is updated (9) wait for 0,5 sec before publishing?
Domoticz log at every video (from Youtbe) start
Code: Select all
2020-09-06 09:52:38.053 (Kodi Woonkamer) GUI.OnScreensaverDeactivated received, Player ID: -1
2020-09-06 09:52:38.087 (Kodi Woonkamer) Update 1:'' (Kodi Woonkamer - Status)
2020-09-06 09:52:40.167 (Kodi Woonkamer) Update 9:'' (Kodi Woonkamer - Status)
2020-09-06 09:52:40.250 (Kodi Woonkamer) Update 4:' xyz selected video' (Kodi Woonkamer - Status)
2020-09-06 09:52:40.281 (Kodi Woonkamer) Update 2:'0' (Kodi Woonkamer - Playing)