Let's say that the model is a device (which could be an air conditioner), an actuator (which is responsible for, for example, lowering the temperature) and a sensor (which only takes the ambient temperature).
The idea would be for the user to define their own rules. For example, if the ambient temperature is greater than 28 °, turn the air on and set it to 24 °.
According to vi, there are NRules. But I can not find a clear example of how to define rules at the time of execution by the user.