Configure a fake power sensor

Use a fake power sensor to test implementing a power sensor component on your robot without any physical hardware.

Configure a fake power sensor to integrate into your robot:

Navigate to the Config tab of your robot’s page in the Viam app. Click on the Components subtab and click Create component in the lower-left corner. Select the type power_sensor, then select the fake model. Name your sensor, and click Create.

Fake power sensor configuration builder
{
  "name": "<your-sensor-name>",
  "type": "power_sensor",
  "model": "fake",
  "attributes": {}
}

No attributes are available for fake power sensors.



Have questions, or want to meet other people working on robots? Join our Community Discord.