add documentation for display.is_displaying_page (#1079)

This commit is contained in:
Stanislav Meduna 2021-04-03 04:00:51 +02:00 committed by GitHub
parent d48c9e800e
commit acf110f84d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 0 deletions

View File

@ -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
--------

View File

@ -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
----------------