2021-10-17 00:03:24 +02:00
|
|
|
Sharing ESPHome devices
|
|
|
|
=======================
|
2021-06-15 05:39:41 +02:00
|
|
|
|
|
|
|
.. seo::
|
2021-10-17 00:03:24 +02:00
|
|
|
:description: Information for creating and sharing devices using ESPHome firmware.
|
2021-06-15 05:39:41 +02:00
|
|
|
|
2021-10-17 00:03:24 +02:00
|
|
|
We have added configuration options to ESPHome to make it easier
|
2021-06-15 05:39:41 +02:00
|
|
|
to create, configure, install and distribute devices running ESPHome.
|
|
|
|
|
|
|
|
Example configuration
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
.. code-block:: yaml
|
|
|
|
|
|
|
|
esphome:
|
|
|
|
...
|
|
|
|
# Automatically add the mac address to the name
|
|
|
|
# so you can use a single firmware for all devices
|
|
|
|
name_add_mac_suffix: true
|
|
|
|
|
|
|
|
# This will allow for (future) project identification,
|
|
|
|
# configuration and updates.
|
|
|
|
project:
|
|
|
|
name: jesse.temperature_monitor
|
|
|
|
version: "1.0"
|
|
|
|
|
2021-10-17 00:03:24 +02:00
|
|
|
# This should point to the public location of this yaml file.
|
|
|
|
dashboard_import:
|
|
|
|
package_import_url: github://jesserockz/dummy-esphome-configs@v1/temperature-monitor.yaml
|
|
|
|
|
2021-06-15 05:39:41 +02:00
|
|
|
wifi:
|
|
|
|
# Set up a wifi access point
|
|
|
|
ap:
|
|
|
|
ssid: jesses_temperature_monitor
|
|
|
|
password: 12345678
|
|
|
|
|
|
|
|
# In combination with the `ap` this allows the user
|
|
|
|
# to provision wifi credentials to the device.
|
|
|
|
captive_portal:
|
|
|
|
|
|
|
|
# Sets up Bluetooth LE (Only on ESP32) to allow the user
|
|
|
|
# to provision wifi credentials to the device.
|
|
|
|
esp32_improv:
|
|
|
|
authorizer: none
|
|
|
|
|
|
|
|
|
|
|
|
Relevant Documentation
|
|
|
|
----------------------
|
|
|
|
|
|
|
|
- ``name_add_mac_suffix`` - :ref:`esphome-mac_suffix`
|
|
|
|
- ``project`` - :ref:`esphome-creators_project`
|
|
|
|
- ``esp32_improv`` - :doc:`/components/esp32_improv`
|
|
|
|
- ``captive_portal`` - :doc:`/components/captive_portal`
|
|
|
|
- ``wifi`` -> ``networks: []`` allows you to flash a device that will not contain any
|
|
|
|
credentials and they must be set by the user via either the ``ap`` + ``captive_portal`` or
|
|
|
|
the ``esp32_improv`` components.
|
2021-10-17 00:03:24 +02:00
|
|
|
- ``dashboard_import`` -> ``package_import_url`` - This should point to the public repository containing
|
|
|
|
the configuration for the device so that the user's ESPHome dashboard can autodetect this device and
|
|
|
|
create a minimal YAML using :ref:`config-git_packages`.
|
2021-06-15 05:39:41 +02:00
|
|
|
|
|
|
|
See Also
|
|
|
|
--------
|
|
|
|
|
|
|
|
- :ghedit:`Edit`
|