From 50a4f7694992808b77c574f779d12091e432d624 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Sat, 16 Oct 2021 23:34:49 +0200 Subject: [PATCH] Update config packages. --- packages/core.yaml | 9 +++++++-- packages/ota_feedback.yaml | 8 ++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/packages/core.yaml b/packages/core.yaml index fb5d247..7dd1d9a 100644 --- a/packages/core.yaml +++ b/packages/core.yaml @@ -1,5 +1,6 @@ # -------------------------------------------------------------------------- -# Xiaomi Mija Bedside Lamp 2 core configuration +# Substitutions as used by the configuration packages +# These can be overriden from the main device configuration file. # -------------------------------------------------------------------------- substitutions: @@ -9,6 +10,10 @@ substitutions: light_mode_text_sensor_name: ${friendly_name} Light Mode default_transition_length: 800ms +# -------------------------------------------------------------------------- +# Core setup +# -------------------------------------------------------------------------- + esphome: name: ${name} @@ -35,7 +40,7 @@ api: reboot_timeout: 0s # ---------------------------------------------------------------------- -# Hardware configuration +# Hardware setup # ---------------------------------------------------------------------- i2c: diff --git a/packages/ota_feedback.yaml b/packages/ota_feedback.yaml index d1fdb1a..368ac58 100644 --- a/packages/ota_feedback.yaml +++ b/packages/ota_feedback.yaml @@ -8,7 +8,7 @@ ota: on_begin: then: - light.disco_on: - id: ${id_light} + id: my_light red: 0% green: 0% blue: 100% @@ -23,7 +23,7 @@ ota: on_end: then: - light.disco_on: - id: ${id_light} + id: my_light red: 0% green: 100% blue: 0% @@ -33,11 +33,11 @@ ota: on_error: then: - light.disco_on: - id: ${id_light} + id: my_light red: 100% green: 0% blue: 0% brightness: 2% - delay: 1s - light.disco_off: - id: ${id_light} + id: my_light