Selecting the state of an object to trigger a scenario