mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 04:16:48 +00:00
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:
parent
d5b551732a
commit
f8a68d8aa7
@ -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 %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user