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

View File

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

View File

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