Jump to content

How to get UserID


mabooth

Recommended Posts

mabooth

@@chef

I am trying to setup my Homeassistant  and the  Emby Latest Media Plugin and link it to my emby server.

 

Home Assistant component to feed Upcoming Media Card with the latest releases on an Emby instance.
 
as part of the configuration it is asking for my user_id.
 
 
sensor:
- platform: emby_upcoming_media
api_key: YOUR_EMBY_API_KEY
user_id: YOUR_EMBY_USER_ID
host: 192.168.1.4
port: 8096
ssl: True
max: 5
use_backdrop: true
include:
- Movies
- TV Shows

 

I have tried looking in the user.db but that didn't work.

 

The docs state the following.

 

  The id of the user you want to impersonate. Note: this is an id, not a username. Spy on Emby API calls to retrieve yours.

(The Libraries and Medias that get retrieved depend on what that user has access to)

 

not sure how to "Spy"?

 

Regards,

Link to comment
Share on other sites

rbjtech

Go into the Users Admin section, select the user - the UserID will be in the URL in your Browser  ;)

Link to comment
Share on other sites

mabooth

Hi,

 

I think that is server ID not user_id.

http://192.168.0.253:8096/web/index.html#!/settings?serverId=65c

 

Anyway I think I have found it in the embyserver.txt found under User settings  / advanced / logs

2020-05-13 17:55:35.267 Info HttpServer: HTTP Response 200 to 192.168.0.119. Time: 86ms. http://192.168.0.253:8096/emby/Users/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Items/Latest?

xxxx redacted text

 

 

Edited by mabooth
Link to comment
Share on other sites

rbjtech

Hi,

 

I think that is server ID not user_id.

http://192.168.0.253:8096/web/index.html#!/settings?serverId=65c

 

Anyway I think I have found it in the embyserver.txt found under User settings  / advanced / logs

2020-05-13 17:55:35.267 Info HttpServer: HTTP Response 200 to 192.168.0.119. Time: 86ms. http://192.168.0.253:8096/emby/Users/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Items/Latest?

xxxx redacted text

 

No - it clearly states UserID in the URL .. or you can use the logs .. either way works :)

 

..web/index.html#!/useredit.html?userId=

Edited by rbjtech
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...