Allow setting of desired state for Threshold devices #679