Jump to content

Official emby home assistant integration


skank

Recommended Posts

FancyNerd92
On 13/11/2023 at 05:37, seanbuff said:

Apologies, I'm not following. Your HA logs indicate an issue connecting to Emby via HTTPS, what exactly is preventing you from making HA connect to Emby via the non-SSL URL (i.e. http only) ?

Are both of these services running locally in your own network? If so, there should be no reason why you cannot use internal http URLs.

Replace your rest code with the http address of Emby and restart HA. If you are still not getting counts, look at the HA log again and see what it says this time. Try that and let us know how you go.

As URLs they are work both especialy local. I can see the data on page. BUT https or http neither shows these data which i can see in the page on my HA and im getting this error on sensors. Its like something not leave to work the sensors. But i didn't change nothing on my code on this never..

Link to comment
Share on other sites

seanbuff
3 hours ago, FancyNerd92 said:

As URLs they are work both especialy local. I can see the data on page. BUT https or http neither shows these data which i can see in the page on my HA and im getting this error on sensors. Its like something not leave to work the sensors. But i didn't change nothing on my code on this never..

Hi, we seem to be going around in circles a bit here.

Have you already tried this?

Quote

Replace your rest code with the http address of Emby and restart HA. If you are still not getting counts, look at the HA log again and see what it says this time.

If so, you would have 100% received a different error message this time (as there is no longer any SSL involved) - please do that and post that new error message here.

💡 Remember to also change the port from 8920 to 8096 for plain http

Link to comment
Share on other sites

I'm still looking for a way to know what has been added to the server..

I tried with the emby webhooks (test webhook works, but when the real thing is addded, i dont get anything)

Is there another way?

Link to comment
Share on other sites

seanbuff
4 hours ago, skank said:

I tried with the emby webhooks

with Luke's improved option of handling the webhook payload data - this notification now works better than ever. You should probably look at getting that going again from scratch.

 

4 hours ago, skank said:

Is there another way?

Alternatively, have you tried out any of the other methods in the plug-in catalog? eg. Join, Prowl, Pushbullet, etc

  • Thanks 1
Link to comment
Share on other sites

On 11/26/2023 at 12:12 AM, seanbuff said:

with Luke's improved option of handling the webhook payload data - this notification now works better than ever. You should probably look at getting that going again from scratch.

 

Alternatively, have you tried out any of the other methods in the plug-in catalog? eg. Join, Prowl, Pushbullet, etc

Hi, i've set it up inside sonarr/radarr now. Will see if that goes well.

Didnt look at join, prowl, pushbullet yet.

  • Like 1
Link to comment
Share on other sites

  • 1 month later...
fletcheradam877

Hi all,

I’m new here and am just scraping the surface, but one question I have is whether I can set up HA integrations with Emby on the client side if I don’t have access to the server itself?


Looking for similar actions and triggers (media starts, lights dim) but the source of the trigger would be my media player itself on Nvidia Shield.

Hopefully this isn’t too naive a question, and appreciate tapping the experience you all have.

Thanks!

Link to comment
Share on other sites

Spaceboy
3 hours ago, fletcheradam877 said:

Hi all,

I’m new here and am just scraping the surface, but one question I have is whether I can set up HA integrations with Emby on the client side if I don’t have access to the server itself?


Looking for similar actions and triggers (media starts, lights dim) but the source of the trigger would be my media player itself on Nvidia Shield.

Hopefully this isn’t too naive a question, and appreciate tapping the experience you all have.

Thanks!

yes you can. if you install the android debug bridge integration and setup according to the instructions you can monitor the status of the media player on the shield:

image.thumb.png.a518fa676785ae180744d6213c1a8035.png

  • Like 1
Link to comment
Share on other sites

seanbuff
8 minutes ago, Spaceboy said:

yes you can. if you install the android debug bridge integration and setup according to the instructions you can monitor the status of the media player on the shield

I used to use that but you don't even need the debug bridge for this (which can be fiddly to setup for some)

the 'Google Cast' integration will pick up the Shield as a media player and track its state (which you can trigger automations on), or the 'Android TV Remote' integration will do something similar I believe. Both of these are very easy to install, almost zero config.

  • Like 1
Link to comment
Share on other sites

Spaceboy
16 hours ago, seanbuff said:

I used to use that but you don't even need the debug bridge for this (which can be fiddly to setup for some)

the 'Google Cast' integration will pick up the Shield as a media player and track its state (which you can trigger automations on), or the 'Android TV Remote' integration will do something similar I believe. Both of these are very easy to install, almost zero config.

i looked at the Android TV Remote one which i have configured but it doesnt seem to capture the state change from what i saw, on/off but no detail on media playing. i had the debug bridge installed for frigate notifications so checked that and it did. YMMV

  • Like 1
Link to comment
Share on other sites

seanbuff
7 hours ago, Spaceboy said:

i looked at the Android TV Remote one which i have configured but it doesnt seem to capture the state change from what i saw, on/off but no detail on media playing. i had the debug bridge installed for frigate notifications so checked that and it did. YMMV

Yes, you're right. The Android TV Remote only gives on/off status, it is the 'Google Cast' integration that provides a media player entity that tracks its status (eg. playing, paused, idle, etc)

image.png.ecf066b54e01954f8d4fa5930ed9fe74.png

Link to comment
Share on other sites

  • 4 weeks later...
filski

Here's an improved sensor temple that avoids needing to list out other media players to exclude. 

 

  - sensor:
      - name: 'Emby Watching'
        state: >
          {{ states.media_player
            | selectattr('state', 'eq', 'playing')
            | selectattr ('entity_id', 'match', '.*emby.*')
            | list
            | count
          }}
        unit_of_measurement: " Watching"

 

  • Agree 1
  • Thanks 2
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...