You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_components/camera.markdown
+41Lines changed: 41 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,3 +12,44 @@ footer: true
12
12
13
13
The camera component allows you to use IP cameras with Home Assistant. With a little additional work you could use [USB cameras](/blog/2016/06/23/usb-webcams-and-home-assistant/) as well.
14
14
15
+
### {% linkable_title Service %}
16
+
17
+
Once loaded, the `camera` platform will expose services that can be called to perform various actions.
18
+
19
+
Available services: `enable_motion_detection`, `disable_motion_detection`, and `snapshot`.
20
+
21
+
#### {% linkable_title Service `enable_motion_detection` %}
22
+
23
+
Enable the motion detection in a camera.
24
+
25
+
| Service data attribute | Optional | Description |
|`entity_id`| no | Name(s) of entities to create a snopshot from, e.g., `camera.living_room_camera`. |
44
+
|`filename `| no | Template of a file name. Variable is `entity_id`, e.g., {% raw %}`/tmp/snapshot_{{ entity_id }}`{% endraw %}. |
45
+
46
+
### {% linkable_title Test if it works %}
47
+
48
+
A simple way to test if you have set up your `camera` platform correctly, is to use <imgsrc='/images/screenshots/developer-tool-services-icon.png'alt='service developer tool icon'class="no-shadow"height="38" /> **Services** from the **Developer Tools**. Choose your service from the dropdown menu **Service**, enter something like the sample below into the **Service Data** field, and hit **CALL SERVICE**.
0 commit comments