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 this many milliseconds (thousands of a second) - the default means one picture a second.
Default value: 1000
- file_path
-
(string)(Optional)Save the picture in a custom file path.
Default value: A temporary file is used.
The given file_path must be an existing file because the camera platform setup performs a writeable check on it. Also, keep in mind that the path should be whitelisted.