This page last changed on Jan 31, 2014 by freddap123.

Hi guys..

Have you been looking at joining with the IFTTT initiative??
I think it could be really cool to be able to control all the OpenRemote devices via Facebook or Twitter.

just imagine when I write an update on FB saying "Going home now" then my lights in the driveway turn on as well as the lights in the hallway and temperature is raised..

Have you had a look at this??

Regards,
Fredrik

Yes, hurray for the Internet of insecure Things.

Posted by pz1 at Jan 31, 2014 07:39

just imagine when I write an update on FB saying "Going home now" then my lights in the driveway turn on as well as the lights in the hallway and temperature is raised..

I already have this implemented, however without OpenRemote. The device I'm using is WIFE1.0

Posted by aktur at Jan 31, 2014 09:21

Hello Fredrik,

Have looked at it, haven't spent any time on it.

Let us know if you'd be interested in taking a lead on this. As Pieter mentioned, security is a key concern here.

Best regards,

– Juha

Posted by juha at Jan 31, 2014 14:50

Hi Juha,

I am not sure I have to right skills to look at this, not a programmer..

//Fredrik

Posted by freddap123 at Feb 03, 2014 16:42

Hi Juha,

I would be interested in taking a lead on this. The killer application for me is the SMS channel. Through IFTTT it is possible to send SMSs and what it is more important, this service is free of charge! For a place where I live, this is the only possibility to have free SMSs which I am aware off. All other services are paid and not very cheap.

I've already contacted them and asked what is needed for creating a channel. First we must fill the form https://ifttt.com/platform
I would need some help with filling it from the core team, especially about API. About triggers and actions perhaps the community can speak? Personally I think that we should have something like IFTTT facade available through rules. For actions there should be probably a new protocol made which would make it possible to create sensors triggered through IFTTT and therefore available in rules again.

Posted by aktur at Feb 23, 2014 09:52

I assume the triggers would be something like "sensor x == on" or "sensor y > 21.5".
The question is, should the comparison be done by IFTTT or by OpenRemote (rules).

For action we need a way for IFTTT to trigger an OR command. The issue is how does IFTTT connect to our controller?
The user will have to open ports in his firewall which is not perfect.

Posted by mredeker at Feb 24, 2014 08:24

I've made some experience with Brlkin's WeMo and IFTTT and here are some findings.

Triggers: a trigger must be defined on IFTTT platform probably beforehand. Otherwise the web interface on ifttt.com would need to be dynamic and I don't think it is. I think that a generic iftttTrigger() method need to be available in rules taking one string parameter. This way it would be possible to pass this string to THEN on the ifttt.com.

Actions: I think that it is not IFTTT that calls Belkin's switch but rather that Belkin polls ifttt.com web site for an action. This is because the action can take up to 15mins to execute. Probably an action can be accessed through an http call? In any case, I haven't had to open any ports for my WeMo's. On the other hand they are connected with Belkin's cloud so perhaps WeMo's don't talk with the ifttt.com site at all, and all triggers/actions go through Belkin's cloud?

Posted by aktur at Feb 24, 2014 09:07

I just got myself an account and used my Philips hue to play around.
Looks like the hue channel is using the myhue website to communicate with ifttt.
And then the myhue website is communicating with the hue bridge.

This would mean that for openremote we would have to use the proxy service from the openremote cloud to communicate with ifttt and with the controller.
For sensors we could have the controller contact ifttt directly.

Posted by mredeker at Feb 24, 2014 19:26

This would mean that for openremote we would have to use the proxy service from the openremote cloud to communicate with ifttt and with the controller.

Is this something which already exists or need to be built? Can you elaborate more?

For sensors we could have the controller contact ifttt directly.

IMHO, the simplest would be to do it through rules. As all sensors are able to trigger rules it would be enough just to have the generic iftttTrigger(String param) and all types of sensors are done. Only one trigger in IFTTT but with all possibilities. Otherwise we can end up with many triggers like smartthings channel https://ifttt.com/smartthings, which IMHO is a poor design decision. You have many trigger types but yet not able to do everything, like trigger only when device unlocked AND any new motion THEN. Taking into account that Openremote can define very large trigger conditions making one generic trigger on the IFTTT side make sense for me.

Posted by aktur at Feb 24, 2014 20:23

The proxy is already available and beeing tested at the moment. Not rolled out for public. I don't know if Pro users will have this first or what the plan is. Maybe ifttt needs all these triggers because you cannot have a check on ifttt side? I don't know how it works. Could you have a recipe that says trigger OpenRemote and value = sensor1?

Posted by mredeker at Feb 24, 2014 20:30

