diff --git a/_static/custom.css b/_static/custom.css index 451d5cb4b..182ffa4ab 100644 --- a/_static/custom.css +++ b/_static/custom.css @@ -240,6 +240,11 @@ a:hover code { background: none; } +/* don't underline links that contain an image and nothing else */ +a:has(> img:only-child) { + border-bottom: none; +} + div.body p, div.body dd, div.body li, div.body blockquote { hyphens: none; } diff --git a/components/api.rst b/components/api.rst index cb1a48116..a6386a845 100644 --- a/components/api.rst +++ b/components/api.rst @@ -75,20 +75,35 @@ Configuration variables: .. _api-actions: -.. note:: - - Before a newly added ESPHome device can interact with the Home Assistant API it needs to be allowed to communicate - with it. This setting can be found in the ESPHome integration (NOT in the Add-On) by clicking "CONFIGURE" for - that device and enabling the "Allow device to make service calls" option. - Actions ------- +Before using any of the actions below, you'll need to tell Home Assistant to allow your device to +make service calls. + +Open the ESPHome integration page on your Home Assistant instance: + +.. raw:: html + + Open your Home Assistant instance and show an integration. + +Then: + +#. Fnd your device in the device list +#. Click the "configure" button next to it +#. Check the "Allow the device to make Home Assistant service calls" box +#. Then click "submit". + .. _api-homeassistant_event_action: ``homeassistant.event`` Action ****************************** +.. note:: + + Be sure to :ref:`follow the instructions above ` to tell Home Assistant to allow + your device to make service calls. + When using the native API with Home Assistant, you can create events in the Home Assistant event bus straight from ESPHome :ref:`Automations `. @@ -117,6 +132,11 @@ Configuration variables: ``homeassistant.service`` Action ******************************** +.. note:: + + Be sure to :ref:`follow the instructions above ` to tell Home Assistant to allow + your device to make service calls. + When using the native API with Home Assistant, you can create Home Assistant service calls straight from ESPHome :ref:`Automations `. @@ -189,6 +209,11 @@ Then, in ESPHome: ``homeassistant.tag_scanned`` Action ************************************ +.. note:: + + Be sure to :ref:`follow the instructions above ` to tell Home Assistant to allow + your device to make service calls. + When using the native API with Home Assistant, you can push tag_scanned to Home Assistant straight from ESPHome :ref:`Automations `.