From d36e808d7263829da26dec614e7673a63e7d7f89 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 2 Jul 2024 12:11:08 +1200 Subject: [PATCH] Fix components.json generation (#4013) --- changelog/v1.9.0.rst | 2 +- components/globals.rst | 4 +--- components/interval.rst | 6 ++---- components/script.rst | 6 ++---- cookbook/http_request_sensor.rst | 4 ++-- 5 files changed, 8 insertions(+), 14 deletions(-) diff --git a/changelog/v1.9.0.rst b/changelog/v1.9.0.rst index ff519918c..900ef04b7 100644 --- a/changelog/v1.9.0.rst +++ b/changelog/v1.9.0.rst @@ -137,7 +137,7 @@ New Features - You can now upload OTA firmware files with the :doc:`web server component ` -- Added the ability to define global variables in esphomeyaml: :ref:`config-globals`. +- Added the ability to define global variables in esphomeyaml: :doc:`/components/globals`. - Added a ``frequency`` option to the :doc:`/components/output/esp8266_pwm`. diff --git a/components/globals.rst b/components/globals.rst index 614254efa..c1f34bf1a 100644 --- a/components/globals.rst +++ b/components/globals.rst @@ -1,5 +1,3 @@ -.. _config-globals: - Global Variables ---------------- @@ -54,7 +52,7 @@ Configuration variables: ``globals.set`` Action ---------------------- -This :ref:`Action ` allows you to change the value of a :ref:`global ` +This :ref:`Action ` allows you to change the value of a ``global`` variable without having to use the lambda syntax. .. code-block:: yaml diff --git a/components/interval.rst b/components/interval.rst index c5edfe0bb..84243420d 100644 --- a/components/interval.rst +++ b/components/interval.rst @@ -1,7 +1,5 @@ -.. _interval: - -``interval`` Component ----------------------- +Interval Component +------------------ This component allows you to run actions at fixed time intervals. For example, if you want to toggle a switch every minute, you can use this component. Please note that it's possible to achieve the same thing with the diff --git a/components/script.rst b/components/script.rst index 7060a962e..7112626e0 100644 --- a/components/script.rst +++ b/components/script.rst @@ -1,7 +1,5 @@ -.. _script: - -``script`` Component --------------------- +Script Component +---------------- ESPHome's ``script`` component allows you to define a list of steps (actions) in a central place. You can then execute the script from nearly anywhere in your device's configuration with a single call. diff --git a/cookbook/http_request_sensor.rst b/cookbook/http_request_sensor.rst index 7180c0d2b..7ddfaa6db 100644 --- a/cookbook/http_request_sensor.rst +++ b/cookbook/http_request_sensor.rst @@ -35,7 +35,7 @@ On the client nodes we need an :doc:`/components/http_request` with an ``id`` se Pulling the data **************** -To automate the request for data, we use an :ref:`interval` requesting the URL pointing to the sensor id for which the state is needed. See :ref:`api-rest` on how to build up the URL for your sensors. +To automate the request for data, we use an :doc:`/components/interval` requesting the URL pointing to the sensor id for which the state is needed. See :ref:`api-rest` on how to build up the URL for your sensors. In the example below we request the value of a sensor from the server node, and after parsing the resulted JSON string we publish it to the local template sensor: @@ -118,6 +118,6 @@ See Also - :doc:`/components/web_server` - :doc:`/components/http_request` - :doc:`/components/sensor/template` -- :ref:`interval` +- :doc:`/components/interval` - :ref:`api-rest` - :ghedit:`Edit`