<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=IFTTT_integration_with_Domoticz</id>
	<title>IFTTT integration with Domoticz - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.domoticz.com/index.php?action=history&amp;feed=atom&amp;title=IFTTT_integration_with_Domoticz"/>
	<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=IFTTT_integration_with_Domoticz&amp;action=history"/>
	<updated>2026-09-18T23:02:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.domoticz.com/index.php?title=IFTTT_integration_with_Domoticz&amp;diff=16886&amp;oldid=prev</id>
		<title>Walter vl at 12:23, 28 January 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.domoticz.com/index.php?title=IFTTT_integration_with_Domoticz&amp;diff=16886&amp;oldid=prev"/>
		<updated>2022-01-28T12:23:43Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
[[File:Medium.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
IFTTT has a service called webhooks [https://ifttt.com/maker_webhooks] which can be used to send and receive HTTP requests to/from Domoticz. The Webhooks Service allows you to connect IFTTT to your personal DIY projects. With Webhooks, you can connect a Recipe to any device or service that can make or receive a web request (aka webhooks).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: This is feature requires Domoticz stable version 4.9700 or higher.&lt;br /&gt;
&lt;br /&gt;
==Adding a single device to IFTT==&lt;br /&gt;
&lt;br /&gt;
===Send a simple trigger to IFTTT using Blocky===&lt;br /&gt;
&lt;br /&gt;
First you need to add a Applet containing the Webhook in IFTTT.&lt;br /&gt;
&lt;br /&gt;
For example create an event with the name &amp;#039;Doorbell&amp;quot; and let it send an email.&lt;br /&gt;
&lt;br /&gt;
When you are logged in at IFTTT, visit https://ifttt.com/maker_webhooks&lt;br /&gt;
&lt;br /&gt;
Next press the Connect button, and after being connected, click Documentation, and copy the API/Key and paste this in Domoticz under [[Application Settings|Settings]]-&amp;gt;[[Notifications]]-&amp;gt;IFTTT&lt;br /&gt;
(Also enable IFTTT here and Apply Settings.)&lt;br /&gt;
&lt;br /&gt;
Now you can use Blockly to trigger an event. For example when the &amp;#039;Doorbell&amp;#039; = ON send an IFTTT trigger&lt;br /&gt;
&lt;br /&gt;
You will find the &amp;#039;IFTTT trigger&amp;#039; under &amp;quot;Messages&amp;quot; in Blockly&lt;br /&gt;
&lt;br /&gt;
===Send a trigger to IFTTT using dzVents ( &amp;gt;= 2.4.18 )===&lt;br /&gt;
If the Blocky options are to limited u can use dzVents to do the job. With this option you can use various dzVents scripts.&lt;br /&gt;
&lt;br /&gt;
1. Search the key for you Webhooks service and create an applet with the name of the event (f.e. TEST_event) under the IF statement (webhooks) and select a desired THEN statement (f.e. a notification)&lt;br /&gt;
&lt;br /&gt;
3. Create a custom dzVents under event in Domoticz &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;&amp;quot;&amp;gt;&lt;br /&gt;
return {&lt;br /&gt;
   on = {&lt;br /&gt;
    devices = {&amp;#039;TEST&amp;#039;}&lt;br /&gt;
   },&lt;br /&gt;
   &lt;br /&gt;
    execute = function(domoticz, item)&lt;br /&gt;
      if item.active then&lt;br /&gt;
         domoticz.triggerIFTTT(&amp;quot;TEST_event&amp;quot;,&amp;quot;1&amp;quot;,&amp;quot;testString&amp;quot;,item.name)&lt;br /&gt;
      end  &lt;br /&gt;
   end&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Now on change of the domoticz device TEST to &amp;quot;On&amp;quot; there will be sent &amp;quot;1&amp;quot;,&amp;quot;testString&amp;quot;,&amp;quot;TEST&amp;quot; to the event TEST_event in IFTTT&lt;br /&gt;
&lt;br /&gt;
===Receive a web request from IFTTT===&lt;br /&gt;
&lt;br /&gt;
This Action will make a web request from IFTTT to a publicly accessible URL (your Domoticz server).&lt;br /&gt;
If not already, password protect your installation, connect to the internet and open the right ports.&lt;br /&gt;
Because you need the username and password in the link it&amp;#039;s adviced to create a custom user under Settings&amp;gt;More Settings&amp;gt;User settings and make a custom user. f.e. IFTTT as user with the &amp;quot;share&amp;quot;setting enabled.&lt;br /&gt;
Get the username and password in Base64 code format with an online Base64 Encoder. This wil result in &amp;quot;SUZUVFQ=&amp;quot; for the username IFTTT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 Action fields: URL, Method, Content Type, Body&lt;br /&gt;
&lt;br /&gt;
This could be used in conjunction with Domoticz, when using user/password, for example as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre style=&amp;quot;white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;&amp;quot;&amp;gt;&lt;br /&gt;
 THIS part : If triggered by domoticz/ Blockly or dzVents or an SMS is received (for example)&lt;br /&gt;
 THAT part : Add &amp;quot;Maker&amp;quot; and configure it that way :&lt;br /&gt;
 - URL : https://&amp;lt;domoticz public IP or URL&amp;gt;:443/json.htm?username=&amp;lt;user in base64 code&amp;gt;&amp;amp;password=&amp;lt;password in base64 code&amp;gt;&amp;amp;type=command&amp;amp;param=updateuservariable&amp;amp;idx=&amp;lt;idx&amp;gt;&amp;amp;vname=&amp;lt;variableName&amp;gt;&amp;amp;vtype=2&amp;amp;vvalue=&amp;lt;string&amp;gt;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
 - URL : http://&amp;lt;domoticz public IP or URL&amp;gt;:8080/json.htm?username=&amp;lt;user in base64 code&amp;gt;&amp;amp;password=&amp;lt;password in base64 code&amp;gt;&amp;amp;type=command&amp;amp;param=udevice&amp;amp;idx=&amp;lt;id&amp;gt;&amp;amp;nvalue=0&amp;amp;svalue=string&lt;br /&gt;
 - Method : GET&lt;br /&gt;
 - Content-Type : text/plain&lt;br /&gt;
 - Body : Nothing&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Adding multiple devices to IFTTT==&lt;br /&gt;
A PHP script is available that makes it easier to have all of your devices on IFTTT while only requiring you to create two IFTTT applets.&lt;br /&gt;
&lt;br /&gt;
You can read more about it and download here:&lt;br /&gt;
https://github.com/dswinton/domo-ifttt&lt;br /&gt;
&lt;br /&gt;
[[Category:Domoticz]]&lt;br /&gt;
[[Category:Manual]]&lt;br /&gt;
[[Category:Setup]]&lt;/div&gt;</summary>
		<author><name>Walter vl</name></author>
	</entry>
</feed>