Local file

The Local file camera integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] allows you to integrate an image file from disk into Home Assistant as a camera. If the image is updated on the file system, the image displayed in Home Assistant will also be updated. The local_file.update_file_path action can be used to update the image using an automation.

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.

Note

The file path must be added to allowlist_external_dirs for the integration to be able to read it.

Configuration

To add the Local file integration to your Home Assistant instance, use this My button:

Manual configuration steps

If the above My button doesn’t work, you can also perform the following steps manually:

  • Browse to your Home Assistant instance.

  • Go to Settings > Devices & services.

  • In the bottom right corner, select the Add Integration button.

  • From the list, select Local file.

  • Follow the instructions on screen to complete the setup.

List of actions

The Local file integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.

  • Update file path (local_file.update_file_path) Changes the image file that a local file camera displays.

For an overview of every action across all integrations, see the actions reference.