Power Off command fails

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Power Off command fails

2 years 3 months ago
#2706
Thanks Dave, sorry to hear you're still in the hotel. I tried the new driver but I'm still seeing the active player being set to -1.  I even recreated the device and it still tried to use the -1 playerid.  It's not a huge deal if you can't get to it right now, I can work around it by using the shutdown command directly or by using the GUI to play/pause/stop until you get back.

20/06/2024 15:05:45.05 · DEBUG · Server.doCommand - AV|64~Power~Off from dashboard-fx-l367 
20/06/2024 15:05:45.05 · DEBUG · Kodi.doCommand - Cmd=[64~Power~Off] Client=[dashboard-fx-l367] 
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","method":"Player.Stop","params":{"playerid":-1},"id":"Player.Stop"} 
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"error":{"code":-32602,"data":{"method":"Player.Stop","stack":{"message":"Value between 0 (inclusive) and 2 (inclusive) expected but -1 received","name":"playerid","type":"integer"}},"message":"Invalid params."},"id":"Player.Stop","jsonrpc":"2.0"} 
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","id":"Application.GetProperties","method":"Application.GetProperties","params":{"properties":["volume","muted"]} ,"id":"Application.GetProperties"} 
20/06/2024 15:05:45.05 · DEBUG · Kodi.TX:CoreELEC - {"jsonrpc":"2.0","id":"Player.GetActivePlayers","method":"Player.GetActivePlayers","id":"Player.GetActivePlayers"} 
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"id":"Application.GetProperties","jsonrpc":"2.0","result":{"muted":false,"volume":100}} 
20/06/2024 15:05:45.05 · DEBUG · Kodi.RX:CoreELEC - {"id":"Player.GetActivePlayers","jsonrpc":"2.0","result":[]} 

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Power Off command fails

2 years 2 months ago
#2949
Hi Dave - Wondering if you ever got a chance to go back and look at this?

Please Log in or Create an account to join the conversation.

davep's Avatar
Admin Admin
  • Posts: 371
  • Thanks: 98

Re: Power Off command fails

2 years 2 months ago
#2951
I've added some more logging into the Kodi driver please install that version and test with verbose logging turned on in the Kodi driver.

There is nothing in the driver that will be setting the activeplayerid to -1. If it still is I'll need to look at the event logs.

Please Log in or Create an account to join the conversation.

bowlingbeeg's Avatar Topic Author
User User
  • Posts: 248
  • Thanks: 33

Re: Power Off command fails

2 years 2 months ago
#2968
Thanks Dave! I just tested the new version out and things are working. I'm not seeing the -1 player ID in the traces anymore and all of the commands to play/pause/stop/etc work now.

I did notice that the only thing that the AV|xx~Power~Off command does is issue a Player.Stop command to kodi. I'm not sure if that's what you are intending the power off command to do or not. Personally I shutdown my kodi box when I'm not using it so I'll just use the AV|xx~Shutdown command but thought I'd mention it in case the power off command is supposed to do something else.

Please Log in or Create an account to join the conversation.

Time to create page: 0.266 seconds