build custom device for dimmer