Can the device be installed on the dimmer switch?

Yes, but you need to adjust the dimmer switch knob to the maximum, otherwise the device will flash, causing damage to the device to varying degrees.