Limit plex errors in system_log

Hi,

I run plex media server on a PC which I turn on only on demand. It never stays on.
I’m spammed inside the system_log with events like those two:

Log Details (ERROR)
Wed Mar 21 2018 07:23:28 GMT+0200 (GTB Standard Time)

Could not connect to plex server at http://10.20.30.1:32400 (HTTPConnectionPool(host=‘10.20.30.1’, port=32400): Max retries exceeded with url: /status/sessions (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x6fbcfbf0>: Failed to establish a new connection: [Errno 113] Host is unreachable’,)))

Log Details (ERROR)
Wed Mar 21 2018 07:23:25 GMT+0200 (GTB Standard Time)

Could not connect to plex server at http://10.20.30.1:32400 (HTTPConnectionPool(host=‘10.20.30.1’, port=32400): Max retries exceeded with url: /clients (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x6fbcf3d0>: Failed to establish a new connection: [Errno 113] Host is unreachable’,)))

Limiting them from logger doesn’t seem to work. It only limits them on the /config/home-assistant.log file.

Thanks!
Andrei

You’ll always get these if home assistant cannot connect. Limiting the log will be pointless because these are errors and they will show up through all log levels. Your only solution is to keep the plex server on, or don’t implement it at all.

Salut,

Daca nu ai cerinte mari (adica transcoding on-the-fly) poti instala PMS pe un Rpi separat si apoi folosesti pe HA un script pentru mount la folderul cu media din retea atunci cand pornesti calculatorul (cu cateva zeci de secunde intarziere). Ca alternativa, poti rula tot timpul si Plex si HA ca masini virtuale (de ex. cu Ubuntu Server) sau cu Docker pe un calculator mai vechi (sau NUC in caz ca vrei sa limitezi consumul de energie). Oricum, nu stiu daca vrei sa folosesti Plex doar pentru senzor sau si pentru casting dar pentru casting nu am reusit sa trimit din HA decat folosind folosind Item ID (componenta oficiala este plina de bug-uri).