A wall dimmer that remembers its brightness level even when turned off.
Try this: toggle the lamp on, adjust brightness with Dim / Brighten, and watch how the statechart automatically disables events when guards reach their min/max limits.
Living Room Lamp
Remembers brightness across toggles
💡
Brightness: 80%
Stateoff
Brightness80%
Times Turned On0
Try Triggering an Event
What's happening: The lamp is off. Notice DIM and BRIGHTEN are disabled because those events only exist inside the on state.
Statechart
Click any highlighted transition arrow or internal event in the diagram to trigger it.