Browse Source

Updated name of light to '...RGBWW Light' instead of '...RGBW Light'.

pull/30/head
Maurice Makaay 3 years ago
parent
commit
d0dde2d637
1 changed files with 42 additions and 42 deletions
  1. +42
    -42
      example.yaml

+ 42
- 42
example.yaml View File

@ -42,6 +42,47 @@ api:
ota: ota:
password: "Password-For-Flashing-This-Device-Over-The-Air" password: "Password-For-Flashing-This-Device-Over-The-Air"
# These OTA triggers are used to provide some visual feedback during the OTA
# flashing process. The light is turned blue when the upgrade starts, the
# brightness indicator will represent the update progress (fills up from 0%
# to 100%), the light will flash red when the upgrade fails or green when the
# upgrade succeeds.
# You can safely remove these if you don't want the visual feedback.
on_begin:
then:
- light.disco_on:
id: ${id_light}
red: 0%
green: 0%
blue: 100%
brightness: 2%
transition_length: 0s
on_progress:
then:
- output.set_level:
id: ${id_front_panel_illumination}
level: !lambda return (x / 100.0f);
on_end:
then:
- light.disco_on:
id: ${id_light}
red: 0%
green: 100%
blue: 0%
brightness: 2%
transition_length: 0s
on_error:
then:
- light.disco_on:
id: ${id_light}
red: 100%
green: 0%
blue: 0%
brightness: 2%
- delay: 1s
- light.disco_off:
id: ${id_light}
# The log level can be raised when needed for debugging the firmware. For # The log level can be raised when needed for debugging the firmware. For
# production, a low log level is recommended. Mainly because high volume log # production, a low log level is recommended. Mainly because high volume log
# output might interfere with the API/WiFi connection stability. So when # output might interfere with the API/WiFi connection stability. So when
@ -78,7 +119,7 @@ esphome:
light: light:
- platform: xiaomi_bslamp2 - platform: xiaomi_bslamp2
id: ${id_light} id: ${id_light}
name: ${friendly_name} RGBW Light
name: ${friendly_name} RGBWW Light
default_transition_length: ${transition_length} default_transition_length: ${transition_length}
# When the brightness is changed, then update the level indicator # When the brightness is changed, then update the level indicator
# on the front panel accordingly. In night light mode, turn off # on the front panel accordingly. In night light mode, turn off
@ -200,44 +241,3 @@ sensor:
id: ${id_light} id: ${id_light}
brightness: !lambda return x; brightness: !lambda return x;
# These OTA triggers are used to provide some visual feedback during the OTA
# flashing process. The light is turned blue when the upgrade starts, the
# brightness indicator will represent the update progress (fills up from 0%
# to 100%), the light will flash red when the upgrade fails or green when the
# upgrade succeeds.
# You can safely remove this section if you don't want the visual feedback.
ota_triggers:
on_begin:
then:
- light.disco_on:
id: ${id_light}
red: 0%
green: 0%
blue: 100%
brightness: 2%
transition_length: 0s
on_progress:
then:
- output.set_level:
id: ${id_front_panel_illumination}
level: !lambda return (x / 100.0f);
on_end:
then:
- light.disco_on:
id: ${id_light}
red: 0%
green: 100%
blue: 0%
brightness: 2%
transition_length: 0s
on_error:
then:
- light.disco_on:
id: ${id_light}
red: 100%
green: 0%
blue: 0%
brightness: 2%
- delay: 1s
- light.disco_off:
id: ${id_light}

Loading…
Cancel
Save