After i created the virtual device it became obvious that the data often shows up in the wrong dashboard.
var sensorBuffer = _sensorBuffer.FirstOrDefault(sb => sb.Sensor.SensorTypeID == message.SensorTypeID);
if(sensorBuffer == null)
{
Util.ToastService.NotifyUserOfError($"Device has a new sensor with typeID {message.SensorTypeID}, however adding sensors is not supported yet.");
break;
}
var duration = TimeSpan.FromMilliseconds((double) message.duration/1000);
After i created the virtual device it became obvious that the data often shows up in the wrong dashboard.