Rule: received command or received update

http://docs.openhab.org/configuration/rules-dsl.html#manipulating-item-states

Edit: sorry, wrong link …

2nd Edit; here we go: