[runmode addon] Support a state option to provide a custom stating state