update generic ip cam docs for stream component (#8956)

This commit is contained in:
Jason Hunter 2019-03-17 04:39:52 -04:00 committed by Fabian Affolter
parent 8fbaca1ba1
commit 3eda03672f

View File

@ -33,6 +33,10 @@ still_image_url:
description: "The URL your camera serves the image on, e.g., http://192.168.1.21:2112/. Can be a [template](/topics/templating/)."
required: true
type: string
stream_source:
description: "The URL your camera serves the live stream on, e.g., rtsp://192.168.1.21:554/."
required: false
type: string
name:
description: This parameter allows you to override the name of your camera.
required: false
@ -125,3 +129,15 @@ camera:
still_image_url: http://example.org/your_image.png
verify_ssl: false
```
### {% linkable_title Live stream %}
To access a camera that has both a snapshot and live stream URL, utilizing the [stream](/components/stream/) component.
```yaml
camera:
- platform: generic
name: Streaming Enabled
still_image_url: http://194.218.96.92/jpg/image.jpg
stream_source: rtsp://194.218.96.92:554
```