OK, I have no knowledge about this proxy so I cannot judge if it would be suitable for the IFTTT action definition or not.

Could you have a recipe that says trigger OpenRemote and value = sensor1?

Yes you can, just look at the dropbox channel https://ifttt.com/dropbox where you have a trigger: new file in your public folder and subfolder = trigger field.

Posted by aktur at Feb 24, 2014 20:40

Ok, so we would have trigger with one field and an action with 2 fields (command name and value).
Do you want to try and fill out the form?
Although it looks like other opensource projects already tried and were not successful.

Posted by mredeker at Feb 24, 2014 20:52

Having a universal 'IFTTSensor' at OR side as Trigger sounds like a logical idea. A rule could define how the sensor status is changed at OR side. For the action wouldn't it make sense to Action a universal 'IFFTscene' as well at OR side. This could trigger a macro (or sensor+rule?) in which we define the commands and values. This way we also keep the Action limited.

I guess IFTTT needs some Meta data for both triggers and actions, to give them a logical name in the App. Triggers could be "Sensor", Action could be "Scene". At our end we need to link it to a 'default' sensor and 'default' action. This is to safeguard that IFTTT will always link a working 'trigger' or 'action' at OR side. I wouldn't be suprised if that's one of the requirements IFTTT has.

Posted by pierre kil at Feb 25, 2014 12:16

As for triggers, IFTTT has two components: 'trigger fields' and 'trigger components'. For example a gmail trigger for e-mail from particular address has as 'trigger field' an e-mail address and as 'trigger components' FromAddress, Subject, BodyPlain, etc.
I think that we can define two OR triggers, one with empty 'trigger fields' and one with sensor name as 'trigger field'. As trigger components there will be sensor name, sensor Id, sensor value and sensor type. Sensor id and type would be helpful for applications like remote logging.

For action we would need one action type 'Scene'. For 'action fields' we would have sensor name and sensor value.

Is it OK to put it on the form?

Posted by aktur at Mar 01, 2014 11:37

I would try and put it on the form and see if we get any kind of feedback.

Posted by mredeker at Mar 01, 2014 21:52

I would try and put it on the form and see if we get any kind of feedback.

Have you got any feedback from them? They are deaf to my e-mails and reply only sometimes on Twitter @IFTTT

Posted by aktur at Mar 25, 2014 09:43

Sorry, that was a misunderstanding. I though you would do that
I did not fill out the form yet.

Posted by mredeker at Mar 25, 2014 10:17

Hello,

Any news on IFTTT and OR?

Posted by ckbsmart at Aug 31, 2015 11:32

After playing a bit with IFTTT I don't see any real application of it in Home Automation. It is too slow, unreliable and very limited functionality. Do you know any user case, which would make the effort worthwhile?

Posted by aktur at Sep 01, 2015 15:02

What i was trying to do (and did with Maker from ifttt) is change the house status when i enter an area or exit and area(use ios location). if there is another way i can do this easier i would be happy to do it.

Posted by ckbsmart at Sep 02, 2015 09:13

The smartphone based presence detection is even described in the book.

Posted by aktur at Sep 02, 2015 10:18

What I was trying to achieve is the following: have an area closer to home and when i enter/exit switch between home/away and have a bigger area like on town level and when i exit/enter switch between vacation/home. This cannot be done with MAC filtering or that sort of staff. I know how to get my location with traccar server and i get an email notification. i found in the java class where that command is send but given that i have no ideea how to modify a java class recompile or whatever is needed, i gave up ( ) and i used IFTTT (and yes is not reliable at all).

Posted by ckbsmart at Sep 03, 2015 08:27

On Android I would use Tasker with AutoLocation plugin and define action with UDP Sender to send a packet to Openremote controller. The controller can then use UDP listener protocol to react on these messages.

No idea if the same can be done in iOS.

Posted by aktur at Sep 03, 2015 10:43

I have bought the book and tried to do the MAC filtering staff... step by step . but i cannot integrate it with OR.
For the status part the regex commands are not extracting correctly.
eg. for the part with \w+

 INFO 2015-09-05 20:20:22,196 (HTTP): received message: ÿþo f f 
 
 
INFO 2015-09-05 20:20:22,196 (HTTP): result of regex evaluation: o 

i also tried \w ,+\w, \w , (?s)\w ,etc nothing works

and for sending commands, they do not trigger at all with the option from the book(i am not sure where to check the errors for this). I also tried with making a .bat file run the .ps1 files and so on, and from double click in Windows they work fine but from OR they do not run. (I have another .bat file for pc restart and it works)

Is there something I can do?

Thank you.

Posted by ckbsmart at Sep 05, 2015 18:37
Document generated by Confluence on Jun 05, 2016 09:30