amcrest camera platform allows you to integrate your Amcrest IP camera in Home Assistant.
There is currently support for the following device types within Home Assistant:
To enable your camera in your installation, add the following to your
# Example configuration.yaml entry amcrest: - host: IP_ADDRESS_CAMERA username: YOUR_USERNAME password: YOUR_PASSWORD
(string)(Required)The IP address or hostname of your camera. If using a hostname, make sure the DNS works as expected.
(string)(Required)The username for accessing your camera.
(string)(Required)The password for accessing your camera.
(string)(Optional)This parameter allows you to override the name of your camera. In the case of multi-camera setups, this is highly recommended as camera id number will be randomly changed at each reboot if a name is not allocated.
Default value: Amcrest Camera
(integer)(Optional)The port that the camera is running on.
Default value: 80
(string)(Optional)This parameter allows you to specify the camera resolution. For a high resolution (1080/720p), specify the option
high. For VGA resolution (640x480p), specify the option
Default value: high
(string)(Optional)The data source for the live stream.
mjpegwill use the camera’s native MJPEG stream, whereas
snapshotwill use the camera’s snapshot API to create a stream from still images. You can also set the
rtspoption to generate the streaming via RTSP protocol.
Default value: snapshot
(string)(Optional)Extra options to pass to ffmpeg, e.g., image quality or video filter options.
(string)(Optional)Defines which authentication method to use only when stream_source is mjpeg. Currently, aiohttp only support basic.
Default value: basic
(integer)(Optional)Defines the update interval of the sensor in seconds.
Default value: 10
(list)(Optional)Conditions to display in the frontend. The following conditions can be monitored:
Default value: None
(list)(Optional)Switches to display in the frontend. The following switches can be monitored:
Default value: None
Note: Amcrest cameras with newer firmware no longer have the ability to
high definition video with MJPEG encoding. You may need to use
resolution stream or the
snapshot stream source instead. If the quality seems
too poor, lower the
Frame Rate (FPS) and max out the
Bit Rate settings in
your camera’s configuration manager. If you defined the stream_source to
mjpeg, make sure your camera supports Basic HTTP authentication.
Newer Amcrest firmware may not work, then rtsp is recommended instead.
Note: If you set the
stream_source option to
make sure to follow the steps mentioned at FFMPEG
documentation to install the
To check if your Amcrest camera is supported/tested, visit the
link from the
You can also use this more advanced configuration example:
# Example configuration.yaml entry amcrest: - host: IP_ADDRESS_CAMERA_1 username: YOUR_USERNAME password: YOUR_PASSWORD sensors: - motion_detector - sdcard switches: - motion_detection - motion_recording # Add second camera - host: IP_ADDRESS_CAMERA_2 username: YOUR_USERNAME password: YOUR_PASSWORD resolution: low stream_source: snapshot sensors: - ptz_preset
Once you have enabled the Amcrest component, you can add cameras to your Home Assistant configuration. add the following to your
# Example configuration.yaml entry camera: - platform: amcrest
To check if your Amcrest camera is supported/tested, visit the supportability matrix link from the
Once you have enabled the Amcrest component, you can add sensors to your Home Assistant configuration. Add the following to your
# Example configuration.yaml entry sensor: - platform: amcrest
amcrest switch platform lets you control settings of Amcrest IP Camera through Home Assistant.
Switches will be configured automatically. Please refer to the component configuration on how to setup.
In previous versions, switch devices in setups with multiple cameras, would not have specific entity ID causing them to change randomly after each Home Assistant restart. The current version adds the name of the camera at the end of the switch entity ID, making it more specific and consistent and causes the name option to be required in a multi-camera system. This behavior matches the sensor behavior of the Amcrest component. Because of this, older automations may require updates to the entity ID.