Executes a update of the state variables for the device with the ID InstanceID.
Once the function has been performed, the new values are available in the state variables.