Author Topic: IFTTT? In the Cloud? Can it be Local?  (Read 981 times)

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 602
  • Karma: +3/-3
IFTTT? In the Cloud? Can it be Local?
« on: August 21, 2017, 02:08:12 pm »
It seems that all two threads in the IFTTT Subforum are locked. Why? Is this a forbidden discussion?

I see it says that IFTTT is cloud based. Why cannot the Boolean Logic remain right on the Vera itself and not need to call on the internet to perform logical decisions?
« Last Edit: August 22, 2017, 07:12:06 am by John M. »

Offline kev b

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +5/-0
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #1 on: August 21, 2017, 09:35:00 pm »
IFTTT mostly just allows one to connect many different services together through the internet. IFTTT is just "If this, then that", there is no AND, OR, etc. right now. It looks like some operators may be coming soon natively to Vera. Until then, there's PLEG or lua or combination switches. The threads are probably locked until IFTTT integration is a real thing.

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 602
  • Karma: +3/-3
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #2 on: August 22, 2017, 10:49:14 am »
IFTTT mostly just allows one to connect many different services together through the internet. IFTTT is just "If this, then that", there is no AND, OR, etc. right now. It looks like some operators may be coming soon natively to Vera. Until then, there's PLEG or lua or combination switches. The threads are probably locked until IFTTT integration is a real thing.

I've tried PLEG and had a hard time figuring it out. I need to sit down and learn lua because that seems the best thing for me to do for the most flexibility and for local control. I need to buy the book in my cart on amazon!

Offline Slartibartfast

  • Hero Member
  • *****
  • Posts: 854
  • Karma: +378/-361
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #3 on: August 22, 2017, 12:35:34 pm »
Pleg is not that bad once you sit down and start creating actual events. Just reading the 'manual' makes it look harder than it is. Just start simple for your first few events and get more adventurous later.
Devon UK 240V 50Hz
Now on Homeseer

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +18/-16
    • Worthington Engineering, Inc.
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #4 on: August 22, 2017, 07:49:34 pm »
I think learning PLEG is much easier than learning LUA.
Vera 3, UI7 1.7.947, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs door sensor, Insteon garage control, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual & Multi Switch, Weather, Sys. Mon.

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 602
  • Karma: +3/-3
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #5 on: August 22, 2017, 09:10:26 pm »
Is there a book or good guide on using it? I tried and failed so gave up..

Sent from my SM-G930P using Tapatalk


Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +18/-16
    • Worthington Engineering, Inc.
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #6 on: August 22, 2017, 09:17:46 pm »
This what I downloaded and used in the beginning: http://forum.micasaverde.com/index.php/topic,21603.0.html. But as Slartibartfast mentioned, start out playing with it and it will start to make sense. I have a test PLEG I experiment with working out the logic before putting in production.
Vera 3, UI7 1.7.947, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs door sensor, Insteon garage control, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual & Multi Switch, Weather, Sys. Mon.

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 602
  • Karma: +3/-3
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #7 on: August 23, 2017, 07:52:09 am »
This what I downloaded and used in the beginning: http://forum.micasaverde.com/index.php/topic,21603.0.html. But as Slartibartfast mentioned, start out playing with it and it will start to make sense. I have a test PLEG I experiment with working out the logic before putting in production.

Thanks for the link.

How do you do the test PLEG without it being in production? Do you have multiple controllers?

Offline integlikewhoa

  • Master Member
  • *******
  • Posts: 5585
  • Karma: +152/-368
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #8 on: August 23, 2017, 01:58:11 pm »
How do you do the test PLEG without it being in production? Do you have multiple controllers?

It's vera everyone should have a few backups..... ;D

But you don't need a spare you can test with virtual devices or use actions that are only notifications. PLeg is much easier then LUA and usually the middle ground between full code and stock scenes.

Offline Don Phillips

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +18/-16
    • Worthington Engineering, Inc.
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #9 on: August 24, 2017, 09:15:19 pm »
This what I downloaded and used in the beginning: http://forum.micasaverde.com/index.php/topic,21603.0.html. But as Slartibartfast mentioned, start out playing with it and it will start to make sense. I have a test PLEG I experiment with working out the logic before putting in production.

Thanks for the link.

How do you do the test PLEG without it being in production? Do you have multiple controllers?

The PLEG devices can be disabled.  So when I am experimenting and running into a logic problem that upsets my system (or my wife), I just disable it until I can figure our the error of my ways.
Vera 3, UI7 1.7.947, CT101 t-stat, Everspring motion detector, GE/Jasco switch, Leviton outlet, AeonLabs door sensor, Insteon garage control, Blue Iris, Sricam SP011, iPhone locator, APCUPSD, VeraMate, VeraAlerts, PLEG, House Modes, Countdown Timer, DVR, Virtual & Multi Switch, Weather, Sys. Mon.

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 602
  • Karma: +3/-3
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #10 on: August 28, 2017, 12:01:20 pm »
I guess I'm going to have to try PLEG again. I have so many projects going on and so little time..

Offline kigmatzomat

  • Sr. Member
  • ****
  • Posts: 288
  • Karma: +8/-0
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #11 on: August 28, 2017, 10:16:18 pm »
You used the word Boolean, you got PLEG.

Here's a super short pleg breakdown.

Inputs are the data that gets used in the logic. There are 5 flavors: triggers (true/false), schedules (t/f) and device properties (numeric or string), counters (ordinal/time) and house modes (home/away/etc).   Here is a way to tell when to use a trigger vs property : trigger on temp >85 =True vs property temp =92.

Inputs have a value and timestamps of when they became true/false or updated. So that find when the temp went above 85, use the #trigger. To find out the last time it was below 85 use !#trigger.  To know when the temp was last updated you would use #property.

Conditions are complex true/false and have the Boolean logic.  So if you want the AC to come on at 85, you would just need a "trigger".  If you want a condition to turn off the access after it drops below 85, use "!trigger"

If you want an alert if the temp has been above 85 for more than an hour the condition would be "trigger and (trigger; Now >60:00)"

Conditions can be used to start scenes. This let's you do AND/OR when the UI doesn't.

Offline Sammy2

  • Hero Member
  • *****
  • Posts: 602
  • Karma: +3/-3
Re: IFTTT? In the Cloud? Can it be Local?
« Reply #12 on: August 30, 2017, 09:01:36 pm »
Thanks. I'll look into it more when I get the time but I was having issues getting my logic all connected together last I checked and support or clear concise guides seemed to be lacking so I gave up on it altogether.

Sent from my SM-G930P using Tapatalk