From 3c2ffd111fa18b2059ca6077b09b2e7160c9eca5 Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Mon, 19 Apr 2021 00:22:21 +0200 Subject: [PATCH] Small configuration updates in line with new documentation. --- doc/example.yaml | 19 +++++++++---------- s | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 10 deletions(-) create mode 100644 s diff --git a/doc/example.yaml b/doc/example.yaml index 05959b1..919876b 100644 --- a/doc/example.yaml +++ b/doc/example.yaml @@ -9,11 +9,11 @@ substitutions: # Derive component identifiers, based on the name. id_light: ${name} - id_front_panel_illumination: ${name}_front_panel_output + id_light_mode: ${name}_light_mode id_power_button: ${name}_power_button id_color_button: ${name}_color_button id_slider_level: ${name}_slider_level - id_light_mode: ${name}_light_mode + id_front_panel_illumination: ${name}_front_panel_illumination # -------------------------------------------------------------------------- # Use your own preferences for these components. @@ -32,11 +32,11 @@ captive_portal: api: password: "Password-To-Link-HomeAssistant-To-This-Device" - # Disable the reboot timeout. By default, the lamp reboots - # after 15 minutes without any client connections (e.g. when - # home assistant is off line, or when the WiFi is broken). - # Reboots are annoying though, because the RGBWW LEDs will turn - # off during the reboot, causing the light to flicker. + # Disable the reboot timeout. By default, the lamp reboots after 15 + # minutes without any client connections (e.g. when home assistant is off + # line, or when the WiFi is broken). Reboots are annoying though, because + # the RGBWW LEDs will turn off during the reboot, causing the light to + # flicker. reboot_timeout: 0s ota: @@ -131,9 +131,8 @@ text_sensor: id: ${id_light_mode} # This float output controls the front panel illumination + level indicator. -# 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. +# 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: ${id_front_panel_illumination} diff --git a/s b/s new file mode 100644 index 0000000..aa4848d --- /dev/null +++ b/s @@ -0,0 +1,47 @@ +diff --git a/doc/example.yaml b/doc/example.yaml +index 05959b1..919876b 100644 +--- a/doc/example.yaml ++++ b/doc/example.yaml +@@ -9,11 +9,11 @@ substitutions: +  + # Derive component identifiers, based on the name. + id_light: ${name} +- id_front_panel_illumination: ${name}_front_panel_output ++ id_light_mode: ${name}_light_mode + id_power_button: ${name}_power_button + id_color_button: ${name}_color_button + id_slider_level: ${name}_slider_level +- id_light_mode: ${name}_light_mode ++ id_front_panel_illumination: ${name}_front_panel_illumination +  + # -------------------------------------------------------------------------- + # Use your own preferences for these components. +@@ -32,11 +32,11 @@ captive_portal: +  + api: + password: "Password-To-Link-HomeAssistant-To-This-Device" +- # Disable the reboot timeout. By default, the lamp reboots +- # after 15 minutes without any client connections (e.g. when +- # home assistant is off line, or when the WiFi is broken). +- # Reboots are annoying though, because the RGBWW LEDs will turn +- # off during the reboot, causing the light to flicker. ++ # Disable the reboot timeout. By default, the lamp reboots after 15 ++ # minutes without any client connections (e.g. when home assistant is off ++ # line, or when the WiFi is broken). Reboots are annoying though, because ++ # the RGBWW LEDs will turn off during the reboot, causing the light to ++ # flicker. + reboot_timeout: 0s +  + ota: +@@ -131,9 +131,8 @@ text_sensor: + id: ${id_light_mode} +  + # This float output controls the front panel illumination + level indicator. +-# 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. ++# 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: ${id_front_panel_illumination}