IFTTT and Domoticz

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.
Post Reply
whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

IFTTT and Domoticz

Post by whatisk » Monday 19 March 2018 4:09

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.

User avatar
waaren
Posts: 1346
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IFTTT and Domoticz

Post by waaren » Monday 19 March 2018 8:36

Do you have any specific reason to stay on your current domoticz version ?
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: IFTTT and Domoticz

Post by whatisk » Monday 19 March 2018 8:52

waaren wrote:
Monday 19 March 2018 8: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.

User avatar
waaren
Posts: 1346
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: IFTTT and Domoticz

Post by waaren » Monday 19 March 2018 9:02

looking at setup -> settings -> notifications screen in V3.9049
ifftt in domoticz.PNG
ifftt in domoticz.PNG (8.36 KiB) Viewed 3604 times
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: IFTTT and Domoticz

Post by whatisk » Monday 19 March 2018 9:40

waaren wrote:
Monday 19 March 2018 9:02
looking at setup -> settings -> notifications screen in V3.9049
Upgraded to v3.9052 and there now.

Cheers.

GCB2016
Posts: 32
Joined: Thursday 10 November 2016 23:13
Target OS: Raspberry Pi
Domoticz version: V3.9208
Location: Rotterdam
Contact:

Re: IFTTT and Domoticz

Post by GCB2016 » 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.

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.

whatisk
Posts: 25
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

Re: IFTTT and Domoticz

Post by whatisk » Tuesday 17 April 2018 12:57

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.

dswinton
Posts: 4
Joined: Sunday 11 December 2016 14:12
Target OS: -
Domoticz version:
Contact:

Re: IFTTT and Domoticz

Post by dswinton » 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.

BarryT
Posts: 300
Joined: Tuesday 31 March 2015 22:06
Target OS: Linux
Domoticz version: beta
Location: east netherlands
Contact:

Re: IFTTT and Domoticz

Post by BarryT » Thursday 22 November 2018 23:02

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?
6x Raspberry 3
2x VPS Server
2x Active VPN
A lot of scripts, switches and sensors :)

dextm80
Posts: 138
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: IFTTT and Domoticz

Post by dextm80 » Friday 30 November 2018 17: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
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

RapTile
Posts: 64
Joined: Saturday 10 March 2018 3:01
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: IFTTT and Domoticz

Post by RapTile » Friday 30 November 2018 18:03

dextm80 wrote:
Friday 30 November 2018 17: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.

dextm80
Posts: 138
Joined: Tuesday 24 October 2017 18:32
Target OS: Linux
Domoticz version: 4.10159
Contact:

Re: IFTTT and Domoticz

Post by dextm80 » Friday 30 November 2018 23:44

RapTile wrote:
Friday 30 November 2018 18:03
dextm80 wrote:
Friday 30 November 2018 17: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
Domoticz on AsRock j3455-ITX 8gb ram - Aeotec ZWave Usb Stick - RFLink 433Mhz
1x Fibaro Wall Plug
1x Fibaro Motion Sensor
x NeoCoolcam Wall Plug
Netatmo Weather Station - Netatmo Thermostat
Philips Hue Bridge

RapTile
Posts: 64
Joined: Saturday 10 March 2018 3:01
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: IFTTT and Domoticz

Post by RapTile » Monday 03 December 2018 23:36

dextm80 wrote:
Friday 30 November 2018 23:44
RapTile wrote:
Friday 30 November 2018 18:03
dextm80 wrote:
Friday 30 November 2018 17: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 :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests