forked from jens/Automation
Battery charging type differentiation and other fixes
This commit is contained in:
@ -838,4 +838,17 @@ public class Rule implements Comparable<Rule>
|
||||
|
||||
return amount;
|
||||
}
|
||||
|
||||
public static int getAmountOfActivatedRules()
|
||||
{
|
||||
int amount = 0;
|
||||
|
||||
for(Rule r : Rule.getRuleCollection())
|
||||
{
|
||||
if(r.isRuleActive())
|
||||
amount++;
|
||||
}
|
||||
|
||||
return amount;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user