Jump to content


Photo

Webhooks - Free method to trigger different IFTTT applets using https://sequematic.com/ - Walk through


  • Please log in to reply
4 replies to this topic

#1 JustEric78 OFFLINE  

JustEric78

    Advanced Member

  • Members
  • 128 posts
  • Local time: 10:15 PM
  • LocationDallas, TX.

Posted 25 February 2020 - 02:47 PM

Admins/Mods, If there is a better place for this, please feel free to move it so it helps as many folks as possible. This walk through makes this pretty easy for non-devs to implement the webhooks plugin with a lot of possibilities

 

 

Derek at https://sequematic.com/ has spent a lot of hours building out this functionality for us. If you find it useful, please consider donating to keep his site alive. There are donation buttons in multiple locations directing you to where donations are accepted.

 

 

Hello, this is a tutorial on how to setup the Emby Webhook plugin to trigger applets via IFTTT using the event data that https://sequematic.com/ analyzes to determine which IFTTT applet to activate. Although there are quite a few uses for this, I will focus on turning my theater room lights on and off when I play/pause/resume/stop.

 

This post is making the assumption that you all know how to setup an account, add a service, and create applets at IFTTT.com, as I want to focus on creating the proper sequence at https://sequematic.com/. There are many tutorials around the web on setting up IFTTT although I will touch on the Webhooks service as that took some time to figure out and setup.

 

To start you will want to go to IFTTT and search for the Webhooks service, you will want to add and setup an account, if you do not already have one.

 

5e556546a4075_WebhooksIFTTT.jpg

 

Create the applets that you intend to call via https://sequematic.com/ such as to turn your lights on and off. Make sure that you save the exact name of these applets for later use.

 

5e55656a188be_IFTTTAppletsTurnonTurnoff.

 

Once the applets are created you will want to go back to your Webhooks service and select documentation.


5e55658b61f05_WebhooksDocumentation.jpg

 

On this page, save the user key that is provided at the top of this page for later use. (Mine has been removed, treat these keys like passwords on IFTTT and sequematic.com or someone else may be able to trigger your applets)

 

5e5565dbd2caf_WebhooksIFTTTUserKey.png

 

Next you will want to go to register for an account at https://sequematic.com/

 

5e5566260d5de_sequematicregister.jpg

 

At this point, it will walk you through a brief tutorial and prompt you to create a new service, this is where the magic happens!

 

I would recommend that you first go into your settings at the top of the page and add your previously saved IFTTT Webhooks key. Adding this key will save you time in creating your sequence, as it will already know your identifier.  

 

5e55667cd33f5_SequematicSettingsscreen.j

 

Now you will want to save and select sequences on the menu.

 

Click on “add a step” and give your sequence a meaningful name such as Theater Room Lights.

 

5e5566c4f2fa8_AddStep.jpg

 

Please note that you will want to hit the add step, that will be at the bottom of the page when proceeding to the next trigger in your sequence. You will want to use this method throughout the tutorial as opposed to the + so that it will create the “Else” and “End of Condition” commands.

 

 

See the last screenshot of this post in order to understand what the final sequence should look like for better understanding.

 

 

When you create this first step a URL will be generated that you will add into the Emby Webhooks section and select playback events.

 

5e5567647a6d9_Step1.jpg

5e55677372f52_EmbyWebhooks.jpg

 

Back at https://sequematic.com/ select Custom webhook from the trigger type drop down and schema 3 on the schema drop down.

Save this and select add step

 

For all triggers that you intend to create, you want to use “check variable value” as the step type and {event} with the curly as the variable. I started with the playback.start event.

 

5e5567bc5c2ec_Step2.jpg

 

Save and hit add step from the bottom of the screen.

 

You are now going to create the action when the above webhook is triggered. Match the settings in the below screenshot, keeping in mind that the IFTTT name needs to match your applet’s name on IFTTT exactly.

 

Notice that I have left the key blank, this is why I added it to my user settings, so I did not have to copy it into every action.


5e556867ab530_Step3.jpg

 

You have now created the first event trigger and action command. Continue adding steps until you have everything enabled that you desire, below are all of them that I am using.

 

*Please note, at this time the pause and resume commands do not trigger a hook being sent out via Emby, I have created a separate post on this.

 

5e556a9e56ea4_playbackstoptrigger.jpg5e556ac198eb9_playbackstopaction.jpg

5e556aeb834a9_playbackpausetrigger.jpg5e556af7a56a7_Playbackpauseaction.jpg

5e556b0f4a850_playbackresumetrigger.jpg5e556b180a127_Playbackresumeaction.jpg

 

This is what you end result should look like:

 

5e556b3873403_EndResult.jpg

 

 

 


  • CashMoney and neik like this

#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 153199 posts
  • Local time: 11:15 PM

Posted 25 February 2020 - 03:15 PM

Cool, thanks for providing this !



#3 derekjwhitten OFFLINE  

derekjwhitten

    Newbie

  • Members
  • 1 posts
  • Local time: 03:15 PM

Posted 01 March 2020 - 09:59 PM

Thanks for posting your tutorial here Eric! If anyone has questions about setting this up in Sequematic let me know. Also, if something doesn't work quite they way you need it to post some details here and I'll do my best to update Sequematic to support it.

#4 Headfritz OFFLINE  

Headfritz

    Advanced Member

  • Members
  • 39 posts
  • Local time: 10:15 PM

Posted 10 March 2020 - 10:20 AM

I notice that you stated that  " at this time the pause and resume commands do not trigger a hook being sent out via Emby, I have created a separate post on this. Can you please direct me to that post? 

 

Thanks.



#5 JustEric78 OFFLINE  

JustEric78

    Advanced Member

  • Members
  • 128 posts
  • Local time: 10:15 PM
  • LocationDallas, TX.

Posted 10 March 2020 - 10:28 AM

I notice that you stated that  " at this time the pause and resume commands do not trigger a hook being sent out via Emby, I have created a separate post on this. Can you please direct me to that post? 

 

Thanks.

 

https://emby.media/c...ot-send-a-hook/






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users