mirror of
https://github.com/esphome/esphome-docs.git
synced 2025-01-10 19:57:49 +01:00
Add on_announcement trigger to media_player doc (#3822)
* added on_announcement trigger to media_player doc --------- Co-authored-by: guillempages <guillempages@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
parent
1e73572a3b
commit
09250d38f6
@ -209,6 +209,21 @@ This trigger is activated every time the media player finishes playing.
|
||||
on_idle:
|
||||
- logger.log: "Playback finished!"
|
||||
|
||||
.. _media_player-on_announcement_trigger:
|
||||
|
||||
``media_player.on_announcement`` Trigger
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
This trigger is activated every time the media player plays an announcement.
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
media_player:
|
||||
- platform: i2s_audio # or any other platform
|
||||
# ...
|
||||
on_announcement:
|
||||
- logger.log: "Announcing!"
|
||||
|
||||
.. _media_player-is_idle_condition:
|
||||
|
||||
``media_player.is_idle`` Condition
|
||||
|
Loading…
Reference in New Issue
Block a user