diff --git a/source/_components/amcrest.markdown b/source/_components/amcrest.markdown index baa4081a986..5457697fbf4 100644 --- a/source/_components/amcrest.markdown +++ b/source/_components/amcrest.markdown @@ -8,39 +8,38 @@ comments: false sharing: true footer: true logo: amcrest.png -ha_category: Hub +ha_category: + - Hub + - Camera + - Sensor + - Switch ha_iot_class: "Local Polling" ha_release: 0.49 +redirect_from: + - /components/camera.amcrest/ + - /components/sensor.amcrest/ + - /components/switch.amcrest/ --- -The `amcrest` camera platform allows you to integrate your -[Amcrest](https://amcrest.com/) IP camera in Home Assistant. +The `amcrest` camera platform allows you to integrate your [Amcrest](https://amcrest.com/) IP camera in Home Assistant. + +There is currently support for the following device types within Home Assistant: + +- [Camera](#camera) +- [Sensor](#sensor) +- [Switch](#switch) ## {% linkable_title Configuration %} -To enable your camera in your installation, -add the following to your `configuration.yaml` file: +To enable your camera in your installation, add the following to your `configuration.yaml` file: ```yaml # Example configuration.yaml entry amcrest: - - host: IP_ADDRESS_CAMERA_1 + - host: IP_ADDRESS_CAMERA username: YOUR_USERNAME password: YOUR_PASSWORD - sensors: - - motion_detector - - sdcard - switches: - - motion_detection - - motion_recording - - host: IP_ADDRESS_CAMERA_2 - username: YOUR_USERNAME - password: YOUR_PASSWORD - resolution: low - stream_source: snapshot - sensors: - - ptz_preset ``` {% configuration %} @@ -147,10 +146,65 @@ Newer Amcrest firmware may not work, then **rtsp** is recommended instead. make sure to follow the steps mentioned at [FFMPEG](/components/ffmpeg/) documentation to install the `ffmpeg`. -Finish its configuration by visiting the -[Amcrest sensor page](/components/sensor.amcrest/) or -[Amcrest camera page](/components/camera.amcrest/). - To check if your Amcrest camera is supported/tested, visit the [supportability matrix](https://github.com/tchellomello/python-amcrest#supportability-matrix) link from the `python-amcrest` project. + +## {% linkable_title Advanced Configuration %} + +You can also use this more advanced configuration example: + +```yaml +# 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 +``` + +## {% linkable_title Camera %} + +Once you have enabled the [Amcrest component](/components/amcrest), you can add cameras to your Home Assistant configuration. add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +camera: + - platform: amcrest +``` + +To check if your Amcrest camera is supported/tested, visit the [supportability matrix](https://github.com/tchellomello/python-amcrest#supportability-matrix) link from the `python-amcrest` project. + +## {% linkable_title Sensor %} + +Once you have enabled the [Amcrest component](/components/amcrest), you can add sensors to your Home Assistant configuration. Add the following to your `configuration.yaml` file: + +```yaml +# Example configuration.yaml entry +sensor: + - platform: amcrest +``` + +## {% linkable_title Switch %} + +The `amcrest` switch platform lets you control settings of [Amcrest IP Camera](#camera) through Home Assistant. + +Switches will be configured automatically. Please refer to the [component](/components/amcrest/) 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. +

\ No newline at end of file diff --git a/source/_components/camera.amcrest.markdown b/source/_components/camera.amcrest.markdown deleted file mode 100644 index a4b5002bd7f..00000000000 --- a/source/_components/camera.amcrest.markdown +++ /dev/null @@ -1,28 +0,0 @@ ---- -layout: page -title: "Amcrest IP Camera" -description: "Instructions on how to integrate Amcrest IP cameras within Home Assistant." -date: 2016-11-24 10:00 -sidebar: true -comments: false -sharing: true -footer: true -logo: amcrest.png -ha_category: Camera -ha_iot_class: "Local Polling" -ha_release: 0.34 ---- - -To get your [Amcrest](https://amcrest.com/) cameras working within Home Assistant, please follow the instructions for the general [Amcrest component](/components/amcrest). - -## {% linkable_title Configuration %} - -Once you have enabled the [Amcrest component](/components/amcrest), add the following to your `configuration.yaml` file: - -```yaml -# Example configuration.yaml entry -camera: - - platform: amcrest -``` - -To check if your Amcrest camera is supported/tested, visit the [supportability matrix](https://github.com/tchellomello/python-amcrest#supportability-matrix) link from the `python-amcrest` project. diff --git a/source/_components/sensor.amcrest.markdown b/source/_components/sensor.amcrest.markdown deleted file mode 100644 index 127021a1e20..00000000000 --- a/source/_components/sensor.amcrest.markdown +++ /dev/null @@ -1,25 +0,0 @@ ---- -layout: page -title: "Amcrest IP Camera" -description: "Instructions on how to integrate Amcrest IP cameras sensors within Home Assistant." -date: 2017-01-13 10:00 -sidebar: true -comments: false -sharing: true -footer: true -logo: amcrest.png -ha_category: Sensor -ha_release: 0.37 -ha_iot_class: "Local Polling" ---- - -To get your [Amcrest](https://amcrest.com/) cameras working within Home Assistant, please follow the instructions for the general [Amcrest component](/components/amcrest). - -Once you have enabled the [Amcrest component](/components/amcrest), add the following to your `configuration.yaml` file: - -```yaml -# Example configuration.yaml entry -sensor: - - platform: amcrest -``` -To check if your Amcrest camera is supported/tested, visit the [supportability matrix](https://github.com/tchellomello/python-amcrest#supportability-matrix) link from the `python-amcrest` project. diff --git a/source/_components/switch.amcrest.markdown b/source/_components/switch.amcrest.markdown deleted file mode 100644 index d494df7b02b..00000000000 --- a/source/_components/switch.amcrest.markdown +++ /dev/null @@ -1,22 +0,0 @@ ---- -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. - -

-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. -