mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
add documentation for display.is_displaying_page (#1079)
This commit is contained in:
parent
d48c9e800e
commit
acf110f84d
@ -540,6 +540,27 @@ You can then switch between these with three different actions:
|
||||
- display.page.show_next: my_display
|
||||
- component.update: my_display
|
||||
|
||||
.. _display-is_displaying_page-condition:
|
||||
|
||||
**display.is_displaying_page**: This condition returns true while the specified page is being shown.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
# In some trigger:
|
||||
on_...:
|
||||
- if:
|
||||
condition:
|
||||
display.is_displaying_page: page1
|
||||
then:
|
||||
...
|
||||
- if:
|
||||
condition:
|
||||
display.is_displaying_page:
|
||||
id: my_display
|
||||
page_id: page2
|
||||
then:
|
||||
...
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
@ -394,6 +394,7 @@ All Conditions
|
||||
- :ref:`sun.is_above_horizon / sun.is_below_horizon <sun-is_above_below_horizon-condition>`
|
||||
- :ref:`text_sensor.state <text_sensor-state_condition>`
|
||||
- :ref:`light.is_on <light-is_on_condition>` / :ref:`light.is_off <light-is_off_condition>`
|
||||
- :ref:`display.is_displaying_page <display-is_displaying_page-condition>`
|
||||
|
||||
All Lambda Calls
|
||||
----------------
|
||||
|
Loading…
Reference in New Issue
Block a user