Add dfplayer volume up/down actions (#1212)
This commit is contained in:
parent
f8ba0faf26
commit
cdfe0ef1a4
|
@ -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
|
||||
--------
|
||||
|
||||
|
|
Loading…
Reference in New Issue