From a1af94744758df4c73ee8e2eb4bb26413ab72145 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Sun, 17 Oct 2021 00:46:26 +0200 Subject: [PATCH] Finalized default behavior config package. --- packages/behavior_default.yaml | 21 ++++++--------------- packages/core.yaml | 8 ++++++++ 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/packages/behavior_default.yaml b/packages/behavior_default.yaml index c0c4489..933ceea 100644 --- a/packages/behavior_default.yaml +++ b/packages/behavior_default.yaml @@ -90,21 +90,6 @@ light: luke: { color_temperature: 400 mireds } warm: { color_temperature: 588 mireds } -# This text sensor propagates the currently active light mode. -# The possible light modes are: "off", "rgb", "white" and "night". -text_sensor: - - platform: xiaomi_bslamp2 - name: ${light_mode_text_sensor_name} - id: my_light_mode - -# This float output can be used to control the front panel illumination + -# level indicator LEDs. Value 0.0 turns off the illumination. Other values -# (up to 1.0) turn on the illumination and set the level indicator to the -# requested level. -output: - - platform: xiaomi_bslamp2 - id: my_front_panel_illumination - # Binary sensors can be created for handling front panel touch / release # events. To specify what part of the front panel to look at, the "for" # parameter can be set to: "POWER_BUTTON", "COLOR_BUTTON" or "SLIDER". @@ -161,3 +146,9 @@ sensor: id: my_light brightness: !lambda return x; +# This text sensor propagates the currently active light mode. +# The possible light modes are: "off", "rgb", "white" and "night". +text_sensor: + - platform: xiaomi_bslamp2 + name: ${light_mode_text_sensor_name} + id: my_light_mode diff --git a/packages/core.yaml b/packages/core.yaml index eb6b5f2..0db641a 100644 --- a/packages/core.yaml +++ b/packages/core.yaml @@ -99,3 +99,11 @@ xiaomi_bslamp2: i2c: front_panel_i2c address: 0x2C trigger_pin: GPIO16 + +# This float output can be used to control the front panel illumination + +# level indicator LEDs. Value 0.0 turns off the illumination. Other values +# (up to 1.0) turn on the illumination and set the level indicator to the +# requested level. +output: + - platform: xiaomi_bslamp2 + id: my_front_panel_illumination