--- # 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) -> NEO [neo] (light esp32_rmt_led_strip), also status # 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: advanced: flash_chip: gd type: esp-idf packages: common: !include common/common.yaml status_led: !include file: common/status_led.yaml vars: light_id: neo 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 light: # also the status light (common/status_led.yaml): back to its previous state when all is fine - platform: esp32_rmt_led_strip name: NEO id: neo channel_colors: GRB pin: 25 num_leds: 7 # 8 on the stick, the 8th one is hidden 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