From 4888393a12acf00ff900123671e2bea34e1a2af4 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 8 Mar 2025 14:53:19 +0100 Subject: [PATCH] Updated on_click actions to dictionaries. --- esphome/raspiaudio-muse-luxe.yaml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/esphome/raspiaudio-muse-luxe.yaml b/esphome/raspiaudio-muse-luxe.yaml index b7dc36c..f15e07e 100644 --- a/esphome/raspiaudio-muse-luxe.yaml +++ b/esphome/raspiaudio-muse-luxe.yaml @@ -136,7 +136,7 @@ sensor: unit_of_measurement: V update_interval: 15s accuracy_decimals: 3 - attenuation: 11db + attenuation: 12db raw: true filters: - multiply: 0.00173913 # 2300 -> 4, for attenuation 11db, based on Olivier's code @@ -157,7 +157,8 @@ binary_sensor: name: Volume Up id: volume_up on_click: - - media_player.volume_up: luxe_out + - media_player.volume_up: + id: luxe_out - platform: gpio pin: number: GPIO32 @@ -168,7 +169,8 @@ binary_sensor: name: Volume Down id: volume_down on_click: - - media_player.volume_down: luxe_out + - media_player.volume_down: + id: luxe_out - platform: gpio pin: number: GPIO12 @@ -183,7 +185,8 @@ binary_sensor: - ON FOR AT MOST 350ms - OFF FOR AT LEAST 10ms then: - - media_player.toggle: luxe_out + - media_player.toggle: + id: luxe_out - timing: - ON FOR AT LEAST 350ms then: