custom-components/sensor.plex_recently_added

Entity plex_recently_added containing no data

peterge1998 opened this issue · 2 comments

Describe the Bug
The Entity sensor.plex_recently_added shows no data. Just the default.
My config:

    sensor:
    - platform: plex_recently_added
      token: TOKEN
      host: IP
      port: 32400

The Error

2020-04-19 03:19:34 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-19 03:19:36 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonarr_upcoming_media which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-19 03:19:36 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for plex_recently_added which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-04-19 03:19:47 WARNING (MainThread) [homeassistant.components.sensor] Setup of sensor platform plex_recently_added is taking over 10 seconds.
2020-04-19 03:20:28 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:20:59 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:21:29 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:22:00 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:22:31 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:23:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:23:33 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:24:04 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:24:35 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds
2020-04-19 03:25:06 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.plex_recently_added is taking over 10 seconds

Indicate if you followed all steps in the troubleshooting doc
See my states output below. Opening the url works fine. Using Curl on hassio works too.

What data does the sensor display if any?
Developer Tools -> States:

data: >-
  [{"title_default": "$title", "line1_default": "$episode", "line2_default":
  "$release", "line3_default": "$number - $rating - $runtime", "line4_default":
  "$genres", "icon": "mdi:eye-off"}]
friendly_name: Plex Recently Added

What displays when visiting the API URL from the troubleshooting guide?
https://IP:32400/library/recentlyAdded?X-Plex-Token=TOKEN
Opening that site with the same token, ip and port displays the XML. Using curl on that url on hassio displays the xml too.

Does the default Home Assistant Plex component work for you?
Yes. Displays Watching states, player fine.

Home Assistant Version
0.108.6 (latest)

I have the same problem. The sensor is empty while using the API URL with the same parameters return correct XML.

Plugin version: 0.2.9
Plex version: 1.18.8.2527
Home assistant version: 0.106.5

Edit: My problem was network related, hass couldn't reach my plex instance on the same host IP as I could when testing because they were running in docker with different subnets. All good now!

There have been a handful of releases since this was posted. Is this still an issue?