From ff5ce7bfec26050409a32f2067cb78bf5ea413a7 Mon Sep 17 00:00:00 2001 From: jeff-h Date: Wed, 29 May 2019 20:25:59 +1200 Subject: [PATCH] Add camera example. (#9521) * Add camera example. * :pencil2: Tweak * :pencil2: Tweak * Needs raw --- source/_lovelace/picture-entity.markdown | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/source/_lovelace/picture-entity.markdown b/source/_lovelace/picture-entity.markdown index 792ea1ab73f..e375c25a9cb 100644 --- a/source/_lovelace/picture-entity.markdown +++ b/source/_lovelace/picture-entity.markdown @@ -132,3 +132,21 @@ state_image: "on": /local/bed_light_on.png "off": /local/bed_light_off.png ``` + +Displaying a live feed from an FFMPEG camera: + +{% raw %} +```yaml +type: picture-entity +entity: camera.backdoor +camera_view: live +tap_action: + action: call-service + service: camera.snapshot + service_data: + entity_id: camera.backdoor + filename: '/shared/backdoor-{{ now().strftime("%Y-%m-%d-%H%M%S") }}.jpg' +``` +{% endraw %} + +The filename needs to be a path that is writable by Home Assistant in your system. You may need to configure `whitelist_external_dirs` ([documentation](https://www.home-assistant.io/docs/configuration/basic/)).