[media_player] Document paused and announcing conditions (#4387)

This commit is contained in:
Kevin Ahrendt 2024-10-24 17:26:43 -04:00 committed by GitHub
parent 0b486c8731
commit e4101c86a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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