• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
feature request: switching rules
#1
Happy New Year!

Would not it be a helpful feature to turn rules on and off in the gui?

Thus, rules that are not valid all year could be specifically activated and deactivated without having to intervene manually in the config.json.
(Christmas lights, pool lighting, ...)

Maybe with a kind of switch?
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#2
Happy new year!

I have several of such rules and I am using the state of generic_switches as the first condition in the rules themselves.

Example:
Quote:
Code:
IF christmas.state == on  AND (......) THEN ...
 
Reply
#3
So am i.

I also use a "Masterswitch" which disables most of all rules for manually switching.

Just wondering if that all is necessary.
It seems easier to display rules in the gui as a switch with freely definable text and then switch them directly.
50% less text becaus of not needed generic_switches.

But maybe just my opinion.

My config.json contains about 800 lines of text and each line less would help to find things better ;-)
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#4
OK, I understand.
 
Reply
#5
Sounds like a good idea. Just have to find the time to implement it Smile
 
Reply
#6
Unfortunately, lack of time is the problem of half the world.
But I think I will be able to wait for it. Smile
Terrarium:  RPi Model B Rev 2 / pilight 8.1.2 / stretch
Aquarium: RPi Model B Plus Rev 1.2 / pilight 8.0.6 / jessie
 
Reply
#7
Great Idea!

Would make my config much simplier.

I would apreciate this!
 
Reply
#8
Very nice idea, it would work
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [8.1.2] variables in rules -> error terrar 1 413 09-14-2018, 05:28 PM
Last Post: curlymo
  Rules wont work bdb 2 735 08-12-2018, 06:25 PM
Last Post: bdb
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 867 07-31-2018, 06:25 AM
Last Post: curlymo
  Strange behavior of rules currock 4 827 06-28-2018, 05:57 PM
Last Post: currock
  variable "label" not allowed in rules Niek 4 2,471 09-30-2017, 06:39 PM
Last Post: curlymo
  option "all" not sent in rules muecke 5 1,994 07-01-2016, 11:37 AM
Last Post: Niek
  Rules make pilight freeze koos147 5 1,983 05-04-2016, 08:11 PM
Last Post: curlymo
  rules time interval kniazio 8 3,295 03-12-2016, 04:49 PM
Last Post: kniazio
  pilight eventing rules terrar 94 38,978 02-18-2016, 10:21 PM
Last Post: brombeerwilli
  Difference switching device or state droptix 3 2,043 10-29-2015, 05:52 PM
Last Post: terrar

Forum Jump:


Browsing: 1 Guest(s)