mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-27 04:13:07 +02:00
Docs for media player actions (#2118)
This commit is contained in:
parent
5b8b1b5321
commit
e910fd1170
@ -38,6 +38,37 @@ Configuration variables:
|
||||
See https://developers.home-assistant.io/docs/core/entity/#generic-properties
|
||||
for a list of available options. Set to ``""`` to remove the default entity category.
|
||||
|
||||
.. _media_player-play:
|
||||
|
||||
``media_player.play`` Action
|
||||
----------------------------
|
||||
|
||||
This action will resume playing the media player.
|
||||
A future change will allow specifying the ``media_url`` for starting
|
||||
a new stream.
|
||||
|
||||
.. _media_player-pause:
|
||||
|
||||
``media_player.pause`` Action
|
||||
-----------------------------
|
||||
|
||||
This action pauses the current playback.
|
||||
|
||||
.. _media_player-stop:
|
||||
|
||||
``media_player.stop`` Action
|
||||
----------------------------
|
||||
|
||||
This action stops the current playback.
|
||||
|
||||
.. _media_player-toggle:
|
||||
|
||||
``media_player.toggle`` Action
|
||||
------------------------------
|
||||
|
||||
This action will pause or resume the current playback.
|
||||
|
||||
|
||||
See Also
|
||||
--------
|
||||
|
||||
|
@ -330,7 +330,7 @@ All Triggers
|
||||
- :ref:`light.on_turn_on / light.on_turn_off <light-on_turn_on_off_trigger>`
|
||||
- :ref:`logger.on_message <logger-on_message>`
|
||||
- :ref:`time.on_time <time-on_time>` / - :ref:`time.on_time_sync <time-on_time_sync>`
|
||||
- :ref:`mqtt.on_message <mqtt-on_message>` / :ref:`mqtt.on_json_message <mqtt-on_json_message>` /
|
||||
- :ref:`mqtt.on_message <mqtt-on_message>` / :ref:`mqtt.on_json_message <mqtt-on_json_message>` /
|
||||
:ref:`mqtt.on_connect / mqtt.on_disconnect <mqtt-on_connect_disconnect>`
|
||||
- :ref:`pn532.on_tag <pn532-on_tag>` / :ref:`rdm6300.on_tag <rdm6300-on_tag>`
|
||||
- :ref:`interval.interval <interval>`
|
||||
@ -392,6 +392,7 @@ All Actions
|
||||
- :ref:`pzemac.reset_energy <pzemac-reset_energy_action>`
|
||||
- :ref:`number.set <number-set_action>` / :ref:`number.to_min <number-to-min_action>` / :ref:`number.to_max <number-to-max_action>` / :ref:`number.decrement <number-decrement_action>` / :ref:`number.increment <number-increment_action>` / :ref:`number.operation <number-operation_action>`
|
||||
- :ref:`select.set <select-set_action>` / :ref:`select.set_index <select-set_index_action>` / :ref:`select.first <select-first_action>` / :ref:`select.last <select-last_action>` / :ref:`select.previous <select-previous_action>` / :ref:`select.next <select-next_action>` / :ref:`select.operation <select-operation_action>`
|
||||
- :ref:`media_player.play <media_player-play>` / :ref:`media_player.pause <media_player-pause>` / :ref:`media_player.stop <media_player-stop>` / :ref:`media_player.toggle <media_player-toggle>`
|
||||
|
||||
.. _config-condition:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user