added contact and shutter device support, bug fix for device attibute template