DTH Troubles - GE Motion Dimmer Switch (Model 26933) DTH -M Struck 1.0.4.B

Posting in the authors thread is the best way to get help with custom code, as it will send the author a notification.

I believe this is the relevant post (this is a clickable link):

@MichaelS