Browse Source

Finalized default behavior config package.

pull/59/head
Maurice Makaay 3 years ago
parent
commit
a1af947447
2 changed files with 14 additions and 15 deletions
  1. +6
    -15
      packages/behavior_default.yaml
  2. +8
    -0
      packages/core.yaml

+ 6
- 15
packages/behavior_default.yaml View File

@ -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

+ 8
- 0
packages/core.yaml View File

@ -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

Loading…
Cancel
Save