Page 1 of 1
IFTTT and Domoticz
Posted: Monday 19 March 2018 3:09
by whatisk
Hi all,
I am hoping it's possible to setup Domoticz so that when a switch is triggered (for example) it will also run an IFTTT applet. Essentially what I am hoping to do is control a Sonoff wifi switch this way rather than trying to flash alternative firmware via an Adruino. I did find some Github projects that avoid needing to do this, but don't work if the firmware is above a certain version. I thought controlling via IFTTT could be an easier solution.
I have found the wiki page on IFTTT integration with Domoticz, however I can't find the option in Domoticz to add the API key.
The wiki advises to add the API key in Domoticz under Settings->Notifications->IFTTT. However this doesn't appear to exist in the Beta version I am running (couple of versions behind latest). I did find a thread with the same question as above, and they said they ended up using "Custom HTTP/Action".
Is what I am wanting to do possible? And if so is there a guide or is someone able to assist with the how?
Cheers.
Re: IFTTT and Domoticz
Posted: Monday 19 March 2018 7:36
by waaren
Do you have any specific reason to stay on your current domoticz version ?
Re: IFTTT and Domoticz
Posted: Monday 19 March 2018 7:52
by whatisk
waaren wrote: ↑Monday 19 March 2018 7:36
Do you have any specific reason to stay on your current domoticz version ?
Not at all. I'm currently running v3.8890. I believe latest beta is v3.9052 and am happy to upgrade to that if it will help achieve what I am after.
However the wiki entry was last modified Nov 1 2017, so the version I am running is more recent (Feb 7 2018) than the article.
Re: IFTTT and Domoticz
Posted: Monday 19 March 2018 8:02
by waaren
looking at setup -> settings -> notifications screen in V3.9049

