-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plex sensor #2210
Plex sensor #2210
Conversation
I figured out how to rebase! woo me 😄 |
Could you please use the plexapi library instead of adding a new dependency for this feature? |
from datetime import timedelta | ||
import voluptuous as vol | ||
|
||
from homeassistant.const import CONF_NAME, CONF_PLATFORM, CONF_USERNAME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from homeassistant.const import (CONF_NAME, CONF_PLATFORM, CONF_USERNAME,
CONF_PASSWORD, CONF_HOST, CONF_PORT)
I tried to get the plexapi working but I could not ever get it to find my Plex server on my LAN, even if I give it the IP and the auth token. I could use it to login to MyPlex and go that route, but then you have to provide your server name which is pretty lame. If somebody can show me how to get an auth token and get this information with plexapi I'm all ears. |
Is it something like this you need? Finding-your-account-token-X-Plex-Token |
85cc689
to
fbc8cfd
Compare
I finally got plexapi working and was able to figure out how to do this using it. 😀 |
bca5412
to
5e055c8
Compare
add option to name in config fix const import use plexapi add myplex support for remote access use first server if server not specified use list comprehension use dictionary comprehension
Looks really good to me, |
Somehow this PR fell off the radar. Looks nice! 🐬 @Bart274 will be happy as he always wanted this feature ;-) |
@balloob indeed, I'm going to use this asap :) Op 15 jun. 2016 om 08:06 heeft Paulus Schoutsen <[email protected]mailto:[email protected]> het volgende geschreven: Somehow this PR fell off the radar. Looks nice! ? @Bart274https://github.com/Bart274 will be happy as he always wanted this feature ;-) You are receiving this because you were mentioned. |
Description:
Initial support for plex sensor to see who is watching what.
This pull request acts like a basic version of PlexPy. It will create a sensor that shows the # of currently watching users as the state. If you click the sensor for more detail it will show you who is watching what.
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#526
Example entry for
configuration.yaml
(if applicable):Checklist:
If user exposed functionality or configuration variables are added/changed:
If code communicates with devices:
tox
run successfully. Your PR cannot be merged unless tests passREQUIREMENTS
variable (example).requirements_all.txt
by runningscript/gen_requirements_all.py
..coveragerc
.