ZWN-RSM2 Create a new device type

I’m hoping someone can look at this code and tell me what I’m doing wrong. I just can’t seem to get constant actions or tile updates.

I have used

and
http://z-wave.ru/podderzhka/skachat/category/82-tkbhome.html?download=200:tz04-manual

as reference points

EDITED : REMOVED