Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[media_player] Document paused and announcing conditions #4387

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions components/media_player/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,36 @@ This condition checks if the media player is playing media.
condition:
media_player.is_playing:
.. _media_player-is_paused_condition:

``media_player.is_paused`` Condition
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This condition checks if the media player is paused.

.. code-block:: yaml
# In some trigger:
on_...:
if:
condition:
media_player.is_paused:
.. _media_player-is_announcing_condition:

``media_player.is_announcing`` Condition
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This condition checks if the media player is playing an announcement.

.. code-block:: yaml
# In some trigger:
on_...:
if:
condition:
media_player.is_announcing:
Play media in order
-------------------

Expand Down