Files
esphome-configs/mcu-air-office-r.yaml
T
randy c5ab280725 air-office-r: document hardware, disable the LEDs until the stick is fixed
The TZT 8-bit WS2812 stick lights up random colours after the first LED.
2026-09-29 23:22:17 +02:00

117 lines
2.9 KiB
YAML

---
# Hardware: IKEA VINDRIKTNING (modded) + M5Stack M5Stamp Pico
# Pinout:
# GPIO21 PM1006 UART -> particle_uart (uart tx_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
# GPIO27 Onboard RGB LED (1x WS2812, inside), unused
# GPIO32 Grove SDA -> i2c (i2c sda)
# GPIO33 Grove SCL -> i2c (i2c scl)
substitutions:
device: air-office-r
name: Office R Air
name_short: Office R
area: Office R
comment: AirQ Monitoring
esphome:
name: mcu-${device}
friendly_name: ${name}
area: ${area}
comment: ${comment}
esp32:
variant: esp32
toolchain: esp-idf
framework:
type: esp-idf
packages:
common: !include common/common.yaml
i2c:
# - id: i2c0
sda: 32
scl: 33
scan: true #false
frequency: 100kHz
# - id: i2c1
# sda: 25
# scl: 22
# scan: true #false
uart:
id: particle_uart
tx_pin: 21
rx_pin: 22
baud_rate: 9600
# binary_sensor:
# - platform: gpio
# # name: ${name} Button
# pin:
# number: 39
# inverted: true
# LEDs disabled until the stick is fixed (LEDs after the first one light up randomly)
# light:
# # only the first LED of the stick: the rest get garbage (broken DOUT after LED 0)
# - platform: esp32_rmt_led_strip
# name: NEO
# id: neo
# channel_colors: GRB
# pin: 25
# num_leds: 1
# chipset: ws2812
# restore_mode: ALWAYS_OFF
# effects:
# - random:
# - random:
# name: "My Slow Random Effect"
# transition_length: 30s
# update_interval: 30s
# - random:
# name: "My Fast Random Effect"
# transition_length: 4s
# update_interval: 5s
# - strobe:
# - strobe:
# name: Strobe Effect With Custom Values
# colors:
# - state: True
# brightness: 100%
# red: 100%
# green: 90%
# blue: 0%
# duration: 500ms
# - state: False
# duration: 250ms
# - state: True
# brightness: 100%
# red: 0%
# green: 100%
# blue: 0%
# duration: 500ms
# - flicker:
# - flicker:
# name: Flicker Effect With Custom Values
# alpha: 95%
# intensity: 1.5%
# - addressable_rainbow:
# - addressable_rainbow:
# name: Rainbow Effect With Custom Values
# speed: 10
# width: 50
# - addressable_scan:
# - addressable_scan:
# name: Scan Effect With Custom Values
# move_interval: 100ms
sensor:
# https://blissair.com/what-is-pm-2-5.htm
- platform: pm1006
uart_id: particle_uart
update_interval: 20s
pm_2_5:
name: Particulate Matter 2.5µm Concentration