From 444f8d2e65af986c7b102ee10c9a02763ffee8a2 Mon Sep 17 00:00:00 2001 From: radu Date: Sun, 9 Aug 2026 10:19:17 +0700 Subject: [PATCH] com --- board/lamp.yaml | 69 +++++++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/board/lamp.yaml b/board/lamp.yaml index 4d9d195..486dfea 100644 --- a/board/lamp.yaml +++ b/board/lamp.yaml @@ -16,43 +16,44 @@ external_components: url: https://git.cloudtest.pro/radu/esp -# ota: -# on_begin: -# then: -# - light.disco_on: -# id: my_light -# red: 0% -# green: 0% -# blue: 100% -# brightness: 2% -# transition_length: 0s +ota: + platform: esphome + on_begin: + then: + - light.disco_on: + id: my_light + red: 0% + green: 0% + blue: 100% + brightness: 2% + transition_length: 0s -# on_progress: -# then: -# - front_panel.set_level: !lambda return (x / 100.0f); -# - front_panel.update_leds: + on_progress: + then: + - front_panel.set_level: !lambda return (x / 100.0f); + - front_panel.update_leds: -# on_end: -# then: -# - light.disco_on: -# id: my_light -# red: 0% -# green: 100% -# blue: 0% -# brightness: 2% -# transition_length: 0s + on_end: + then: + - light.disco_on: + id: my_light + red: 0% + green: 100% + blue: 0% + brightness: 2% + transition_length: 0s -# on_error: -# then: -# - light.disco_on: -# id: my_light -# red: 100% -# green: 0% -# blue: 0% -# brightness: 2% -# - delay: 1s -# - light.disco_off: -# id: my_light + on_error: + then: + - light.disco_on: + id: my_light + red: 100% + green: 0% + blue: 0% + brightness: 2% + - delay: 1s + - light.disco_off: + id: my_light # ---------------------------------------------------------------------- # Hardware setup