mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-24 17:08:15 +01:00
Add documentation for images using URL (#3409)
This commit is contained in:
parent
0df31afcfd
commit
a53fc6b37e
@ -678,6 +678,13 @@ Use this component to store graphical images on the device, you can then draw th
|
||||
id: alert
|
||||
resize: 80x80
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
image:
|
||||
- file: https://esphome.io/_images/logo.png
|
||||
id: esphome_logo
|
||||
resize: 200x162
|
||||
|
||||
Configuration variables:
|
||||
|
||||
- **file** (**Required**, string):
|
||||
@ -685,6 +692,7 @@ Configuration variables:
|
||||
- **Local files**: The path (relative to where the .yaml file is) of the image file.
|
||||
- **Material Design Icons**: Specify the `Material Design Icon <https://pictogrammers.com/library/mdi/>`_
|
||||
id in the format ``mdi:icon-name``, and that icon will automatically be downloaded and added to the configuration.
|
||||
- **Remote files**: The URL of the image file.
|
||||
|
||||
- **id** (**Required**, :ref:`config-id`): The ID with which you will be able to reference the image later
|
||||
in your display code.
|
||||
|
Loading…
Reference in New Issue
Block a user