#Issues setting up a restful sensor

1 messages · Page 1 of 1 (latest)

high ferry
#

Hi all, given that I can't manage to set up the Plex Recently Added HACS integration (likely because my Plex instance runs elsewhere), I've started looking into fetching the data through the rest API. I've managed to figure out which urls to check, but I can't get my sensors to show up on HA. I've managed to get as far as this, but there's nothing in the logs, and no sensor shows up. Any guidance would be much appreciated. Thanks!

sensor:
  - platform: rest
    name: "Plex Raw Debug"
    resource: "http://PLEXURL:PORT/library/sections/1/recentlyAdded?X-Plex-Token=TOKEN"
    method: GET
    headers:
      Accept: "application/xml"
      User-Agent: "HomeAssistant/REST"
    verify_ssl: true
    scan_interval: 300
    value_template: "{{ value }}"

Information was omitted for security purposes, this is evidently not the actual url in my local yaml. I can access the url in my browser just fine, and it has the information I need.

heady gorge
#

Are you sure sensor: isn't defined in more than 1 spot in your config, and that you've restarted HA after modfying it?

high ferry