home-assistant.io/source/_components/camera.rpi_camera.markdown
2018-10-03 12:42:57 +02:00

2.1 KiB

layout, title, description, date, sidebar, comments, sharing, footer, logo, ha_category, ha_iot_class, ha_release
layout title description date sidebar comments sharing footer logo ha_category ha_iot_class ha_release
page Raspberry Pi Camera Instructions on how to integrate Raspberry Pi within Home Assistant. 2016-04-08 10:00 true false true true raspberry-pi.png DIY Local Polling 0.17

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.

{% linkable_title Configuration %}

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

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

{% configuration %} image_width: description: Set the image width. required: false default: 640 type: integer name: description: Name of the camera. required: false default: Raspberry Pi Camera type: string image_height: description: Set the image height. required: false default: 480 type: integer image_quality: description: Set the image quality (from 0 to 100). required: false default: 7 type: integer image_rotation: description: Set image rotation (0-359). required: false default: 0 type: integer horizontal_flip: description: Set horizontal flip (0 to disable, 1 to enable). required: false default: 0 type: integer vertical_flip: description: Set vertical flip (0 to disable, 1 to enable). required: false default: 0 type: integer timelapse: description: Takes a picture every this many milliseconds (thousands of a second) - the default means one picture a second. required: false default: 1000 type: integer file_path: description: Save the picture in a custom file path. required: false default: A temporary file is used. type: string {% endconfiguration %}

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.