Update action.php

Initial support for dimming