Hello guys!
I’ve been having this problem since forever, I was decided to find a solution but so far I’m not able to. I will let you know all the things I’ve tried after searching through the freaking whole internet :D. My setup of HA and Plex server is under dockers running on unRaid (I know @balloob is also using unRaid so it shouldn’t be the problem?)
On Plex
- Checked there was no PIN added to my account as suggested in here
- White-listed my plex server IP (which is the same as Home Assistant) but you know, just in case.
- I set Plex Settings > Server > Network > Secure Connections to “Disabled” (also tried with Preferred)
- If I go to my plex web admin http://10.0.1.10:32400/clients I get same error as in HA (401 Unauthorized) but not sure if it’s related to something because if I go to http://10.0.1.10:32400 I just get redirected to http://10.0.1.10:32400/web/index.html and into the Plex web admin (so I’m correctly logged in)
On HA & Docker
I tried by using simple configuration like
media_player:
- platform: plex
to more complete config like this
media_player:
- platform: plex
host: 10.0.1.10
port: 32400
username: redacted
password: redacted
server: unPlex
Tried with and without the Plex.conf file. Also with and without the token (taken from plex.tv, not from the local plex web ui which is different – actually I just tried with both just in case)
Found this code to test on Github
$ pip3 install plexapi==2.0.2 --upgrade
$ python3
from plexapi.myplex import MyPlexAccount
MyPlexAccount.signin("user", "password")
Which I tried and it shows no error
root@unBeast:/usr/src/app# python3
Python 3.6.1 (default, May 11 2017, 22:14:44)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from plexapi.myplex import MyPlexAccount
>>> MyPlexAccount.signin(“MYUSER”, “REDACTED”)
<MyPlexAccount:2605179:b’MYUSER’>
I tried to force re-install plexapi just in case by using
pip3 install --ignore-installed plexapi
AND STILL after trying all this I’m getting on HA logs:
2017-05-26 09:37:18 ERROR (<concurrent.futures.thread.ThreadPoolExecutor object at 0x2ac3ee2a2d68>_0) [plexapi] http://10.0.1.10: (401) unauthorized
I have no more freaking idea what to try! Is anyone willing to help maybe? I would really appreciate it!
Thanks!