Add dfplayer volume up/down actions (#1212)

This commit is contained in:
Jesse Hills 2021-06-03 10:12:38 +12:00 committed by GitHub
parent f8ba0faf26
commit cdfe0ef1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 0 deletions

View File

@ -180,6 +180,28 @@ Configuration options:
- **volume** (**Required**, int, :ref:`templatable <config-templatable>`): The volume value.
Valid values goes from ``0`` to ``30``.
``dfplayer.volume_up`` Action
-----------------------------
Turn volume up.
.. code-block:: yaml
on_...:
then:
- dfplayer.volume_up
``dfplayer.volume_down`` Action
-------------------------------
Turn volume down.
.. code-block:: yaml
on_...:
then:
- dfplayer.volume_down
``dfplayer.set_eq`` Action
--------------------------
@ -392,6 +414,14 @@ Sample code
then:
- dfplayer.random
- service: dfplayer_volume_up
then:
- dfplayer.volume_up
- service: dfplayer_volume_down
then:
- dfplayer.volume_down
See Also
--------