Automation:Toggle light multiple setting

I need a automation-rule that change the dim/brightness of a light. The trigger should be a remote controll/wall-switch:

  1. =>100%
  2. => 50%
  3. => 5%
  4. => 100%

Anyone know how this could be handled?

Yngve