diff options
| author | manuel <manuel@mausz.at> | 2026-01-22 23:03:03 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2026-01-22 23:03:03 +0100 |
| commit | b012f928b56c0ec224178eee11b4062e3848032d (patch) | |
| tree | fc235f17f2491a13ea25ebe9446b1d4b9c3649c0 /esphome/config | |
| parent | 2cf78c3fc80bcadf5fc31f217b78b187448dc5ab (diff) | |
| download | arduino-b012f928b56c0ec224178eee11b4062e3848032d.tar.gz arduino-b012f928b56c0ec224178eee11b4062e3848032d.tar.bz2 arduino-b012f928b56c0ec224178eee11b4062e3848032d.zip | |
Make sure to power off warm+cold if light is off
Diffstat (limited to 'esphome/config')
| -rw-r--r-- | esphome/config/toiletlight.yaml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/esphome/config/toiletlight.yaml b/esphome/config/toiletlight.yaml index 41cf154..68b4f94 100644 --- a/esphome/config/toiletlight.yaml +++ b/esphome/config/toiletlight.yaml | |||
| @@ -117,6 +117,10 @@ output: | |||
| 117 | float newlvl = (state) ? state * (max - min) + min : 0; | 117 | float newlvl = (state) ? state * (max - min) + min : 0; |
| 118 | ESP_LOGD("cal", "dim: %f -> %f", state, newlvl); | 118 | ESP_LOGD("cal", "dim: %f -> %f", state, newlvl); |
| 119 | output->set_level(newlvl); | 119 | output->set_level(newlvl); |
| 120 | if (newlvl == 0) { | ||
| 121 | id(pwm_warm).set_level(0); | ||
| 122 | id(pwm_cold).set_level(0); | ||
| 123 | } | ||
| 120 | 124 | ||
| 121 | # closed loop not implemented | 125 | # closed loop not implemented |
| 122 | #sensor: | 126 | #sensor: |
