Multiple PID Controllers with different rules

Is it possible to have like 3 rules, each rule has a PID Controller trigger, and only one rule can be run at a time?

I haven’t tried something like that since I don’t have a thing to try on yet, but was wondering about it.

I was thinking like having a widget with 3 buttons, when you click a button, only one of the rules with PID Controller is triggered and executed if it meets the condition.

Sure, your widget could be used to enable/disable rules

Enable/disable as if clicking the button?

could you provide a simple example on how to enable/disable a rule from a widget?

You can find some litterature on this topic How to disable a rule from a Blockly script? - #5 by tophee

1 Like

In addition to enabling/disabling the rules, which is a really good approach (I use this approach myself) you could also use rule conditions. That’s the “but only if” part of a managed rule. There you can test to see if the conditions are such (e.g. states of items) that the rule should run or not.

1 Like