Skip to content

Commit a745877

Browse files
committed
Merge branch 'current' into next
2 parents d013b89 + 731bdcf commit a745877

File tree

12 files changed

+102
-71
lines changed

12 files changed

+102
-71
lines changed

.github/workflows/auto-label-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ jobs:
2626
if: github.event.action != 'labeled' || github.event.sender.type != 'Bot'
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v4.2.2
29+
uses: actions/checkout@v5.0.0
3030

3131
- name: Generate a token
3232
id: generate-token
33-
uses: actions/create-github-app-token@v2.0.6
33+
uses: actions/create-github-app-token@v2.1.1
3434
with:
3535
app-id: ${{ secrets.ESPHOME_GITHUB_APP_ID }}
3636
private-key: ${{ secrets.ESPHOME_GITHUB_APP_PRIVATE_KEY }}

.github/workflows/docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
repo: cloudcannon/pagefind
3131
-
3232
name: Checkout source code
33-
uses: actions/checkout@v4.2.2
33+
uses: actions/checkout@v5.0.0
3434
-
3535
name: Set up QEMU
3636
uses: docker/setup-qemu-action@v3

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
uses: jaxxstorm/[email protected]
2424
with:
2525
repo: cloudcannon/pagefind
26-
- uses: actions/checkout@v4.2.2
26+
- uses: actions/checkout@v5.0.0
2727
- name: Set up Python 3.12
2828
uses: actions/setup-python@v5
2929
with:

components/display/index.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,11 @@ To help the graphics display team determine the best way to help you, **a pictur
629629
Should you `create an issue <https://github.com/esphome/esphome/issues>`__ in GitHub regarding your display, please
630630
be sure to **include a link to where you purchased the display** so that we can validate the configuration you've used.
631631

632+
.. note::
633+
634+
If you set `update_interval: never` in your config you will not see the test card because the `display:` component will not update the display with the test card. If you want to see a test card, set `update_interval:` to something other than `never`.
635+
636+
632637
.. note::
633638

634639
For displays in 8 bit mode you will see distinct color blocks rather than a smooth gradient.

components/globals.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Global Variables
22
----------------
33

4-
In some cases you might need to share a global variable across multiple lambdas. For example, global variables can be
4+
In some cases you might need to share a global variable across multiple lambdas, or to remember between periods of deep_sleep. For example, global variables can be
55
used to store the state of a garage door.
66

77
.. code-block:: yaml
@@ -46,6 +46,8 @@ Configuration variables:
4646
can not be restored or if state restoration is not enabled. This needs to be wrapped in quotes! Defaults to
4747
the C++ default value for this type (for example ``0`` for integers).
4848

49+
Within lambdas globals don’t have a state attribute, just a value. Note in the example above the use of id(my_global_int) where other components would require id(my_component).state.
50+
4951
.. _globals-set_action:
5052

5153
``globals.set`` Action

