Choose style:

Author Topic: Rule Question - Between Sunset and Sunrise  (Read 178 times)

0 Members and 1 Guest are viewing this topic.

Offline punkorambo

  • Newbie
  • ***
  • Posts: 28
  • Thanks: 0
  • Registered : 24/11/2016
    Years
Rule Question - Between Sunset and Sunrise
« on: December 04, 2017, 08:13:17 pm »
I see that rules can be set between certain times but is there a way to set rules to trigger of something happens between sunset and sunrise?

Offline mparadis

  • Backer
  • *
  • Posts: 1540
  • Thanks: 3
  • Registered : 02/08/2013
    YearsYearsYearsYears
Re: Rule Question - Between Sunset and Sunrise
« Reply #1 on: December 05, 2017, 07:41:25 am »
Under IF in the rules section there is an option for weather. In weather there are options for sunrise and sunset. I believe you may need to use two rules depending on what you are setting up. One for after sunrise and one for before sunset but I am not sure as I don't use those options.

Offline fillibar

  • Backer
  • *
  • Posts: 1850
  • Thanks: 4
  • Registered : 02/08/2013
    YearsYearsYearsYears
Re: Rule Question - Between Sunset and Sunrise
« Reply #2 on: December 05, 2017, 05:03:30 pm »
It is not strictly a "between" like the time is. You could set up two rules (one sunrise-based and one sunset-based) but they will only be triggered ONCE, when sunrise or sunset occurs. The between can be triggered MANY times, as long as any other conditions are met.

I have not had much use for sunrise but I use sunset all the time. I have many decorations (particularly towards Christmas time now) that are  on outlets that turn on at sunset. Then I have them all turn off at 10pm (precisely).

If you wanted to make something LIKE a between for sunrise and sunset... you could have them trigger something else, then test for that item as a trigger. For example:
IF Sunset THEN spare_outlet ON
IF Sunrise THEN spare_outlet OFF

You could then use spare_outlet as a test for that timeframe for other triggers...
IF spare_outlet ON AND back_window OPEN THEN alarm ON
« Last Edit: December 05, 2017, 05:06:00 pm by fillibar »
Almond 3 mesh handling the home.

Offline punkorambo

  • Newbie
  • ***
  • Posts: 28
  • Thanks: 0
  • Registered : 24/11/2016
    Years
Re: Rule Question - Between Sunset and Sunrise
« Reply #3 on: December 05, 2017, 08:58:00 pm »
Thanks for the suggestions, I really need to start thinking outside of the box for some of my rules. Maybe you can help me out. Here is my situation. I have the following rule:

IF system is armed AND sunset THEN sensor on
(If I am not home and it's sunset, then turn on the sensor)

I am trying to figure out a rule like the following:

IF some time after sunset AND system is armed THEN sensor on
(If I leave home sometime after sunset, then turn the sensor on)

Any ideas for that second rule?

Offline fillibar

  • Backer
  • *
  • Posts: 1850
  • Thanks: 4
  • Registered : 02/08/2013
    YearsYearsYearsYears
Re: Rule Question - Between Sunset and Sunrise
« Reply #4 on: December 06, 2017, 08:15:13 am »
Could you turn the sensor on at sunset but just ignore it if home? I assume you have a separate Rule using the sensor... So something like:
IF Sunset THEN sensor ON
IF Sunrise THEN sensor OFF
IF Away AND sensor Triggered THEN alarm ON

That way the sensor is only on from sunset to sunrise and you do not trigger whatever it is doing unless you are away.

The problem here is that I do not know many sensors you can turn on/off. Also, why would you want the sensor on only from sunset to sunrise, instead of always on. That way if you are away during the day, it could still be triggered. Guess I do not understand the overall scenario. The closest I can think of is motion triggered lights or such.
Almond 3 mesh handling the home.

Offline punkorambo

  • Newbie
  • ***
  • Posts: 28
  • Thanks: 0
  • Registered : 24/11/2016
    Years
Re: Rule Question - Between Sunset and Sunrise
« Reply #5 on: December 06, 2017, 04:25:13 pm »
Firstly, I appreciate you hanging in there with me. I probably should have explained my whole scenario from the get go. I have a lamp, connected via a Peanut Plug, that I want to automatically turn on when I am not home between sunrise and sunset. So, I have the following rule set:

IF sunset AND system armed THEN turn lamp on
IF system disarmed AND lamp is on THEN turn lamp off
IF system armed AND sunrise AND lamp is on THEN turn lamp off

I am trying to add one more rule:

IF between sunset and sunrise AND system changes from disarmed to armed THEN turn lamp on

Thanks again!

Offline fillibar

  • Backer
  • *
  • Posts: 1850
  • Thanks: 4
  • Registered : 02/08/2013
    YearsYearsYearsYears
Re: Rule Question - Between Sunset and Sunrise
« Reply #6 on: December 07, 2017, 07:45:31 am »
I get it. There is no super convenient way to do it unfortunately. A between sunset and sunrise would. I used to have pretty much the same thing, but just times (7pm to some time in the early AM). Of course that was also made before weather was an option. :)

Best I could recommend now is an extra device as a boolean, that does not control anything.
IF Sunset THEN ExtraOutlet ON
IF Sunrise THEN ExtraOutlet OFF
IF System Armed AND ExtraOutlet ON THEN Light ON

Not as sure how you want the Off portion because in my own experience it was nice to have the light on after I came in. Then I could just turn it off as I wanted. Otherwise my phone was detected before I actually got in the house and the system Disarmed, leaving me walking into a dark room.
Almond 3 mesh handling the home.

Offline punkorambo

  • Newbie
  • ***
  • Posts: 28
  • Thanks: 0
  • Registered : 24/11/2016
    Years
Re: Rule Question - Between Sunset and Sunrise
« Reply #7 on: December 07, 2017, 08:54:04 pm »
I really appreciate the help!

Offline fillibar

  • Backer
  • *
  • Posts: 1850
  • Thanks: 4
  • Registered : 02/08/2013
    YearsYearsYearsYears
Re: Rule Question - Between Sunset and Sunrise
« Reply #8 on: December 08, 2017, 09:12:47 am »
No problem. Sometimes working out these questions is pretty useful to me also. Gives me ideas and workarounds I may not have thought of before so I can improve on my own setup.
Almond 3 mesh handling the home.

 

Page created in 0.033 seconds with 17 queries.

bottleneck