Skip to content

Updated Amcrest component documentation to include support for switches #4862

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions source/_components/amcrest.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ amcrest:
sensors:
- motion_detector
- sdcard
switches:
- motion_detection
- motion_recording

- host: IP_ADDRESS_CAMERA_2
username: YOUR_USERNAME
Expand All @@ -54,6 +57,9 @@ Configuration variables:
- **motion_detector**: Return True/False when a motion is detected
- **sdcard**: Return the SD card usage by reporting the total and used space
- **ptz_preset**: Return the number of PTZ preset positions configured for the given camera
- **switches** array (*Optional*): Switches to display in the frontend. By default, *none* of the switches are shown. The following switches can be monitored.
- **motion_detection**: Enable/disable motion detection setting
- **motion_recording**: Enable/disable recording on motion detection setting

**Note:** Amcrest cameras with newer firmware no longer have the ability to stream `high` definition video with MJPEG encoding. You may need to use `low` 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.

Expand Down
18 changes: 18 additions & 0 deletions source/_components/switch.amcrest.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: page
title: "Amcrest IP Camera Settings"
description: "Instructions on how to integrate settings for Amcrest IP Camera as switches within Home Assistant."
date: 2018-03-08 00:00
sidebar: true
comments: false
sharing: true
footer: true
logo: amcrest.png
ha_category: Switch
ha_release: 0.67
ha_iot_class: "Local Polling"
---

The `amcrest` switch platform lets you control settings of [Amcrest IP Camera](https://home-assistant.io/components/camera.amcrest/) through Home Assistant.

Switches will be configured automatically. Please refer to the [component](/components/amcrest/) configuration on how to setup.