Home Assistant Community

Plex activity monitor problems (2019)

#1

Hello, I have been googling (yepp i just said googling :slight_smile: ) around for hours, and cant for the love of the network gods get this to work in any shape or form.
Have any of you tried this https://www.home-assistant.io/components/sensor.plex/ and gotten it to work ?

Kind regards
DigiNorse

0 Likes

#2

nope, added in all sorts and cant seem to find anything to do with my plex.

I have the following in my configuration.yaml file

discovery:

sensor:

PLEX Server Sensor

  • platform: plex
    host: 192.168.1.15
    port: 32400
    name: ‘PLEX’
    username: ‘username’
    password: ‘password’
    server: PLEX
    token: bJk*******8y5EjkyCB
    ssl: false

media_player:

PLEX Media Player

  • platform: plex
    entity_namespace: ‘plex’
    include_non_clients: true
    scan_interval: 5
    show_all_controls: true
    use_custom_entity_ids: true
    use_episode_art: true
    remove_unavailable_clients: true
    client_removal_interval: 600

I have the following in my plex.conf file

{
“192.168.1.15:32400”: {
“ssl”: false,
“token”: “bJko3*********5EjkyCB”,
“verify”: false
}
}

Then after all that nothing shows up along the lines of media_player.plex

Totally flummoxed

0 Likes

#3

Yepp same here, I have tried just about all the different versions I have found in various forums, but still not gotten one to work. So if anyone have gotten this to work I would love to see the config.

0 Likes

#4

configuration.yaml
media_player:

  • platform: plex
    ip_address: 192.168.1.80
    port: 32400
    token: ****
    ssl: false
    entity_namespace: ‘plex’
    include_non_clients: false
    scan_interval: 5
    show_all_controls: false
    remove_unavailable_clients: false
    use_custom_entity_ids: true
    use_episode_art: true

sensors.yaml

  • platform: plex
    host: 192.168.1.80
    port: 32400
    name: Plex Server
    server: Plex RPi
    username: username
    password: password
    token: ****
    ssl: false

all works fine

0 Likes

#5

I suspect the issue is with the token, when you get it from the URL it is a temp token and it can change. Does anyway know a simple way of getting a permanent token ?

0 Likes

#6

I take mine like said in this instruction and it not change - https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

0 Likes

#7

Interesting.

I do not have a sensors.yaml file and when i try to add it to the list

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml

I get an error saing

Error loading /config/configuration.yaml: mapping values are not allowed here
  in "/config/sensors.yaml", line 2, column 11

runnning hassio on raspberry pi 3B+

0 Likes

#8

I’ve been attempting to set this up for a few days now.

Has anyone had any luck?

0 Likes

#9

I’m a newbie, but I added
sensor:

Weather prediction

  • platform: yr
  • platform: ring
  • platform: plex
    host: 192.168.86.71
    username: xxxxxxx
    password: xxxxxxxx
    to my Configuration.yaml and I get this [sensor.plex] 0 unit_of_measurement: Watching friendly_name: Plex and that gives me the card pictured

    Not really what I was hoping for…

Chas

0 Likes

#10

My Plex server monitor works. Well, it tells me how many people are using my plex server and the name of what their watching.

Sensors.yaml

#######################################
# Plex server
#-|---|---|---|---|---|---|---|---|---|
- platform: plex
  name: Plex
  host: 192.168.100.20
  username: !secret plex_username
  password: !secret plex_password

plex.conf

{
    "192.168.100.20:32400": {
        "ssl": false,
        "token": "1gNsiVhV6Wv2gU2S5fFG",
        "verify": false
    }
}

Make sure you use the IP address of the Plex host. Hostname will work but it does not do so reliably.

Now the Plex Media Player… never got it to work consistantly.

0 Likes

#11

Thank you I got it working

0 Likes

#12

Sorry if this has been discussed but struggle to figure this one out. I am trying to get a widget in HADashboard and on HA to show who is watching what on my plex server. On HA it shows how many are watching and if I click it I get what they are watching but would like a dedicated tile on showing this as well one for dashboard. Any help would be appreciated. Tom

0 Likes