Re: Kodi Mediaserver Support
Posted: Thursday 17 May 2018 1:14
00000000000000000000000000
Each time I do "stop" or "pause" there is this error message.2018-07-01 20:46:10.132 Kodi: Starting I/O service thread.
2018-07-01 20:46:10.132 Kodi: (KodiSalon) Handling message: '{"id":1007,"jsonrpc":"2.0","result":{"canhibernate":true,"canshutdown":true,"cansuspend":true}}'.
2018-07-01 20:46:10.132 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"Player.GetActivePlayers","id":1005}'
2018-07-01 20:46:10.133 Kodi: (KodiSalon) Handling message: '{"id":1005,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}'.
2018-07-01 20:46:10.133 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"Player.GetItem","id":1003,"params":{"playerid":1,"properties":["artist","album","year","channel","showtitle","season","episode","title"]}}'
2018-07-01 20:46:10.179 Kodi: (KodiSalon) Handling message: '{"id":1003,"jsonrpc":"2.0","result":{"item":{"album":"","artist":[],"episode":-1,"id":136,"label":"Harry Potter et le Prisonnier d'Azkaban","season":-1,"showtitle":"","title":"Harry Potter et le Prisonnier d'Azkaban","type":"movie","year":2004}}}'.
2018-07-01 20:46:10.179 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'
2018-07-01 20:46:10.181 Kodi: (KodiSalon) Event: 'Unknown'.
2018-07-01 20:46:10.181 Kodi: (KodiSalon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":66.76619720458984375,"speed":1}}'.
2018-07-01 20:46:11.033 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"JSONRPC.Ping","id":1001}'
2018-07-01 20:46:11.034 Kodi: (KodiSalon) Handling message: '{"id":1001,"jsonrpc":"2.0","result":"pong"}'.
2018-07-01 20:46:11.035 Kodi: (KodiSalon) Event: 'On'.
2018-07-01 20:46:11.035 Error: EventSystem: Could not determine switch type for event device KodiSalon
2018-07-01 20:46:41.036 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"JSONRPC.Ping","id":1001}'
Code: Select all
2018-08-06 19:04:41.624 Kodi: (Kodi_Salon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":71.87725830078125,"speed":0}}'.
2018-08-06 19:05:11.625 Kodi: (Kodi_Salon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":71.87725830078125,"speed":0}}'.
2018-08-06 19:05:41.628 Kodi: (Kodi_Salon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":71.87725830078125,"speed":0}}'.
2018-08-06 19:06:11.633 Kodi: (Kodi_Salon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":71.87725830078125,"speed":0}}'.
2018-08-06 19:06:41.633 Kodi: (Kodi_Salon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":71.87725830078125,"speed":0}}'.
Sorry but i dont understand you
I'm sorry for the confusion. Instead of using the built in version, I have the Python plugin version.DAVIZINHO wrote:Sorry but i dont understand you
In my log options in domoticz i only have this options:
- Silent
- Error + forced messages
- Error + minimal execution info
- Error + minimal execution info + generic info
- Debun (everithing)
where you say the options "python only" or "none" ?
jejeje, dont worry!jake wrote: ↑Wednesday 22 August 2018 22:41I'm sorry for the confusion. Instead of using the built in version, I have the Python plugin version.DAVIZINHO wrote:Sorry but i dont understand you
In my log options in domoticz i only have this options:
- Silent
- Error + forced messages
- Error + minimal execution info
- Error + minimal execution info + generic info
- Debun (everithing)
where you say the options "python only" or "none" ?
Estebus wrote: ↑Sunday 01 July 2018 20:52 Dear all,
I need you help about an issue I have since a long time and I don't find solution on it.
I use last version of Domoticz (beta) on a respberryPI, my kodi is en last version 17.6 running on a windows 10 machine.
All remote control option are activated.
it seems my issue is more coming from Domoticz because all json message a properly received and domoticz failed to create the switch.
I never see the switch automatically created and I don't find how to solve it.
Thanks in avance for your help.
here my logs with this error :
Each time I do "stop" or "pause" there is this error message.2018-07-01 20:46:10.132 Kodi: Starting I/O service thread.
2018-07-01 20:46:10.132 Kodi: (KodiSalon) Handling message: '{"id":1007,"jsonrpc":"2.0","result":{"canhibernate":true,"canshutdown":true,"cansuspend":true}}'.
2018-07-01 20:46:10.132 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"Player.GetActivePlayers","id":1005}'
2018-07-01 20:46:10.133 Kodi: (KodiSalon) Handling message: '{"id":1005,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}'.
2018-07-01 20:46:10.133 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"Player.GetItem","id":1003,"params":{"playerid":1,"properties":["artist","album","year","channel","showtitle","season","episode","title"]}}'
2018-07-01 20:46:10.179 Kodi: (KodiSalon) Handling message: '{"id":1003,"jsonrpc":"2.0","result":{"item":{"album":"","artist":[],"episode":-1,"id":136,"label":"Harry Potter et le Prisonnier d'Azkaban","season":-1,"showtitle":"","title":"Harry Potter et le Prisonnier d'Azkaban","type":"movie","year":2004}}}'.
2018-07-01 20:46:10.179 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'
2018-07-01 20:46:10.181 Kodi: (KodiSalon) Event: 'Unknown'.
2018-07-01 20:46:10.181 Kodi: (KodiSalon) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":66.76619720458984375,"speed":1}}'.
2018-07-01 20:46:11.033 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"JSONRPC.Ping","id":1001}'
2018-07-01 20:46:11.034 Kodi: (KodiSalon) Handling message: '{"id":1001,"jsonrpc":"2.0","result":"pong"}'.
2018-07-01 20:46:11.035 Kodi: (KodiSalon) Event: 'On'.
2018-07-01 20:46:11.035 Error: EventSystem: Could not determine switch type for event device KodiSalon
2018-07-01 20:46:41.036 Kodi: (KodiSalon) Sending data: '{"jsonrpc":"2.0","method":"JSONRPC.Ping","id":1001}'
I've seen the event Video, the first "Pause", but not the resume and the second "paused" !2019-02-12 00:40:15.289 Kodi: (Kodi) Sending data: '{"jsonrpc":"2.0","method":"JSONRPC.Ping","id":1001}'
2019-02-12 00:40:15.290 Kodi: (Kodi) Handling message: '{"id":1001,"jsonrpc":"2.0","result":"pong"}'.
2019-02-12 00:40:20.793 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Playlist.OnClear","params":{"data":{"playlistid":1},"sender":"xbmc"}}'.
2019-02-12 00:40:20.793 Kodi: (Kodi) Message warning, unhandled method: 'Playlist.OnClear'
2019-02-12 00:40:20.793 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"id":196,"type":"movie"},"playlistid":1,"position":0},"sender":"xbmc"}}'.
2019-02-12 00:40:20.794 Kodi: (Kodi) Message warning, unhandled method: 'Playlist.OnAdd'
2019-02-12 00:40:20.843 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:20.844 Kodi: (Kodi) Sending data: '{"jsonrpc":"2.0","method":"Player.GetItem","id":1003,"params":{"playerid":1,"properties":["artist","album","year","channel","showtitle","season","episode","title"]}}'
2019-02-12 00:40:20.877 Kodi: (Kodi) Handling message: '{"id":1003,"jsonrpc":"2.0","result":{"item":{"album":"","artist":[],"episode":-1,"id":196,"label":"X-Men : L'Affrontement final","season":-1,"showtitle":"","title":"X-Men : L'Affrontement final","type":"movie","year":2006}}}'.
2019-02-12 00:40:20.877 Kodi: (Kodi) Sending data: '{"jsonrpc":"2.0","method":"Player.GetProperties","id":1002,"params":{"playerid":1,"properties":["live","percentage","speed"]}}'
2019-02-12 00:40:20.879 Kodi: (Kodi) Event: 'Video - X-Men : L'Affrontement final (2006)'.
2019-02-12 00:40:20.885 Kodi: (Kodi) Handling message: '{"id":1002,"jsonrpc":"2.0","result":{"live":false,"percentage":0.0,"speed":1}}'.
2019-02-12 00:40:20.891 EventSystem: Event triggered: Kodi_2
2019-02-12 00:40:20.898 OpenZWave: Domoticz has send a Switch command!, Level: 0, NodeID: 7 (0x07)
2019-02-12 00:40:20.903 (ZWAVE) Usage (Unknown)
2019-02-12 00:40:20.905 (ZWAVE) General/kWh (kWh Meter)
2019-02-12 00:40:20.920 (ZWAVE) Light/Switch (Lumière HC)
2019-02-12 00:40:21.140 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnAVChange","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:21.140 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnAVChange'
2019-02-12 00:40:21.237 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnAVChange","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:21.237 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnAVChange'
2019-02-12 00:40:21.237 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnAVStart","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:21.238 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnAVStart'
2019-02-12 00:40:21.254 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnAVChange","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:21.255 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnAVChange'
2019-02-12 00:40:21.492 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnAVChange","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:21.492 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnAVChange'
2019-02-12 00:40:21.496 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnAVChange","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:21.496 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnAVChange'
2019-02-12 00:40:26.898 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}'.
2019-02-12 00:40:26.900 Kodi: (Kodi) Event: 'Paused - X-Men : L'Affrontement final (2006)'.
2019-02-12 00:40:26.913 EventSystem: Event triggered: Kodi_3
2019-02-12 00:40:26.933 OpenZWave: Domoticz has send a Switch command!, Level: 5, NodeID: 7 (0x07)
2019-02-12 00:40:26.946 (ZWAVE) Light/Switch (Lumière HC)
2019-02-12 00:40:30.554 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnResume","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:40:30.555 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnResume'
2019-02-12 00:40:36.593 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}'
2019-02-12 00:51:30.313 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}'.
2019-02-12 00:51:34.200 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnResume","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}'.
2019-02-12 00:51:34.200 Kodi: (Kodi) Message warning, unhandled method: 'Player.OnResume'
2019-02-12 00:51:39.771 Kodi: (Kodi) Handling message: '{"jsonrpc":"2.0","method":"Player.OnPause","params":{"data":{"item":{"id":196,"type":"movie"},"player":{"playerid":1,"speed":0}},"sender":"xbmc"}}'.
so I will add a fix to make OnResume act like OnPlay which would be backwards compatible and should restore functionality. I can't test it though because I run an old Kodi version and don't want to upgrade. Will be in the next beta.9.2.0
Breaking change (major verion left at 9 as during alpha)
Add player OnResume, OnAVChange and OnAVStart notifications. Be aware that OnPlay will only be called at start of playback now and not when resuming playback.
8th April 2018 13726 (PR)
message will disappear from the log (and hopefully the Kodi device state in Domoticz will switch back to 'Video').Kodi: (Kodi) Message warning, unhandled method: 'Player.OnResume'