From 716d875c4a8b8b4e0ba13ffd4f12c4bfae0691ed Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Sat, 4 Sep 2021 13:51:37 +0200 Subject: [PATCH] Added startup animation. Kinda okay'ish in sync with Vindriktning animation. --- esphome/sleepingroom.yaml | 46 +++++++++++++++++++++++++++++++-------- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/esphome/sleepingroom.yaml b/esphome/sleepingroom.yaml index d4deae1..822c9c8 100644 --- a/esphome/sleepingroom.yaml +++ b/esphome/sleepingroom.yaml @@ -3,15 +3,43 @@ esphome: platform: ESP32 board: nodemcu-32s -# Startup animation -#on_boot: -# then: - -#script: -# - id: startup_animation -# then: -# - delay: 5s -# - + on_boot: + then: + - light.turn_on: + id: co2_light + red: 0% + green: 100% + blue: 9% + - delay: 1.5s + - light.turn_on: + id: co2_light + red: 100% + green: 75% + blue: 0% + - delay: 1.5s + - light.turn_on: + id: co2_light + red: 100% + green: 0% + blue: 0% + - delay: 1.5s + - light.turn_on: + id: co2_light + red: 100% + green: 75% + blue: 0% + - delay: 1.5s + - light.turn_on: + id: co2_light + red: 0% + green: 100% + blue: 9% + - text_sensor.template.publish: + id: co2_warn + state: "grün" + - text_sensor.template.publish: + id: pm25_warn + state: "grün" wifi: ssid: "Voltage-legacy"