From 5d2641ff2b0678a7d2928d629835cef32a7adb51 Mon Sep 17 00:00:00 2001 From: Jason Hu Date: Wed, 25 Jul 2018 14:25:47 -0700 Subject: [PATCH] Add camera.turn_on/off service (#5571) * Add camera.turn_on/off service * Trigger the build * Update camera.markdown --- source/_components/camera.markdown | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/source/_components/camera.markdown b/source/_components/camera.markdown index 8d3c12c7e64..499481eb098 100644 --- a/source/_components/camera.markdown +++ b/source/_components/camera.markdown @@ -16,7 +16,23 @@ The camera component allows you to use IP cameras with Home Assistant. With a li Once loaded, the `camera` platform will expose services that can be called to perform various actions. -Available services: `enable_motion_detection`, `disable_motion_detection`, and `snapshot`. +Available services: `turn_on`, `turn_off`, `enable_motion_detection`, `disable_motion_detection`, and `snapshot`. + +#### {% linkable_title Service `turn_on` %} + +Turn on camera. Not all camera models support this service, please consult individual camera page. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | yes | Name(s) of entities to turn on, e.g., `camera.living_room_camera`. | + +#### {% linkable_title Service `turn_off` %} + +Turn off camera. Not all camera models support this service, please consult individual camera page. + +| Service data attribute | Optional | Description | +| ---------------------- | -------- | ----------- | +| `entity_id` | yes | Name(s) of entities to turn off, e.g., `camera.living_room_camera`. | #### {% linkable_title Service `enable_motion_detection` %} @@ -24,7 +40,7 @@ Enable the motion detection in a camera. | Service data attribute | Optional | Description | | ---------------------- | -------- | ----------- | -| `entity_id` | no | Name(s) of entities to enable motion detection, e.g., `camera.living_room_camera`. | +| `entity_id` | yes | Name(s) of entities to enable motion detection, e.g., `camera.living_room_camera`. | #### {% linkable_title Service `disable_motion_detection` %} @@ -32,7 +48,7 @@ Disable the motion detection in a camera. | Service data attribute | Optional | Description | | ---------------------- | -------- | ----------- | -| `entity_id` | no | Name(s) of entities to disable motion detection, e.g., `camera.living_room_camera`. | +| `entity_id` | yes | Name(s) of entities to disable motion detection, e.g., `camera.living_room_camera`. | #### {% linkable_title Service `snapshot` %}