mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
air-office-r: LEDs back on (the stick had lost its GND), status on the NEO stick
This commit is contained in:
1 parent
2f5e438424
commit
422b334582
1 file changed
+57
-54
+57
-54
@@ -3,7 +3,7 @@
|
|||||||
# Pinout:
|
# Pinout:
|
||||||
# GPIO21 PM1006 UART -> particle_uart (uart tx_pin)
|
# GPIO21 PM1006 UART -> particle_uart (uart tx_pin)
|
||||||
# GPIO22 PM1006 UART -> particle_uart (uart rx_pin)
|
# GPIO22 PM1006 UART -> particle_uart (uart rx_pin)
|
||||||
# GPIO25 TZT 8-bit WS2812 5050 stick (8 LEDs, 7 visible outside; LEDs 1-7 broken), disabled
|
# GPIO25 TZT 8-bit WS2812 5050 stick (8 LEDs, 7 visible outside) -> NEO [neo] (light esp32_rmt_led_strip), also status
|
||||||
# GPIO27 Onboard RGB LED (1x WS2812, inside), unused
|
# GPIO27 Onboard RGB LED (1x WS2812, inside), unused
|
||||||
# GPIO32 Grove SDA -> i2c (i2c sda)
|
# GPIO32 Grove SDA -> i2c (i2c sda)
|
||||||
# GPIO33 Grove SCL -> i2c (i2c scl)
|
# GPIO33 Grove SCL -> i2c (i2c scl)
|
||||||
@@ -28,6 +28,10 @@ esp32:
|
|||||||
|
|
||||||
packages:
|
packages:
|
||||||
common: !include common/common.yaml
|
common: !include common/common.yaml
|
||||||
|
status_led: !include
|
||||||
|
file: common/status_led.yaml
|
||||||
|
vars:
|
||||||
|
light_id: neo
|
||||||
|
|
||||||
i2c:
|
i2c:
|
||||||
# - id: i2c0
|
# - id: i2c0
|
||||||
@@ -53,59 +57,58 @@ uart:
|
|||||||
# number: 39
|
# number: 39
|
||||||
# inverted: true
|
# inverted: true
|
||||||
|
|
||||||
# LEDs disabled until the stick is fixed (LEDs after the first one light up randomly)
|
light:
|
||||||
# light:
|
# also the status light (common/status_led.yaml): back to its previous state when all is fine
|
||||||
# # only the first LED of the stick: the rest get garbage (broken DOUT after LED 0)
|
- platform: esp32_rmt_led_strip
|
||||||
# - platform: esp32_rmt_led_strip
|
name: NEO
|
||||||
# name: NEO
|
id: neo
|
||||||
# id: neo
|
channel_colors: GRB
|
||||||
# channel_colors: GRB
|
pin: 25
|
||||||
# pin: 25
|
num_leds: 7 # 8 on the stick, the 8th one is hidden
|
||||||
# num_leds: 1
|
chipset: ws2812
|
||||||
# chipset: ws2812
|
restore_mode: ALWAYS_OFF
|
||||||
# restore_mode: ALWAYS_OFF
|
effects:
|
||||||
# effects:
|
- random:
|
||||||
# - random:
|
- random:
|
||||||
# - random:
|
name: "My Slow Random Effect"
|
||||||
# name: "My Slow Random Effect"
|
transition_length: 30s
|
||||||
# transition_length: 30s
|
update_interval: 30s
|
||||||
# update_interval: 30s
|
- random:
|
||||||
# - random:
|
name: "My Fast Random Effect"
|
||||||
# name: "My Fast Random Effect"
|
transition_length: 4s
|
||||||
# transition_length: 4s
|
update_interval: 5s
|
||||||
# update_interval: 5s
|
- strobe:
|
||||||
# - strobe:
|
- strobe:
|
||||||
# - strobe:
|
name: Strobe Effect With Custom Values
|
||||||
# name: Strobe Effect With Custom Values
|
colors:
|
||||||
# colors:
|
- state: True
|
||||||
# - state: True
|
brightness: 100%
|
||||||
# brightness: 100%
|
red: 100%
|
||||||
# red: 100%
|
green: 90%
|
||||||
# green: 90%
|
blue: 0%
|
||||||
# blue: 0%
|
duration: 500ms
|
||||||
# duration: 500ms
|
- state: False
|
||||||
# - state: False
|
duration: 250ms
|
||||||
# duration: 250ms
|
- state: True
|
||||||
# - state: True
|
brightness: 100%
|
||||||
# brightness: 100%
|
red: 0%
|
||||||
# red: 0%
|
green: 100%
|
||||||
# green: 100%
|
blue: 0%
|
||||||
# blue: 0%
|
duration: 500ms
|
||||||
# duration: 500ms
|
- flicker:
|
||||||
# - flicker:
|
- flicker:
|
||||||
# - flicker:
|
name: Flicker Effect With Custom Values
|
||||||
# name: Flicker Effect With Custom Values
|
alpha: 95%
|
||||||
# alpha: 95%
|
intensity: 1.5%
|
||||||
# intensity: 1.5%
|
- addressable_rainbow:
|
||||||
# - addressable_rainbow:
|
- addressable_rainbow:
|
||||||
# - addressable_rainbow:
|
name: Rainbow Effect With Custom Values
|
||||||
# name: Rainbow Effect With Custom Values
|
speed: 10
|
||||||
# speed: 10
|
width: 50
|
||||||
# width: 50
|
- addressable_scan:
|
||||||
# - addressable_scan:
|
- addressable_scan:
|
||||||
# - addressable_scan:
|
name: Scan Effect With Custom Values
|
||||||
# name: Scan Effect With Custom Values
|
move_interval: 100ms
|
||||||
# move_interval: 100ms
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
# https://blissair.com/what-is-pm-2-5.htm
|
# https://blissair.com/what-is-pm-2-5.htm
|
||||||
|
|||||||
Reference in new issue
Block a user