We have moved at community.getvera.com

Author Topic: And/or/where conditions for triggers  (Read 965 times)

Offline nullx8

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +9/-3
  • Trouble !
And/or/where conditions for triggers
« on: May 07, 2013, 10:09:19 pm »
This is probably a newbie question, but i haven'be able to figure that out yet.

How can i create a action/trigger based on conditions? (More than one)

Example: i have married the Vehicle Tracking with Vera already via luup
Created a scene to turn on the light in front of the house, and open the garage door if i arrive.
This works perfectly so far.

But i want the lights to turn on only if its night time.

So in short : if (geofence trigger == true && daynight == night) { turn on the lights }

Well somethings like that.
Can anyone 'hint me' in the right direction ?

1 VeraLite, 2 RaspberryPI, Harmony Remote, openLuup, 85 Devices, 34Nodes, 63 Triggers, 49 Scenes

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: And/or/where conditions for triggers
« Reply #1 on: May 07, 2013, 10:14:25 pm »
Search terms: luup.is_night; PLEG; Day Or Night plugin; Combination Switch.

Offline nullx8

  • Hero Member
  • *****
  • Posts: 870
  • Karma: +9/-3
  • Trouble !
Re: And/or/where conditions for triggers
« Reply #2 on: May 10, 2013, 02:44:51 am »
is_night was the right pointer .. thanks again ...

just have somehow the issue the daynight module seems to ignore the sunset offset...
still playing with that

1 VeraLite, 2 RaspberryPI, Harmony Remote, openLuup, 85 Devices, 34Nodes, 63 Triggers, 49 Scenes