Just wondering if anyone has had any trouble with the Plex Activity sensor running on Docker? This is my first time attempting to use it and it doesn’t appear to be working for me, it looks like despite specifying the host in the sensor config, its not accepting it. Posting my configuration and logs below:
configuration.yaml:
sensor: !include_dir_merge_list includes/sensor
includes/sensor/media.yaml:
---
- platform: plex
host: <redacted_ip>
port: 32400
username: !secret ha_plex_user
password: !secret ha_plex_pass
#─► ip a show docker0 | sed -nr 's|.*inet ([^ ]+)/.*|\1|p'
172.17.0.1
#─► journalctl --no-pager -u container-home-assistant.service | grep -i plex
Apr 11 15:34:41 <redacted_host> docker[18652]: 17-04-11 15:34:41 ERROR (Thread-17) [plexapi] http://172.17.0.1:32400: HTTPConnectionPool(host='172.17.0.1', port=32400): Max retries exceeded with url: /?X-Plex-Token=<redacted_token> (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fb66402f080>: Failed to establish a new connection: [Errno 111] Connection refused',))
Apr 11 15:34:41 <redacted_host> docker[18652]: 17-04-11 15:34:41 ERROR (Thread-14) [plexapi] https://172-17-0-1.c1cc57c28ed742e69b40165458d83332.plex.direct:32400: HTTPSConnectionPool(host='172-17-0-1.c1cc57c28ed742e69b40165458d83332.plex.direct', port=32400): Max retries exceeded with url: /?X-Plex-Token=<redacted_token> (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb66402b908>: Failed to establish a new connection: [Errno 111] Connection refused',))
Any help would be much appreciated.