mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 16:35:12 +02:00
72 lines
1.6 KiB
YAML
72 lines
1.6 KiB
YAML
---
|
|
# Hardware: M5Stack ATOM Lite
|
|
# Pinout:
|
|
# GPIO19 -> spi (spi mosi_pin)
|
|
# GPIO21 -> rf_tx (remote_transmitter)
|
|
# GPIO22 -> spi (spi miso_pin)
|
|
# GPIO23 -> spi (spi clk_pin)
|
|
# GPIO25 -> rf_rx (remote_receiver)
|
|
# GPIO26 Grove SDA
|
|
# GPIO27 NEO (ATOM RGB LED) -> atom_led (status LED, common/status_led_atom.yaml)
|
|
# GPIO32 Grove SCL
|
|
# GPIO33 -> cc1101 (cc1101 cs_pin)
|
|
substitutions:
|
|
device: rf
|
|
name: RF Bridge
|
|
area: Living Room & Kitchen
|
|
comment: Fireplace | RF Gateway
|
|
|
|
esphome:
|
|
name: mcu-${device}
|
|
friendly_name: ${name}
|
|
area: ${area}
|
|
comment: ${comment}
|
|
|
|
esp32:
|
|
variant: esp32
|
|
flash_size: 4MB
|
|
framework:
|
|
type: esp-idf
|
|
|
|
packages:
|
|
common: !include common/common.yaml
|
|
ipv6_only: !include common/ipv6_only.yaml
|
|
status_led: !include common/status_led_atom.yaml
|
|
|
|
spi:
|
|
clk_pin: 23
|
|
mosi_pin: 19
|
|
miso_pin: 22
|
|
|
|
cc1101:
|
|
cs_pin: 33
|
|
frequency: 433.92MHz
|
|
|
|
radio_frequency:
|
|
- platform: ir_rf_proxy
|
|
name: RF Proxy Transmitter
|
|
id: rf_proxy_tx
|
|
remote_transmitter_id: rf_tx
|
|
frequency: 433.92MHz
|
|
- platform: ir_rf_proxy
|
|
name: RF Proxy Receiver
|
|
id: rf_proxy_rx
|
|
remote_receiver_id: rf_rx
|
|
frequency: 433.92MHz
|
|
|
|
remote_receiver:
|
|
- id: rf_rx
|
|
pin: 25
|
|
dump: all
|
|
|
|
remote_transmitter:
|
|
- id: rf_tx
|
|
pin: 21
|
|
carrier_duty_percent: 100%
|
|
on_transmit:
|
|
then:
|
|
- cc1101.begin_tx
|
|
on_complete:
|
|
then:
|
|
- cc1101.begin_rx
|