mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-26 22:21:38 +01:00
Add note that buttons are unidirectional (#1831)
This commit is contained in:
parent
7bfa9be862
commit
ebf628ca74
@ -94,6 +94,13 @@ Configuration variables:
|
||||
|
||||
- **id** (**Required**, :ref:`config-id`): The ID of the button to set.
|
||||
|
||||
.. note::
|
||||
|
||||
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
|
||||
Assistant. If you want to trigger an automation in Home Assistant, you should use a
|
||||
:ref:`Home Assistant event <api-homeassistant_event_action>` instead.
|
||||
|
||||
.. _button-lambda_calls:
|
||||
|
||||
lambda calls
|
||||
|
Loading…
Reference in New Issue
Block a user