jriker1 16 Posted January 24, 2020 Share Posted January 24, 2020 (edited) Not sure who manages the Emby plugin for Home Assistant but after the latest Home Assistant update it no longer works, just shows: Note I did find the working one but there are multiple of these unavailable entities that weren't there before including The second one I couldn't get this forum to take the image but says emby emby mobile chrome Unavailable Nevermind, these entities weren't here before but seem to be here the latest version. Apparently one functions when Edge is playing a video from Emby, one from Chrome and one from the XBox. Edited January 24, 2020 by jriker1 Link to comment Share on other sites More sharing options...
Luke 37113 Posted January 24, 2020 Share Posted January 24, 2020 @@chef Link to comment Share on other sites More sharing options...
chef 3746 Posted January 24, 2020 Share Posted January 24, 2020 (edited) Where did you find this Home Assistant plugin? Is it on GitHub? I think emby needs a home assistant plugin in it's catalogue, something that can be maintained from one of our developers. I use Vera, however I'd be happy to use the template from vera and the Phillips hue plugins to build a standard Home Assistant plugin and maintain it. Or work with the developer of the plugin mentioned to help maintain or answer questions they might have to have things working from our end. @@jriker1 Edited January 24, 2020 by chef 2 1 Link to comment Share on other sites More sharing options...
chef 3746 Posted January 24, 2020 Share Posted January 24, 2020 Yeah, I've read through their API docs. Should we build this? It would take a day or two to lay it out. Actually I'm just going to make it. If people want it then it'll be available. 5 1 Link to comment Share on other sites More sharing options...
WilhelmStroker 96 Posted January 24, 2020 Share Posted January 24, 2020 (edited) I run Home Assistant so happy to test any plugin and provide feedback.Not seen this particular issue but I'm using conditional cards for my media players so they get removed from the UI if they're not available or idle: card: entity: media_player.emby_roku_sg_roku_streaming_stick type: media-control conditions: - entity: media_player.emby_roku_sg_roku_streaming_stick state_not: unavailable - entity: media_player.emby_roku_sg_roku_streaming_stick state_not: idle type: conditional Edited January 24, 2020 by WilhelmStroker Link to comment Share on other sites More sharing options...
chef 3746 Posted January 24, 2020 Share Posted January 24, 2020 (edited) I run Home Assistant so happy to test any plugin and provide feedback. Not seen this particular issue but I'm using conditional cards for my media players so they get removed from the UI if they're not available or idle: card: entity: media_player.emby_roku_sg_roku_streaming_stick type: media-control conditions: - entity: media_player.emby_roku_sg_roku_streaming_stick state_not: unavailable - entity: media_player.emby_roku_sg_roku_streaming_stick state_not: idle type: conditional I do have a question about discovery in the API @@WilhelmStroker. From reading the docs, we would be using a Bearer token system, which is simple enough, however I'm still a bit unsure where that token gets generated. Typically bearer tokens get created after a user name and password are inputted. I'm just wondering if home assistant has a page where these tokens are created, like the API key page in Emby? There isn't really a discovery endpoint to request a token... That I have seen... Yet. Edit: it looks like we can request what is called a long lived access token. https://developers.home-assistant.io/docs/en/auth_api.html#long-lived-access-token That is helpful. We should at the very least be able to control some aspects of home assistant from emby. Make setup super simple. Although, embys webhooks would be the exact same thing. Edited January 24, 2020 by chef Link to comment Share on other sites More sharing options...
WilhelmStroker 96 Posted January 24, 2020 Share Posted January 24, 2020 yeah some apps and integrations will need a long lived access token. I used to use a third party app to manage my instance that needed one. Link to comment Share on other sites More sharing options...
skank 82 Posted May 1, 2020 Share Posted May 1, 2020 @@chef, do you maintain the current plugin? I got a couple of questions.. I see that current support limits to controlling the client which is playing media stuff. Is that correct? Doest this also means i (i use emby kodi addon) can make automations in home assistants, to turn off lights when client x is playing movie, turn on lights when its paused etc etc? So i dont need an extra addon inside kodi, but do it on HA side? Are there plans in the future to expand functionallity of this plugin/integration? I'm thinking about: - making a card in home assistant to display movie cover which is playing - showing cards in home assistant to display latest movies added to emby collection (for ex 10 covers) , would rock if that lasts on HA, even if emby server is down - showing cards of upcoming new releases to display in HA? Thx for the info Link to comment Share on other sites More sharing options...
skank 82 Posted May 1, 2020 Share Posted May 1, 2020 Mmm i see much mediaplayer.emby but not those i need I use emby for kodi... is that the reason? Arent they included then as mediaplayer? Link to comment Share on other sites More sharing options...
chef 3746 Posted May 1, 2020 Share Posted May 1, 2020 Hmm..it's not me. Is there a source code to look over? Link to comment Share on other sites More sharing options...
seanbuff 841 Posted May 2, 2020 Share Posted May 2, 2020 I'm thinking about: - making a card in home assistant to display movie cover which is playing - showing cards in home assistant to display latest movies added to emby collection (for ex 10 covers) , would rock if that lasts on HA, even if emby server is down - showing cards of upcoming new releases to display in HA? You can pretty much already do these things in HA -If you enable the Emby integration in HA, and use any custom media player card you will get currently playing artwork + controls -Emby Recently Added = https://github.com/gcorgnet/sensor.emby_upcoming_media -Upcoming Media Card = https://community.home-assistant.io/t/lovelace-upcoming-media-card/66562 Link to comment Share on other sites More sharing options...
WilhelmStroker 96 Posted May 2, 2020 Share Posted May 2, 2020 (edited) Mmm i see much mediaplayer.emby but not those i need I use emby for kodi... is that the reason? Arent they included then as mediaplayer? are you using Embycon or the other addin? I'm not using Kodi but use home assistant and just tested Kodi and Embycon. In Home assistant, go to developer tools and then states and you'll find an entry called "media_player.emby_embycon". You can use this in the media card to get controls etc. Edit: with the other emby addin, I'm getting this: media_player.emby_kodi_surface_pro7 Edited May 2, 2020 by WilhelmStroker Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 You can pretty much already do these things in HA -If you enable the Emby integration in HA, and use any custom media player card you will get currently playing artwork + controls -Emby Recently Added = https://github.com/gcorgnet/sensor.emby_upcoming_media -Upcoming Media Card = https://community.home-assistant.io/t/lovelace-upcoming-media-card/66562 Cool! thx Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 are you using Embycon or the other addin? I'm not using Kodi but use home assistant and just tested Kodi and Embycon. In Home assistant, go to developer tools and then states and you'll find an entry called "media_player.emby_embycon". You can use this in the media card to get controls etc. Edit: with the other emby addin, I'm getting this: media_player.emby_kodi_surface_pro7 This one i think https://kodi.wiki/view/Add-on:Emby_for_Kodi Whats the difference anyway? Whats the best one? Will test today if maybe it will be visible once i turn on the client.. but i thought it showed all connected clients from history, and there its not in.. Thatswhy i m doubting if i need the emby or the kodi integration for controlling, and the same to show the latest added movies Link to comment Share on other sites More sharing options...
WilhelmStroker 96 Posted May 2, 2020 Share Posted May 2, 2020 Yes it will only start showing once you play something, it won't use the history. Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 ok thx Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 Ok i see the kodi player now. the enitity is like media-player.emby_kodi_x_x_x_x With the x ip adres however if i want to include this on my lovelace view, i see the ip adres in the view... Since i post everything on github, i dont like that is there a way to hide the ip? or can the emby addon get rid of that ip? Link to comment Share on other sites More sharing options...
seanbuff 841 Posted May 2, 2020 Share Posted May 2, 2020 add "name: xxx" to your configuration.yaml to give it a friendly name, the sensor will then created with that name instead. Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 I'm looking for the id of the emby user... Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 add "name: xxx" to your configuration.yaml to give it a friendly name, the sensor will then created with that name instead. i didnt know, but i found out in HA i just can rename entities Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 I'm looking for the id of the emby user... Mmm cant find it through dashboard? Link to comment Share on other sites More sharing options...
skank 82 Posted May 2, 2020 Share Posted May 2, 2020 Mmm cant find it through dashboard? nevermind found it using swagger Link to comment Share on other sites More sharing options...
skank 82 Posted May 3, 2020 Share Posted May 3, 2020 I made an automation to control my lights when playing media ########################## ## Entertainment Cinema ########################## - alias: "Film cinema afspelen" trigger: - entity_id: media_player.emby_kodi_cinema platform: state from: idle to: playing condition: [] action: - service: light.turn_off data: entity_id: - light.cinema - alias: "Film cinema gepauzeerd" trigger: - entity_id: media_player.emby_kodi_cinema platform: state from: playing to: paused condition: [] action: - service: scene.turn_on entity_id: scene.movie_cinema_dim - alias: "Film cinema gestopt" trigger: - entity_id: media_player.emby_kodi_cinema platform: state from: playing to: idle condition: [] action: - service: scene.turn_on entity_id: scene.movie_cinema_normal Link to comment Share on other sites More sharing options...
skank 82 Posted May 3, 2020 Share Posted May 3, 2020 Think i got it, will add state from paused to playing Link to comment Share on other sites More sharing options...
WilhelmStroker 96 Posted May 3, 2020 Share Posted May 3, 2020 This is the one I used to use for my lights before the Hue plugin was added to Emby: https://www.home-assistant.io/cookbook/dim_lights_when_playing_media/ Still works for my Plex server. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now