Jump to content

Webhook setup help


Recommended Posts

Posted (edited)

Posted this in the specific plugin discussion with no response so thought I’d post it here as a general help question just in case more will see it and might be able to help? Mods, feel free to remove if I’m cross posting too much.

 

I was wondering if someone could help me with what I suspect is just a syntax error Im having trying to get this plugin to trigger an IFTTT event?

 

I set up IFTTT webhooks service to trigger a Philips Hue scene. All works fine when I test it on IFTTT. When I copy and past the webhook URL into the URL section of the plugin and start a movie nothing happens.

 

This is the URL that IFTTT is providing me which I copied and pasted into the URL section of the plugin:

 

maker.ifttt.com/trigger/{event}/with/key/xxxxxxxxxxxxxx

 

Ive tried all combinations of filling in that {event} place holder with no luck so far. I assume I replace that with the event name I have set up in IFTTT? In this case its called "Play" so it would look like this?:

 

maker.ifttt.com/trigger/Play/with/key/xxxxxxxxxxxxxx

 

Also in the plugin it indicates putting in the URL and also the port? Ive tried putting in my local port number which did nothing.

 

Any help would be greatly appreciated .

Edited by hstamas
Posted

i think the plugin needs a compatibility update for the latest version of the server.

Posted

Thanks for the info Luke. Sadly it looks like the developer hasn’t been active here since March so my guess is this add on is dead.

 

Any chance of rolling webhook functionality into Emby to facilitate things like this?

 

My desire to control Hue lights with Emby has hit yet another brick wall I’m afraid. ☹️

Posted

 

 

Any chance of rolling webhook functionality into Emby to facilitate things like this?

 

It is planned for the future, yes.

  • 4 weeks later...
Posted

It is planned for the future, yes.

 

Any idea when we will see this future web hook?  The plugin currently has limited data and I don't know the language it's written in.

Posted

What other data would you like to see?

Posted

What other data would you like to see?

Client IP

Any extra tags that are added to a movie.

Posted

Thanks for the feedback.

Posted

Would it be possible to ad the functionality to choose which client triggers the webhook action? Right now if I watch a movie on my iPad in my bedroom the lights turn off in the living room when using webhooks to trigger Hue scenes.

Posted (edited)

Would it be possible to ad the functionality to choose which client triggers the webhook action? Right now if I watch a movie on my iPad in my bedroom the lights turn off in the living room when using webhooks to trigger Hue scenes.

 

It looks like you can use the api to pull back the IP using the deviceId:

http://${embyServerIp}:8096/emby/Sessions?DeviceId=${uuid}&api_key=${apiKey}

So the webhook plugin sends uuid when the event happens.  If you call the api after the webhook data is received you can pull back the ip Address of the device.

Edited by Keo
  • 4 months later...
GTerplan
Posted

It looks like you can use the api to pull back the IP using the deviceId:

http://${embyServerIp}:8096/emby/Sessions?DeviceId=${uuid}&api_key=${apiKey}

So the webhook plugin sends uuid when the event happens.  If you call the api after the webhook data is received you can pull back the ip Address of the device.

 

Thanks for the feedback.

Are there any updates on adding webhooks into Emby?

Posted

Not yet, sorry.

  • 2 weeks later...
pir8radio
Posted

What other data would you like to see?

 

 

Would it be possible to ad the functionality to choose which client triggers the webhook action? Right now if I watch a movie on my iPad in my bedroom the lights turn off in the living room when using webhooks to trigger Hue scenes.

 

 

Yea the ability to only fire off a webhook if the XXXX = XXXX       like DeviceId = 2893hd89s     or   Username = Pir8radio

pir8radio
Posted

@Luke  this feature is probably way out...  But most people would be using this for control of their home automation...  So a cool start could be on the client side, maybe a feature built in the Emby Theater client that lets you set three webhooks (movie play, movie pause, movie stop) or something?   I just want to tie this last step in so when i hit play on a move my lights slowly dim, my walkway hue lights turn to a dim blue so you can still find the bathroom and snacks....  lol

  • Like 1
pir8radio
Posted

@@pir8radio this topic might be of interest to you. The plugin is not finished but a member is actively forking it and makin a workin version available soon.

 

https://emby.media/community/index.php?/topic/44781-plugin-for-controlling-hue-light/?p=743034

 

 

Yea I've seen that one, the problem is that ANY user on ANY device that "plays a movie" will send a webhook...    so If i have 1000 users playing, and pausing movies throughout the day, my home theater lights will be going off like a disco......    but if a simple feature is added to the actual client, only that client playing will send the webhooks...   This also means that my parents could use the webhooks at their house to control their lights without needing to mess with server side settings. 

pir8radio
Posted (edited)

@@Luke ill make an emby theater plugin at this point if someone gets me started.....   And its even possible.... Android TV

 

Nevermind not sure why i was thinking ATV app was theater...

Edited by pir8radio
  • 4 months later...

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...