Merge branch 'current' into beta

This commit is contained in:
Jesse Hills 2022-04-14 13:48:27 +12:00
commit 49caad48a4
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A
1 changed files with 10 additions and 5 deletions

View File

@ -5,9 +5,14 @@ Button Component
:description: Instructions for setting up button components in ESPHome. :description: Instructions for setting up button components in ESPHome.
:image: folder-open.svg :image: folder-open.svg
ESPHome has support for components to create a button entity. A button entity is .. note::
basically a momentary switch with no state and can be triggered by either YAML or
the user/frontend. To attach a physical buttons to ESPHome, see
:doc:`GPIO Binary Sensor </components/binary_sensor/gpio>`.
ESPHome has support for components to create button entities in Home Assistant. A button entity is
represented in ESPHome as a momentary switch with no state and can be triggered in Home Assistant
via the UI or automations.
.. note:: .. note::
@ -96,8 +101,8 @@ Configuration variables:
.. note:: .. note::
Buttons are designed to trigger an action on a device from Home Assistant, and have an unidirectional flow from Buttons are designed to trigger an action on a device from Home Assistant, and have an unidirectional flow from
Home Assistant to ESPHome. If you press a button using this action, no button press event will be triggered in Home Home Assistant to ESPHome. If you press a button using this action, no button press event will be triggered in Home
Assistant. If you want to trigger an automation in Home Assistant, you should use a Assistant. If you want to trigger an automation in Home Assistant, you should use a
:ref:`Home Assistant event <api-homeassistant_event_action>` instead. :ref:`Home Assistant event <api-homeassistant_event_action>` instead.