bottleneck
Choose style:

Author Topic: How to define advanced rule?  (Read 3724 times)

0 Members and 1 Guest are viewing this topic.

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
How to define advanced rule?
« on: October 10, 2016, 02:10:27 pm »
So I'm trying to figure a way to tell the almond to turn on our outside lights when it is dark but not the whole night.

I live far north, so the time that the sun rises and set varies greatly over the year.
For example in June it rises as early as 03:31, and sets at 22:06. And in December it does not rise until 8:44 and sets already at 14:45.

Basically I would like to set a rule that turns on the light at 06:00 but only if the sun has not risen. And turn off the light when the sun rises or at 08:00 whichever comes first.

The last part I can make with two separate rules, one that turns off when the sun rises, and one at 08:00, but i'm unsure how to do the first.

Offline t.stubbe

  • Backer
  • *
  • Posts: 8
  • Thanks: 0
  • Registered : 11/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to define advanced rule?
« Reply #1 on: October 10, 2016, 03:00:25 pm »
@eldaria, just a noob's penny's worth, but if you do not use the "home" and "away" switch for anything, maybe you can use it to something like this in three rules:

Rule 1 :
IF time is betwwen 03:30 and 05:59 + sunrise THEN mode= home

Rule 2 :
IF time = 06:00 + mode = away THEN turn on lights

Rule 3 :
IF time =00:00 THEN  mode = away

Wish there were a few more software switches like home/away to use in situations like this.

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to define advanced rule?
« Reply #2 on: October 10, 2016, 05:36:25 pm »
Hmm that is a pretty clever way of doing it. Did not think of using the home/away like that.
I do not use it right now, although I do plan to use it in the future so hopefully this will be something that could be added in a future software update. ;-)

Offline d.kiran

  • Backer
  • *
  • Posts: 500
  • Thanks: 0
  • Registered : 11/09/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to define advanced rule?
« Reply #3 on: October 10, 2016, 07:56:26 pm »
Wish there were a few more software switches like home/away to use in situations like this.

This is something that has been requested for multiple times.

Ability to define a virtual device. This could be as simple as a virtual dimmer that can have turn on/off as well 0-100 values. That would solve a lot of use cases.

I doubt we'll ever get that.

Offline eldaria

  • Kickstarter Developer
  • *
  • Posts: 313
  • Thanks: 1
  • Registered : 26/07/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to define advanced rule?
« Reply #4 on: October 11, 2016, 04:33:10 am »
Hmm, This is basically just adding the possibility of Variables.
Long time ago I was able to modify the parameters of an existing device and fool the Almond to think it was something else.
I wonder if it would be possible by the same means to create a virtual device this way and simply store the state of it in a file on the Almond.

Worth looking into I guess, unless of course Securifi has something coming?

Offline adx

  • Backer
  • *
  • Posts: 22
  • Thanks: 0
  • Registered : 15/08/2013
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Re: How to define advanced rule?
« Reply #5 on: December 17, 2016, 07:34:33 am »
I've been wanting the use of variables or virtual switches in the rules. don't think securifi is paying attention to this.

made a post similar to this some time ago. I also made use of the home/away status as a variable.

https://forum.securifi.com/index.php/topic,4304.msg21951.html#msg21951


 

Page created in 0.066 seconds with 21 queries.

bottleneck