Mitch has his own thread discussing that code, so probably better to take your questions to that.
Notice that you need two separate pieces of code from Mitch. One is a device type and the other is a smartapp. The FAQ you linked to has two sections, one for installing each of these types of code. It looks like you may perhaps have tried to install a device type as a smartapp or vice verse?
Anyway, just something to look at, but we should continue the conversation in the other topic. I’m sure someone there will be able to help you.