Forked version of https://github.com/smartthings-users/device-type.nest/blob/master/nest.devicetype.groovy