2024-05-07 07:16:56 +02:00
|
|
|
Demo Component
|
|
|
|
==============
|
2021-07-29 12:03:43 +02:00
|
|
|
|
|
|
|
.. seo::
|
2024-05-07 07:16:56 +02:00
|
|
|
:description: Instructions for setting up the demo component in ESPHome
|
2021-11-16 03:19:33 +01:00
|
|
|
:image: description.svg
|
2021-07-29 12:03:43 +02:00
|
|
|
|
2024-05-07 07:16:56 +02:00
|
|
|
The ``demo`` component can be used for testing to generate sample instances of many
|
|
|
|
different components (sensors, lights, ...)
|
2021-07-29 12:03:43 +02:00
|
|
|
|
|
|
|
.. figure:: images/demo-ui.png
|
|
|
|
:align: center
|
|
|
|
:width: 70.0%
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
# Example configuration entry
|
|
|
|
demo:
|
|
|
|
|
|
|
|
Configuration variables:
|
|
|
|
------------------------
|
|
|
|
|
2024-05-07 07:16:56 +02:00
|
|
|
This component has no configuration variables
|
2021-07-29 12:03:43 +02:00
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
|
|
|
- :apiref:`demo/demo_sensor.h`
|
|
|
|
- :ghedit:`Edit`
|