- ifftt in domoticz.PNG (8.36 KiB) Viewed 11441 times
Re: IFTTT and Domoticz
Posted: Monday 19 March 2018 8:40
by whatisk
waaren wrote: ↑Monday 19 March 2018 8:02
looking at setup -> settings -> notifications screen in V3.9049
Upgraded to v3.9052 and there now.
Cheers.
Re: IFTTT and Domoticz
Posted: Monday 26 March 2018 21:25
by GCB2016
Hi, I think I made happen what you need. With a couple seconds of lag, but that's fine for a most cases.
First, use the EWeLink app to add the Sonoff to your wifi-network so that you will be able to turn the light (or whatever you have connected to it

) on/off from the app.
Then in IFTTT you have to connect 2 integrations: Webhooks(
https://ifttt.com/maker_webhooks) and EWeLink(
https://ifttt.com/ewelink)
if you go to your webhooks connection and click on Documentation you see a https-url with your secret key. It looks like this:
Code: Select all
https://maker.ifttt.com/trigger/{event}/with/key/dhnasdfasdIOtMfFbV_Khd9dKsdfaMiz5_
Then I created two Applets:
- For the IFT I used the Webhooks integration and added the eventname to 'lamp_on' (this is your {event}-name). For the TT I chose the EWeLink connection ('Turn 1 channel switch on or off') and selected my lamp and told it to set it to 'On'. Create action.
So now you have a url that looks like this: Code: Select all
https://maker.ifttt.com/trigger/lamp_on/with/key/dhnasdfasdIOtMfFbV_Khd9dKsdfaMiz5_
- I created a second Applet with the only difference I called it 'lamp_off' and set it to 'Off'. Which results in the following url
Code: Select all
https://maker.ifttt.com/trigger/lamp_off/with/key/dhnasdfasdIOtMfFbV_Khd9dKsdfaMiz5_
Back to Domoticz:
Create a Dummy Switch (type: On/Off). Go to 'Edit' on the Dummy Switch and paste the 2 urls in the On and Off sections. I assume you know which to put where

.
When switching the Dummy you set it to either On of Off and it will trigger the related url, triggering IFTTT which triggers the EWeLink app and within 3 seconds your lamp switches on/off.
Re: IFTTT and Domoticz
Posted: Tuesday 17 April 2018 12:57
by whatisk
GCB2016 wrote: ↑Monday 26 March 2018 21:25
Hi, I think I made happen what you need. With a couple seconds of lag, but that's fine for a most cases.
Thank you for the detailed reply.
I did manage to get a test running successfully with IFTTT and Domoticz. Still waiting on some stuff to arrive before I do it for real.
Re: IFTTT and Domoticz
Posted: Sunday 12 August 2018 15:04
by dswinton
Hi Guys,
I know this thread is a few months old, but it was the first result on Google when I was looking for a solution to this problem.
I wanted a way to have all of my devices available via my Google Home's, but without having to create a million IFTTT applets to do it.
I made a script that makes it quick and easy, which I've published in GitHub here:
https://github.com/dswinton/domo-ifttt
Hopefully this will help someone else looking for a solution to this problem.
Re: IFTTT and Domoticz
Posted: Thursday 22 November 2018 22:02
by BarryT
dswinton wrote: ↑Sunday 12 August 2018 15:04
Hi Guys,
I know this thread is a few months old, but it was the first result on Google when I was looking for a solution to this problem.
I wanted a way to have all of my devices available via my Google Home's, but without having to create a million IFTTT applets to do it.
I made a script that makes it quick and easy, which I've published in GitHub here:
https://github.com/dswinton/domo-ifttt
Hopefully this will help someone else looking for a solution to this problem.
Can you tell us how to make this work?
The php is correctly done its job, but then?
Re: IFTTT and Domoticz
Posted: Friday 30 November 2018 16:22
by dextm80
hi guys, there are anyone that put a definitive guide how to use ifttt with domoticz for a newbies (for example with a simple lights or google home)?
I looking fot that but found only confused or already created video or text.
Thanks
Re: IFTTT and Domoticz
Posted: Friday 30 November 2018 17:03
by RapTile
dextm80 wrote: ↑Friday 30 November 2018 16:22
hi guys, there are anyone that put a definitive guide how to use ifttt with domoticz for a newbies (for example with a simple lights or google home)?
I looking fot that but found only confused or already created video or text.
Thanks
I use controlicz
In the google home you can add the controlicz service
Controlicz connects to your Domoticz and performs the action for you.
Re: IFTTT and Domoticz
Posted: Friday 30 November 2018 22:44
by dextm80
RapTile wrote: ↑Friday 30 November 2018 17:03
dextm80 wrote: ↑Friday 30 November 2018 16:22
hi guys, there are anyone that put a definitive guide how to use ifttt with domoticz for a newbies (for example with a simple lights or google home)?
I looking fot that but found only confused or already created video or text.
Thanks
I use controlicz
In the google home you can add the controlicz service
Controlicz connects to your Domoticz and performs the action for you.
Hi, thanks for your feedback, but controlicz is a paid service
Re: IFTTT and Domoticz
Posted: Monday 03 December 2018 22:36
by RapTile
dextm80 wrote: ↑Friday 30 November 2018 22:44
RapTile wrote: ↑Friday 30 November 2018 17:03
dextm80 wrote: ↑Friday 30 November 2018 16:22
hi guys, there are anyone that put a definitive guide how to use ifttt with domoticz for a newbies (for example with a simple lights or google home)?
I looking fot that but found only confused or already created video or text.
Thanks
I use controlicz
In the google home you can add the controlicz service
Controlicz connects to your Domoticz and performs the action for you.
Hi, thanks for your feedback, but controlicz is a paid service
True, but it works great

Re: IFTTT and Domoticz
Posted: Wednesday 19 June 2019 17:03
by daniellejorge
Trying to setup my domoticz to google home mini.
Im inside domoticz using v 4.10915 when i enable IFTT and put the API KEY and Aplly setting i get:
Invalid location settings...
Can someone help me?
Re: IFTTT and Domoticz
Posted: Wednesday 19 June 2019 18:32
by waaren
daniellejorge wrote: ↑Wednesday 19 June 2019 17:03
Trying to setup my domoticz to google home mini.
Im inside domoticz using v 4.10915 when i enable IFTT and put the API KEY and Aplly setting i get:
Invalid location settings...
Can someone help me?
It's about this location in the settings

- location.png (48.31 KiB) Viewed 5778 times
Re: IFTTT and Domoticz
Posted: Wednesday 19 June 2019 21:04
by daniellejorge
waaren wrote: ↑Wednesday 19 June 2019 18:32
daniellejorge wrote: ↑Wednesday 19 June 2019 17:03
Trying to setup my domoticz to google home mini.
Im inside domoticz using v 4.10915 when i enable IFTT and put the API KEY and Aplly setting i get:
Invalid location settings...
Can someone help me?
It's about this location in the settings
location.png
Omg, you are a god!!! Thank you very much!!!
