fake

You can use the fake movement sensor model to test movement sensor code without connecting to any actual hardware.

The fake model supports all movement sensor methods: Accuracy, AngularVelocity, CompassHeading, LinearAcceleration, LinearVelocity, Orientation, Position, Properties, and Readings. Note that this model does not get any actual readings, so it supports these methods by returning placeholder data.

{
  "components": [
    {
      "name": <sensor_name>,
      "model": "fake",
      "api": "rdk:component:movement_sensor",
      "attributes": {},
      "depends_on": []
    }
  ]
}
{
  "components": [
    {
      "name": "myFakeSensor",
      "model": "fake",
      "api": "rdk:component:movement_sensor"
    }
  ]
}