From ebf628ca74c5c339d0c67d09250d664f793daf80 Mon Sep 17 00:00:00 2001 From: Oxan van Leeuwen Date: Sat, 22 Jan 2022 07:32:37 +0100 Subject: [PATCH] Add note that buttons are unidirectional (#1831) --- components/button/index.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/components/button/index.rst b/components/button/index.rst index b1f460df8..81d9d41b2 100644 --- a/components/button/index.rst +++ b/components/button/index.rst @@ -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 ` instead. + .. _button-lambda_calls: lambda calls