Control rollershutter with multiple if conditions

No there’s no such limit, likely the code you added was bad.

Your curent rule triggers on ‘received command’ which is wrong since a sensor does not send commands (use “received update”).

PS: for a full-fledged shading rule see this.