In the upper left corner of each device/effect, you’ll see a check box to toggle it on/off.
Left-clicking the on/off toggle will reveal the necessary pattern command in the status bar at the bottom of the screen.
As with sliders and other common device parameters, you can also simply right-click the on/off toggle to record the necessary command directly into the pattern.