From da9528371da68a4224cffd65eabb04d80e9d866a Mon Sep 17 00:00:00 2001 From: ZareMate <0.zaremate@gmail.com> Date: Mon, 17 Feb 2025 23:11:16 +0100 Subject: [PATCH] Replace hardcoded max_power values with secret reference in lamp configuration files --- desk-lamp.yaml | 4 ++-- tomaszs-wall-lamp-l.yaml | 4 ++-- tomaszs-wall-light-r.yaml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/desk-lamp.yaml b/desk-lamp.yaml index c7191c7..0ac974a 100644 --- a/desk-lamp.yaml +++ b/desk-lamp.yaml @@ -37,11 +37,11 @@ output: - platform: libretiny_pwm id: output_cold pin: P26 - max_power: 70% # Limit the cold white channel to 80% + max_power: !secret hama_max_power - platform: libretiny_pwm id: output_warm pin: P24 - max_power: 70% # Limit the warm white channel to 80% + max_power: !secret hama_max_power light: - platform: cwww diff --git a/tomaszs-wall-lamp-l.yaml b/tomaszs-wall-lamp-l.yaml index 0595d4e..917f213 100644 --- a/tomaszs-wall-lamp-l.yaml +++ b/tomaszs-wall-lamp-l.yaml @@ -37,11 +37,11 @@ output: - platform: libretiny_pwm id: output_cold pin: P26 - max_power: 80% # Limit the cold white channel to 80% + max_power: !secret hama_max_power - platform: libretiny_pwm id: output_warm pin: P24 - max_power: 80% # Limit the warm white channel to 80% + max_power: !secret hama_max_power light: - platform: cwww diff --git a/tomaszs-wall-light-r.yaml b/tomaszs-wall-light-r.yaml index 32b41f1..6146c7e 100644 --- a/tomaszs-wall-light-r.yaml +++ b/tomaszs-wall-light-r.yaml @@ -37,11 +37,11 @@ output: - platform: libretiny_pwm id: output_cold pin: P26 - max_power: 80% # Limit the cold white channel to 80% + max_power: !secret hama_max_power - platform: libretiny_pwm id: output_warm pin: P24 - max_power: 80% # Limit the warm white channel to 80% + max_power: !secret hama_max_power light: - platform: cwww