components/host.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ configuration to Home Assistant (the native MAC address is not readily available
1414
.. note::
1515

1616
HA will not automatically discover an ESPHome instance running on ``host`` using mDNS, and you will need
17-
to add it explicitly using the IP address of your host computer.
18-
17+
to add it explicitly using the IP address of your host computer. If HA cannot establish a connection when
18+
adding the device manually, the firewall settings of the local host computer may be the cause. The
19+
ESPHome *API* port (``6053``) must be allowed through the firewall.
20+
See :doc:`/components/api` for details.
21+
1922
Many components, especially those interfacing to actual hardware, will not be available when using ``host``. Do not
2023
configure wifi - network will automatically be available using the host computer.
2124

components/light/esp32_rmt_led_strip.rst

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ This is a component using the ESP32 RMT peripheral to drive most addressable LED
1717
chipset: ws2812
1818
name: "My Light"
1919
20-
Only for Arduino platforms (and ESP-IDF <5 which was used until ESPHome 2025), the RMT channel must be defined.
21-
22-
.. code-block:: yaml
23-
24-
light:
25-
- platform: esp32_rmt_led_strip
26-
...
27-
2820
Configuration variables
2921
-----------------------
3022

components/logger.rst

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -233,18 +233,10 @@ Possible log levels are (sorted by severity):
233233
Manual Tag-Specific Log Levels
234234
------------------------------
235235

236-
If some component is spamming the logs and you want to manually set the
237-
log level for it, first identify the tag of the log messages in question
238-
and then disable them in your configuration.
236+
If some component is spamming the logs and you want to adjust its log
237+
level, you can set its level in your configuration, by identifiying its tag.
239238

240-
Suppose we want to have verbose log messages globally, but the MQTT
241-
client spams too much. In the following example, we'd first see that the
242-
tag of the MQTT client is ``mqtt.client`` (before the first colon) and
243-
the tag for MQTT components is ``mqtt.component``.
244-
245-
.. figure:: images/logger-manual_log_level.png
246-
247-
Next, we can manually set the log levels in the configuration like this:
239+
Example: verbose logs globally, but reduce MQTT noise:
248240

249241
.. code-block:: yaml
250242
@@ -254,11 +246,22 @@ Next, we can manually set the log levels in the configuration like this:
254246
mqtt.component: DEBUG
255247
mqtt.client: ERROR
256248
257-
Please note that the global log level determines what log messages are
258-
saved in the binary. So for example an ``INFO`` global log message will
259-
purge all ``DEBUG`` log statements from the binary in order to conserve
260-
space. This however means that you cannot set tag-specific log levels
261-
that have a lower severity than the global log level.
249+
The `level` option controls which log statements are included in the
250+
firmware. You cannot set a tag to a more detailed level than
251+
the global one, because log statements with lower severity than that level are not compiled in.
252+
However, you can suppress them using `initial_level`, and enable them for specific tags:
253+
254+
.. code-block:: yaml
255+
256+
logger:
257+
level: VERBOSE
258+
initial_level: ERROR
259+
logs:
260+
wifi: VERBOSE
261+
262+
Here, `VERBOSE` logs are compiled, but not shown (because of `initial_level: ERROR`)
263+
However, the `wifi` tag has `VERBOSE` level enabled, and shown.
264+
262265

263266
.. _logger-log_action:
264267

components/sensor/hlw8012.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,29 +154,29 @@ Calibration values on the ESP:
154154
.. raw:: html
155155

156156
<table>
157-
<tr><td>voltage_divider:</td><td><input type="text" inputmode="numeric" value="2351" id="voltage-divider" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"></td></tr>
158-
<tr><td>current_resistor:</td><td><input type="text" inputmode="numeric" value="0.001" id="current-resistor" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"></td></tr>
159-
<tr><td>current_multiply:</td><td><input type="text" inputmode="numeric" value="1" id="current-multiply" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"></td></tr>
157+
<tr><td>voltage_divider:</td><td><input type="text" inputmode="decimal" value="2351" id="voltage-divider" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"></td></tr>
158+
<tr><td>current_resistor:</td><td><input type="text" inputmode="decimal" value="0.001" id="current-resistor" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"></td></tr>
159+
<tr><td>current_multiply:</td><td><input type="text" inputmode="decimal" value="1" id="current-multiply" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"></td></tr>
160160
</table>
161161

162162
ESP measurements:
163163

164164
.. raw:: html
165165

166166
<table>
167-
<tr><td>Voltage:</td><td><input type="text" inputmode="numeric" id="sensor-voltage" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> V</td></tr>
168-
<tr><td>Power:</td><td><input type="text" inputmode="numeric" id="sensor-power" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> W</td></tr>
169-
<tr><td>Current:</td><td><input type="text" inputmode="numeric" id="sensor-current" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> A</td></tr>
167+
<tr><td>Voltage:</td><td><input type="text" inputmode="decimal" id="sensor-voltage" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> V</td></tr>
168+
<tr><td>Power:</td><td><input type="text" inputmode="decimal" id="sensor-power" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> W</td></tr>
169+
<tr><td>Current:</td><td><input type="text" inputmode="decimal" id="sensor-current" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> A</td></tr>
170170
</table>
171171

172172
Power meter measurements:
173173

174174
.. raw:: html
175175

176176
<table>
177-
<tr><td>Voltage:</td><td><input type="text" inputmode="numeric" id="real-voltage" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> V</td></tr>
178-
<tr><td>Power:</td><td><input type="text" inputmode="numeric" id="real-power" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> W</td></tr>
179-
<tr><td>Current:</td><td><input type="text" inputmode="numeric" id="real-current" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> A</td></tr>
177+
<tr><td>Voltage:</td><td><input type="text" inputmode="decimal" id="real-voltage" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> V</td></tr>
178+
<tr><td>Power:</td><td><input type="text" inputmode="decimal" id="real-power" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> W</td></tr>
179+
<tr><td>Current:</td><td><input type="text" inputmode="decimal" id="real-current" onchange="calc()" onkeypress="calc()" onpaste="calc()" oninput="calc()" style="width: 100px; max-width: 75vw;"> A</td></tr>
180180
</table>
181181

182182
New calibration values:

components/sensor/ld2450.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ Configuration variables:
336336
Button
337337
------
338338

339-
The ``ld2450`` button allows you to perfrom ``restart`` and ``factory reset`` actions on your :doc:`ld2450`.
339+
The ``ld2450`` button allows you to perform ``restart`` and ``factory reset`` actions on your :doc:`ld2450`.
340340

341341
.. code-block:: yaml
342342

0 commit comments

Comments
 (0)