You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When audio is played, the screensaver becomes active after 5 minutes. This is fine, since the connected screen is off during audio play anyway. However within Domoticz my script goes haywire, since the screensaver status is in this case not the indication that Kodi is idling (reason to shut down my receiver).
To make it worse, the next played song will put the Kodi - Status device back to 'Audio' and keeps doing so until it reaches the end of the album and displays 'On' instead. For me I don't know when the user is active in the GUI or not, making it impossible for me to decide when to shutdown the receiver.
Therefore, can you please update the plugin to do a regular call to Kodi whether the Kodi status is internally 'Idle' while the displayed status is 'On', since the 'Idle' state is handled correctly. I used the kodi add-on Callbacks for that (even @ onIdle), but this add-on makes Kodi very unstable.
UPDATE: I continued my search and with help of dzVents I am able to bypass the described problem in a script.
I think it is a flaw in the current plugin that wen the GUI status update goes to "sleeping", or "screensaver" (don't know how it is called from Kodi) to conclude that everything is stopped. Of course this is true for Video, but not for Audio. Therefore the Kodi - Status device should keep it's status of 'Audio' in that case + Kodi - Playing should continue it's percentage and not go to 'Off'
I now check during a status change to 'Sleeping' this:
{"jsonrpc":"2.0","method":"XBMC.GetInfoBooleans","params":{"booleans":["Player.HasAudio"]},"id":1}
If yes, I try to update the Kodi - Status device to 'Audio (5), although I am not very successful doing so (I can't do it 'silent', so the correction triggers my script again) and I can't update the playing song, since I don't know how to pass this on to the device.
When the status at the end of playing audio switches to 'On', I run this:
{"jsonrpc":"2.0","method":"XBMC.GetInfoBooleans","params":{"booleans":["System.ScreenSaverActive"]},"id":1}. If yes, I try to update the status of Kodi - Status to 'Sleeping' (9)
The text was updated successfully, but these errors were encountered:
When audio is played, the screensaver becomes active after 5 minutes. This is fine, since the connected screen is off during audio play anyway. However within Domoticz my script goes haywire, since the screensaver status is in this case not the indication that Kodi is idling (reason to shut down my receiver).
To make it worse, the next played song will put the Kodi - Status device back to 'Audio' and keeps doing so until it reaches the end of the album and displays 'On' instead. For me I don't know when the user is active in the GUI or not, making it impossible for me to decide when to shutdown the receiver.
Therefore, can you please update the plugin to do a regular call to Kodi whether the Kodi status is internally 'Idle' while the displayed status is 'On', since the 'Idle' state is handled correctly. I used the kodi add-on Callbacks for that (even @ onIdle), but this add-on makes Kodi very unstable.
UPDATE: I continued my search and with help of dzVents I am able to bypass the described problem in a script.
I think it is a flaw in the current plugin that wen the GUI status update goes to "sleeping", or "screensaver" (don't know how it is called from Kodi) to conclude that everything is stopped. Of course this is true for Video, but not for Audio. Therefore the Kodi - Status device should keep it's status of 'Audio' in that case + Kodi - Playing should continue it's percentage and not go to 'Off'
I now check during a status change to 'Sleeping' this:
{"jsonrpc":"2.0","method":"XBMC.GetInfoBooleans","params":{"booleans":["Player.HasAudio"]},"id":1}
If yes, I try to update the Kodi - Status device to 'Audio (5), although I am not very successful doing so (I can't do it 'silent', so the correction triggers my script again) and I can't update the playing song, since I don't know how to pass this on to the device.
When the status at the end of playing audio switches to 'On', I run this:
{"jsonrpc":"2.0","method":"XBMC.GetInfoBooleans","params":{"booleans":["System.ScreenSaverActive"]},"id":1}. If yes, I try to update the status of Kodi - Status to 'Sleeping' (9)
The text was updated successfully, but these errors were encountered: