mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add config flow to local_file (#34723)
This commit is contained in:
parent
813349a39f
commit
76c0d8454c
@ -6,6 +6,7 @@ ha_category:
|
||||
ha_iot_class: Local Polling
|
||||
ha_release: 0.22
|
||||
ha_domain: local_file
|
||||
ha_config_flow: true
|
||||
ha_platforms:
|
||||
- camera
|
||||
ha_integration_type: integration
|
||||
@ -18,28 +19,11 @@ The **Local file** camera {% term integration %} allows you to integrate an imag
|
||||
|
||||
The `local_file` camera can for example be used with various camera platforms that save a temporary images locally. It can also be used to display a graph that you render periodically and will then be displayed in Home Assistant.
|
||||
|
||||
## Configuration
|
||||
{% note %}
|
||||
The file path must be added to [allowlist_external_dirs](/integrations/homeassistant/#allowlist_external_dirs) for the integration to be able to read it.
|
||||
{% endnote %}
|
||||
|
||||
To enable this camera in your installation, add the following to your {% term "`configuration.yaml`" %} file.
|
||||
{% include integrations/restart_ha_after_config_inclusion.md %}
|
||||
|
||||
```yaml
|
||||
# Example configuration.yaml entry
|
||||
camera:
|
||||
- platform: local_file
|
||||
file_path: /tmp/image.jpg
|
||||
```
|
||||
|
||||
{% configuration %}
|
||||
file_path:
|
||||
description: "File to serve as the camera. Use a full path, e.g., `/config/www/images/image.jpg `."
|
||||
required: true
|
||||
type: string
|
||||
name:
|
||||
description: Name of the camera.
|
||||
required: false
|
||||
type: string
|
||||
{% endconfiguration %}
|
||||
{% include integrations/config_flow.md %}
|
||||
|
||||
### Action `local_file.update_file_path`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user