From c45bb97c5ae94ad8dd7c2eb79b04e4c3f133dbd7 Mon Sep 17 00:00:00 2001 From: myztillx Date: Mon, 23 Jun 2025 10:25:53 -0400 Subject: [PATCH 1/3] Add enable and disable loop actions --- components/dfplayer.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/components/dfplayer.rst b/components/dfplayer.rst index 512559c1e7..d4b2eb5356 100644 --- a/components/dfplayer.rst +++ b/components/dfplayer.rst @@ -312,6 +312,27 @@ Randomly plays all tracks. then: - dfplayer.random +``dfplayer.enable_loop`` Action +---------------------------- + +Enables loop playback of currently playing track. If the track is already playing. + +.. code-block:: yaml + + on_...: + then: + - dfplayer.enable_loop + +``dfplayer.disable_loop`` Action +----------------------------- + +Disables loop playback of currently playing track. If the track is already playing. +.. code-block:: yaml + + on_...: + then: + - dfplayer.disable_loop + All actions ----------- From 10467867a9749fd725d705ba58c5668026cd2074 Mon Sep 17 00:00:00 2001 From: myztillx Date: Mon, 23 Jun 2025 10:36:46 -0400 Subject: [PATCH 2/3] Fixes title underline and spacing --- components/dfplayer.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/dfplayer.rst b/components/dfplayer.rst index d4b2eb5356..73471e13d3 100644 --- a/components/dfplayer.rst +++ b/components/dfplayer.rst @@ -313,7 +313,7 @@ Randomly plays all tracks. - dfplayer.random ``dfplayer.enable_loop`` Action ----------------------------- +------------------------------- Enables loop playback of currently playing track. If the track is already playing. @@ -324,9 +324,10 @@ Enables loop playback of currently playing track. If the track is already playin - dfplayer.enable_loop ``dfplayer.disable_loop`` Action ------------------------------ +-------------------------------- Disables loop playback of currently playing track. If the track is already playing. + .. code-block:: yaml on_...: From b3345d3809d159907270dfe189d87adc641a070f Mon Sep 17 00:00:00 2001 From: myztillx Date: Sun, 20 Jul 2025 13:56:09 -0400 Subject: [PATCH 3/3] Updated to match changes requested for the repeat command --- components/dfplayer.rst | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/components/dfplayer.rst b/components/dfplayer.rst index 73471e13d3..3e88a0d7a3 100644 --- a/components/dfplayer.rst +++ b/components/dfplayer.rst @@ -312,27 +312,23 @@ Randomly plays all tracks. then: - dfplayer.random -``dfplayer.enable_loop`` Action -------------------------------- -Enables loop playback of currently playing track. If the track is already playing. +``dfplayer.set_current_track_repeat`` Action +-------------------------------------------- + +Enable or disable the current track to repeat playback. If the track is already playing. .. code-block:: yaml on_...: then: - - dfplayer.enable_loop - -``dfplayer.disable_loop`` Action --------------------------------- - -Disables loop playback of currently playing track. If the track is already playing. - -.. code-block:: yaml + - dfplayer.set_current_track_repeat: true on_...: then: - - dfplayer.disable_loop + - dfplayer.set_current_track_repeat: + enable: false + All actions -----------