Updated on_click actions to dictionaries.

This commit is contained in:
Marcus Scholz 2025-03-08 14:53:19 +01:00
parent 05f8cc1af8
commit 4888393a12

View File

@ -136,7 +136,7 @@ sensor:
unit_of_measurement: V unit_of_measurement: V
update_interval: 15s update_interval: 15s
accuracy_decimals: 3 accuracy_decimals: 3
attenuation: 11db attenuation: 12db
raw: true raw: true
filters: filters:
- multiply: 0.00173913 # 2300 -> 4, for attenuation 11db, based on Olivier's code - multiply: 0.00173913 # 2300 -> 4, for attenuation 11db, based on Olivier's code
@ -157,7 +157,8 @@ binary_sensor:
name: Volume Up name: Volume Up
id: volume_up id: volume_up
on_click: on_click:
- media_player.volume_up: luxe_out - media_player.volume_up:
id: luxe_out
- platform: gpio - platform: gpio
pin: pin:
number: GPIO32 number: GPIO32
@ -168,7 +169,8 @@ binary_sensor:
name: Volume Down name: Volume Down
id: volume_down id: volume_down
on_click: on_click:
- media_player.volume_down: luxe_out - media_player.volume_down:
id: luxe_out
- platform: gpio - platform: gpio
pin: pin:
number: GPIO12 number: GPIO12
@ -183,7 +185,8 @@ binary_sensor:
- ON FOR AT MOST 350ms - ON FOR AT MOST 350ms
- OFF FOR AT LEAST 10ms - OFF FOR AT LEAST 10ms
then: then:
- media_player.toggle: luxe_out - media_player.toggle:
id: luxe_out
- timing: - timing:
- ON FOR AT LEAST 350ms - ON FOR AT LEAST 350ms
then: then: