1deefb1d70
Initial commit including source code, readme, and license.
100 lines
1.8 KiB
YAML
100 lines
1.8 KiB
YAML
substitutions:
|
|
name: "heartbeat60hz"
|
|
friendly_name: "60Hz Heartbeat Presence"
|
|
|
|
esphome:
|
|
name: "${name}"
|
|
friendly_name: "${friendly_name}"
|
|
name_add_mac_suffix: true
|
|
project:
|
|
name: "seeedstudio.mr60bha2_kit"
|
|
version: "3.5"
|
|
platformio_options:
|
|
board_upload.maximum_size: 4194304
|
|
min_version: "2024.3.2" # Fix logger compile error on ESP32-C6 esphome#6323
|
|
|
|
esp32:
|
|
board: esp32-c6-devkitc-1
|
|
variant: esp32c6
|
|
flash_size: 4MB # upload.flash_size
|
|
framework:
|
|
type: esp-idf
|
|
|
|
external_components:
|
|
- source:
|
|
type: git
|
|
url: https://github.com/limengdu/MR60BHA2_ESPHome_external_components
|
|
ref: main
|
|
components: [seeed_mr60bha2]
|
|
refresh: 0s
|
|
|
|
# Enable logging
|
|
logger:
|
|
hardware_uart: USB_SERIAL_JTAG
|
|
# level: DEBUG
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
reboot_timeout: 0s
|
|
encryption:
|
|
key: !secret api_encryption_key
|
|
|
|
# Enable OTA updates
|
|
ota:
|
|
- platform: esphome
|
|
password: !secret ota_password
|
|
|
|
# Enable IPv6 (for OpenThread)
|
|
network:
|
|
enable_ipv6: true
|
|
|
|
# OpenThread communication
|
|
openthread:
|
|
tlv: !secret thread_tlv
|
|
|
|
light:
|
|
- platform: esp32_rmt_led_strip
|
|
id: led_ring
|
|
name: "60Hz Sensor RGB Light"
|
|
pin: GPIO1
|
|
num_leds: 1
|
|
rgb_order: GRB
|
|
chipset: ws2812
|
|
|
|
i2c:
|
|
sda: GPIO22
|
|
scl: GPIO23
|
|
scan: true
|
|
id: bus_a
|
|
|
|
uart:
|
|
id: uart_bus
|
|
baud_rate: 115200
|
|
rx_pin: 17
|
|
tx_pin: 16
|
|
parity: NONE
|
|
stop_bits: 1
|
|
|
|
seeed_mr60bha2:
|
|
id: my_seeed_mr60bha2
|
|
|
|
binary_sensor:
|
|
- platform: seeed_mr60bha2
|
|
has_target:
|
|
name: "Person Information"
|
|
|
|
sensor:
|
|
- platform: bh1750
|
|
name: "60Hz Sensor Illuminance"
|
|
address: 0x23
|
|
update_interval: 1s
|
|
- platform: seeed_mr60bha2
|
|
breath_rate:
|
|
name: "Real-time respiratory rate"
|
|
heart_rate:
|
|
name: "Real-time heart rate"
|
|
distance:
|
|
name: "Distance to detection object"
|
|
num_targets:
|
|
name: "Target Number"
|