From f8a68d8aa7b7913f8d6814326d26ed5f7c17e18e Mon Sep 17 00:00:00 2001 From: vMeph Date: Sun, 28 Apr 2019 22:44:04 +0100 Subject: [PATCH] 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 --- source/_components/stream.markdown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/_components/stream.markdown b/source/_components/stream.markdown index ad7be616a05..f96e12ebe5c 100644 --- a/source/_components/stream.markdown +++ b/source/_components/stream.markdown @@ -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. -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 action: service: camera.record data: - stream_source: rtsp://my.stream.feed:554 - filename: '/tmp/my_stream.mp4' + entity_id: camera.quintal + filename: '/config/www/my_stream.mp4' + duration: 30 ``` ## {% linkable_title Streaming in Lovelace %}