Securifi Community Forum
Securifi Products => Almond+ => Topic started by: tinkerman on February 13, 2015, 05:44:31 pm
-
i've encountered the following:
1) when creating a rule that spans through the night...i.e. 5pm to 12am, the interface says time range invalid.
2) when i create a rule that says 4am to 5am, the summary page shows 4am to 0am...but when i check /tmp/Rules.xml, it does a proper 60 minute calculation.
finally, can we just edit Rules.xml straight if we know the syntax?
-
We're aware of the rules issues with rules that span over midnight and this will be fixed.
I think what you ran into is simply just a UI bug and we're still going to improve on that UI, but I'll let the software team know.
And yes, you can edit the Rules.xml file, but please be aware that you can break your rules this way. Worst case, delete the file, create a new rule in the web UI and the Rules.xml file will be re-created. That said, if the backend logic doesn't support your rule, it won't work.
-
got it.
another bug i found...i have a Linear dimming switch...i have a rule that turns it on at 5pm and switches it off at 11.59pm...and another rule that turns it on at 4am to 5am. in both instances..the "off" part of the rule does not work. the light stays on until manually set to off.
-
Thanks, I've passed it on to the software team.
-
I have rule to Turn ON Peanut plug between 5 PM to 9 PM if its turned off. and I have one more rule to turn off peanut plug at 9.01 PM if its turned ON. Both of the rules worked only for a day and stop working right after reboot. I observed that reboot lost my time settings and set me to the GMT by default. However I changed the Almond+ time to EST and still rules are not working per time trigger.
-
got it.
another bug i found...i have a Linear dimming switch...i have a rule that turns it on at 5pm and switches it off at 11.59pm...and another rule that turns it on at 4am to 5am. in both instances..the "off" part of the rule does not work. the light stays on until manually set to off.
Tinkerman -- I'm just curious about how you set this up. Your 5pm-11:59pm rule: was it simply "between 5pm and 11:59pm turn the light on"? I'm not sure I'd expect that to turn the light off at 11:59pm. I think the "between" times are more for things like "between 5pm and 11:59pm if the door opens, turn on the light" so that the door opening is ignored the rest of the time. For the effect you want, maybe you could try 2 rules: "at 5pm turn the light on", and "at 11:59pm (or just 12am) turn the light off".
-
you're right! so it looks like i mis-understood the "between" part...interpreting it as duration instead of trigger time window. breaking the rule into separate "off" and "on" rules made it work the way i wanted it.
thanks for taking the time to correct me.
Tinkerman -- I'm just curious about how you set this up. Your 5pm-11:59pm rule: was it simply "between 5pm and 11:59pm turn the light on"? I'm not sure I'd expect that to turn the light off at 11:59pm. I think the "between" times are more for things like "between 5pm and 11:59pm if the door opens, turn on the light" so that the door opening is ignored the rest of the time. For the effect you want, maybe you could try 2 rules: "at 5pm turn the light on", and "at 11:59pm (or just 12am) turn the light off".