Fixed status led and mute led color

This commit is contained in:
Nikolay Vasilchuk
2021-10-15 14:37:28 +03:00
parent f6eb0983db
commit 33bf983fa6
3 changed files with 14 additions and 6 deletions

View File

@@ -7,7 +7,8 @@ esphome:
on_boot:
priority: -100
then:
script.execute: state_ready
- script.execute: state_ready
- script.execute: state_no_call
wifi:
ssid: $wifi_ssid
@@ -29,10 +30,6 @@ logger:
ota:
password: $ota_password
# Blue status led
status_led:
pin: $pin_led_blue
globals:
- id: mode_auto_open
type: bool

View File

@@ -1,5 +1,10 @@
# RGB Led (not exported to Home Assistant)
light:
- platform: status_led
internal: true
name: "Status LED"
pin: $pin_led_blue
- platform: rgb
id: rgb_led
name: "${board_name} led"

View File

@@ -92,6 +92,7 @@ script:
# Permanent blink green led with one flash
- id: led_blink_green_1_on
then:
- logger.log: "Led blink green on"
- script.execute: led_off
- light.turn_on:
id: rgb_led
@@ -100,6 +101,7 @@ script:
# Once blink blue led with one flash
- id: led_blink_blue_1_once
then:
- logger.log: "Led blink blue once"
- script.execute: led_off
- light.turn_on:
id: rgb_led
@@ -114,6 +116,7 @@ script:
# Permanent on green led with soft brightness
- id: led_green_on_soft
then:
- logger.log: "Led green soft on"
- script.execute: led_off
- light.turn_on:
id: rgb_led
@@ -126,6 +129,7 @@ script:
# Permanent blink red led with one flash
- id: led_blink_red_1_on
then:
- logger.log: "Led blink red"
- script.execute: led_off
- light.turn_on:
id: rgb_led
@@ -134,6 +138,7 @@ script:
# Permanent on red led with soft brightness
- id: led_red_on_soft
then:
- logger.log: "Led red on"
- script.execute: led_off
- light.turn_on:
id: rgb_led
@@ -146,12 +151,13 @@ script:
# Permanent on soft blue led
- id: led_blue_on_soft
then:
- logger.log: "Led blue soft on"
- script.execute: led_off
- light.turn_on:
id: rgb_led
brightness: !lambda "return id(led_brightness).state / 10;"
red: 0%
green: 70%
green: 40%
blue: 100%
transition_length: 100ms