hello all,
This is worst for me, I can send order to my player but I can’t get any information like Title, cover, time, etc.
I retrieved my token like explain in the binding wiki.
When I going to online webapp and get a detailed media xml, this is what the url looks like :
https://172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400/status/sessions?X-Plex-Token=tokenhere
I checked directly from my server CLI with a curl and it work, I can see the current playing status of my rasplex.
(curl https://172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400/status/sessions?X-Plex-Token=tokenhere)
So in /conf/services/plex.cfg I set :
host=172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct
port=32400
refresh=5000
token=tokenhere
I also retrieved my Rasplex Device ID and set the items file like the Wiki.
Here is the OpenHAB logs in loop:
[DEBUG] [javax.xml.bind] - Trying to locate org/openhab/binding/plex/internal/communication/jaxb.properties
[DEBUG] [.www.protocol.http.HttpURLConnection] - sun.net.www.MessageHeader@72009f8514 pairs: {GET /clients HTTP/1.1: null}{X-Plex-Provides: controller}{X-Plex-Device: Java™ SE Runtime Environment}{X-Plex
-Client-Identifier: 3e4e9b32-d366-47e2-a378-03044e9d1338}{X-Plex-Platform-Version: 1.8.0_111}{X-Plex-Token: tokenhere}{X-Plex-Device-Name: openHAB}{X-Plex-Product: openHAB}{X-Plex-Version: 1.9.0.201611240211}{X-Plex-Pla
tform: Java}{User-Agent: Java/1.8.0_111}{Host: 172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400}{Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2}{Connection: keep-alive}
Origin: http://172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400
Host: 172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400
[id: 0x74a4b9b0, null :> 172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct/172.19.64.45:32400]
[DEBUG] [.binding.plex.internal.PlexConnector] - [172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct]: Websocket error: Invalid Status Code 401
[DEBUG] [.binding.plex.internal.PlexConnector] - [172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct]: Websocket error: Invalid Status Code 401
[DEBUG] [oviders.netty.NettyAsyncHttpProvider] - Channel Closed: [id: 0x74a4b9b0, null :> 172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct/172.19.64.45:32400] with attachment NettyResponseFuture{cu
rrentRetry=5,
Origin: http://172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400
Host: 172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400
uri=ws://172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct:32400/:/websockets/notifications,
[oviders.netty.NettyAsyncHttpProvider] - Closing Channel [id: 0x74a4b9b0, null :> 172-19-64-45.9ff6bf756548baef87cb7595658.plex.direct/172.19.64.45:32400]
Controlling the rasplex player with play/pause, navigations, etc commands works and on the logs I can see :
[DEBUG] [.binding.plex.internal.PlexConnector] - Calling url http://192.168.0.104:3005/player/playback/play
so it seem it can correctly retrieve the player IP Address.
I also tried to use localhost IP, LAN IP as Plex and OpenHAB is on the same boat with no success.
I test also without the token in plex.cfg but with username and password, and I saw in the logs that the binding correctly retrieved a valid Token, but same error on websocket.
Plex Media Server Version : 1.3.0.3059-6277334 without PlexHome activated. (EDIT : Just tried with PlexHome Activated with same errors)
Openhab Version : 2.0
Plex Binding Version Tested :
org.openhab.binding.plex-1.9.0.b2.jar
org.openhab.binding.plex-1.9.0-SNAPSHOT.jar
org.openhab.binding.plex-1.8.3.jar
At this point I don’t know what to do more …
I hope to see someone with an idea for me 