diff options
author | KaufHA <[email protected]> | 2023-06-03 15:38:52 -0700 |
---|---|---|
committer | KaufHA <[email protected]> | 2023-06-03 15:38:52 -0700 |
commit | 2cf70aae07e22e4f4051856a00283b1990c9e7c2 (patch) | |
tree | d3322b3bc52982139746d8394d47ad416e3e9def | |
parent | f2270560caa1a229c840052008211f2198a4e119 (diff) | |
download | PLF10-2cf70aae07e22e4f4051856a00283b1990c9e7c2.tar.gz PLF10-2cf70aae07e22e4f4051856a00283b1990c9e7c2.zip |
don't turn on led with brightness change
-rw-r--r-- | kauf-plug.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kauf-plug.yaml b/kauf-plug.yaml index fca4725..e6a42bd 100644 --- a/kauf-plug.yaml +++ b/kauf-plug.yaml @@ -595,7 +595,7 @@ number: # used as a threshold for whether the plugged-in devices is running set_action: - script.execute: script_save_changes on_value: - - lambda: id(blue_led_pwm).set_level(x/100); + - lambda: if ( id(blue_led).state ) id(blue_led_pwm).set_level(x/100); - platform: template name: ${friendly_name} Red LED Brightness @@ -616,7 +616,7 @@ number: # used as a threshold for whether the plugged-in devices is running set_action: - script.execute: script_save_changes on_value: - - lambda: id(red_led_pwm).set_level(x/100); + - lambda: if ( id(red_led).state ) id(red_led_pwm).set_level(x/100); - platform: template name: ${friendly_name} Scale Power |