Raspberry Pi Camera


The rpi_camera platform allows you to integrate the Raspberry Pi camera into Home Assistant. This component uses the application raspistill to store the image from camera.

To enable this camera in your installation, add the following to your configuration.yaml file:

# Example configuration.yaml entry
camera:
  - platform: rpi_camera

Configuration Variables

image_width

(int)(Optional)Set the image width.

Default value: 640

name

(string)(Optional)Name of the camera.

Default value: Raspberry Pi Camera

image_height

(int)(Optional)Set the image height.

Default value: 480

image_quality

(int)(Optional)Set the image quality (from 0 to 100).

Default value: 7

image_rotation

(int)(Optional)Set image rotation (0-359).

Default value: 0

horizontal_flip

(int)(Optional)Set horizontal flip (0 to disable, 1 to enable).

Default value: 0

vertical_flip

(int)(Optional)Set vertical flip (0 to disable, 1 to enable).

Default value: 0

timelapse

(int)(Optional)Takes a picture every millisecond.

Default value: 1000

file_path

(string)(Optional)Save the picture in a custom file path.

Default value: The camera components folder.

The given file_path must be an existing file because the camera platform setup make a writeable check on it.