the action exemple wont work (#9264)

* the action exemple wont work

the stream source entry is not allowed in data,  to work got to be like proposal

* Update stream.markdown
This commit is contained in:
vMeph 2019-04-28 22:44:04 +01:00 committed by Klaas Schoute
parent d5b551732a
commit f8a68d8aa7

View File

@ -45,14 +45,15 @@ Both `duration` and `lookback` options are suggestions, but should be consistent
The path part of `filename` must be an entry in the `whitelist_external_dirs` in your [`homeassistant:`](/docs/configuration/basic/) section of your `configuration.yaml` file. The path part of `filename` must be an entry in the `whitelist_external_dirs` in your [`homeassistant:`](/docs/configuration/basic/) section of your `configuration.yaml` file.
For example, the following action in an automation would take a recording from `rtsp://my.stream.feed:554` and save it to `/tmp`. For example, the following action in an automation would take a recording from `rtsp://my.stream.feed:554` and save it to `/config/www`.
```yaml ```yaml
action: action:
service: camera.record service: camera.record
data: data:
stream_source: rtsp://my.stream.feed:554 entity_id: camera.quintal
filename: '/tmp/my_stream.mp4' filename: '/config/www/my_stream.mp4'
duration: 30
``` ```
## {% linkable_title Streaming in Lovelace %} ## {% linkable_title Streaming in Lovelace %}