Skip to content

Commit 39f7c62

Browse files
authored
Minimizing of the configuration sample (home-assistant#1010)
1 parent a664249 commit 39f7c62

9 files changed

+24
-44
lines changed

source/_components/camera.ffmpeg.markdown

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ To enable your FFmpeg feed in your installation, add the following to your `conf
2222
camera:
2323
- platform: ffmpeg
2424
input: FFMPEG_SUPPORTED_INPUT
25-
name: FFmpeg
26-
extra_arguments: -q:v 2
2725
```
2826
2927
Configuration variables:

source/_components/camera.foscam.markdown

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ To enable your Foscam IP camera in your installation, add the following to your
2121
camera:
2222
platform: foscam
2323
ip: IP_ADDRESS
24-
name: Door Camera
25-
port: 88
2624
username: USERNAME
2725
password: PASSWORD
2826
```
@@ -31,9 +29,9 @@ Configuration variables:
3129
3230
- **ip** (*Required*): The IP address your camera.
3331
- **port** (*Optional*): The port that the camera is running on. The default is 88.
34-
- **name** (*Optional*): This parameter allows you to override the name of your camera.
3532
- **username** (*Required*): The username for accessing your camera.
3633
- **password** (*Required*): The password for accessing your camera.
34+
- **name** (*Optional*): This parameter allows you to override the name of your camera.
3735
3836
<p class='note'>
3937
There seems to be some issues within Foscam with lengthy passwords and passwords containing certain symbols. Be sure to check your camera's documentation.

source/_components/camera.generic.markdown

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,13 @@ To enable this camera in your installation, add the following to your `configura
2323
```yaml
2424
# Example configuration.yaml entry
2525
camera:
26-
platform: generic
27-
still_image_url: http://194.218.96.92/jpg/image.jpg
28-
name: my sample camera
29-
username: USERNAME
30-
password: PASSWORD
31-
authentication: basic
32-
limit_refetch_to_url_change: true
26+
- platform: generic
27+
still_image_url: http://194.218.96.92/jpg/image.jpg
3328
```
3429
3530
Configuration variables:
3631
37-
- **still_image_url** (*Required*): The URL your camera serves the image on, eg. http://192.168.1.21:2112/. Can be a [template].
32+
- **still_image_url** (*Required*): The URL your camera serves the image on, eg. http://192.168.1.21:2112/. Can be a [template](/topics/templating/).
3833
- **name** (*Optional*): This parameter allows you to override the name of your camera.
3934
- **username** (*Optional*): The username for accessing your camera.
4035
- **password** (*Optional*): The password for accessing your camera.
@@ -48,4 +43,3 @@ Configuration variables:
4843
</a>
4944
</p>
5045

51-
[template]: /topics/templating/

source/_components/camera.local_file.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,14 @@ To enable this camera in your installation, add the following to your `configura
2222
```yaml
2323
# Example configuration.yaml entry
2424
camera:
25-
platform: local_file
26-
name: Local File
27-
file_path: /tmp/image.jpg
25+
- platform: local_file
26+
file_path: /tmp/image.jpg
2827
```
2928
3029
Configuration variables:
3130
32-
- **name** (*Optional*): Name of the camera
3331
- **file_path** (*Required*): File to serve as the camera.
32+
- **name** (*Optional*): Name of the camera
3433
3534
<p class='note'>
3635
The given `file_path` must be an existing file because the camera platform setup make a readable check on it.

source/_components/camera.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ footer: true
1010
---
1111

1212

13-
The camera component allows you to use IP cameras with Home Assistant.
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.
1414

source/_components/camera.mjpeg.markdown

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,8 @@ To enable this camera in your installation, add the following to your `configura
2222
```yaml
2323
# Example configuration.yaml entry
2424
camera:
25-
platform: mjpeg
26-
mjpeg_url: http://192.168.1.92/mjpeg
27-
name: my sample camera
28-
username: USERNAME
29-
password: PASSWORD
30-
authentication: basic
25+
- platform: mjpeg
26+
mjpeg_url: http://192.168.1.92/mjpeg
3127
```
3228
3329
Configuration variables:

source/_components/camera.netatmo.markdown

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ To enable the Netatmo camera, you first have to set up [netatmo](/components/net
2121
# Example configuration.yaml entry
2222
camera:
2323
platform: netatmo
24-
home: home_name
25-
cameras:
26-
- camera_name1
27-
- camera_name2
2824
```
2925
3026
Configuration variables:
@@ -33,5 +29,14 @@ Configuration variables:
3329
- **cameras** array (*Optional*): Cameras to use. Multiple enties allowed.
3430
- **camera_name**: Name of the camera to display.
3531
36-
If **home** and **cameras** is not provided, all cameras will be displayed.
32+
If **home** and **cameras** are not provided, all cameras will be displayed. For more control over your cameras check the configuration sample below.
3733
34+
```yaml
35+
# Example configuration.yaml entry
36+
camera:
37+
platform: netatmo
38+
home: home_name
39+
cameras:
40+
- camera_name1
41+
- camera_name2
42+
```

source/_components/camera.rpi_camera.markdown

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,7 @@ To enable this camera in your installation, add the following to your `configura
2121
```yaml
2222
# Example configuration.yaml entry
2323
camera:
24-
platform: rpi_camera
25-
name: Raspberry Pi Camera
26-
image_width: 640
27-
image_height: 480
28-
image_quality: 7
29-
image_rotation: 0
30-
timelapse: 1000
31-
horizontal_flip: 0
32-
vertical_flip: 0
33-
file_path: /tmp/image.jpg
24+
- platform: rpi_camera
3425
```
3526
3627
Configuration variables:

source/_components/camera.uvc.markdown

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@ To enable a UVC camera in your installation, add the following to your `configur
2020
```yaml
2121
# Example configuration.yaml entry
2222
camera:
23-
platform: uvc
24-
nvr: IP_ADDRESS
25-
port: PORT
26-
key: APIKEY
23+
- platform: uvc
24+
nvr: IP_ADDRESS
25+
key: API_KEY
2726
```
2827
2928
Configuration variables:

0 commit comments

Comments
 (0)