@Andr said in Need some advice how to fix a rule that throttles sometimes.:
I had understand it that if Constraints isn't true, then the triggers isn't evaluated.
Nope. The triggers are evaluated first. If they are satisfied, then the constraints are examined. So that 180 updates per minute from the Shelly is what's causing the throttling.
You need to reduce the frequency of updates from the source device to the rule. Since you seem to only care about the power over a period of 10 seconds, you could use the time series features of VirtualEntityController and produce, for example, a 10-second moving average. The VEC will gobble update the individual updates from the Shelly and drive virtual sensors that advertise the moving average, per phase. Your rule can then check the average from the virtual sensors (you probably don't need sustained for at that point, because the moving average contains the time component). Depending on how "bouncy" the source power readings are, it may still update a lot, but you can tune/dampen that by playing with the precision (e.g. set precision: -1 to round to nearest 10 watts).