ESPectre配置模板:快速部署的YAML配置文件示例
ESPectre配置模板快速部署的YAML配置文件示例【免费下载链接】espectre ESPectre - Motion detection system based on Wi-Fi spectre analysis (CSI), with Home Assistant integration.项目地址: https://gitcode.com/GitHub_Trending/es/espectreESPectre是一款基于Wi-Fi CSI信道状态信息的运动检测系统支持与Home Assistant集成通过分析Wi-Fi信号变化实现非接触式人体移动检测。本文将提供完整的YAML配置文件示例帮助新手用户快速部署ESPectre系统。配置文件概述ESPectre提供了针对不同硬件平台的预配置模板所有配置文件均位于项目的examples/目录下。这些模板针对特定硬件优化了检测参数用户可根据自己的开发板型号选择合适的配置文件ESP32系列espectre-esp32.yaml基础版、espectre-esp32-dev.yaml开发测试版ESP32-C3系列espectre-c3.yaml、espectre-c3-dev.yamlESP32-C5系列espectre-c5.yaml、espectre-c5-dev.yamlESP32-S2/S3系列espectre-s2.yaml、espectre-s3.yaml及带LED/触摸屏功能的增强版配置基础配置模板示例以下是适用于ESP32-WROOM-32D开发板的基础配置espectre-esp32.yaml# ESPectre - ESP32 (Original/WROOM-32) Configuration # WiFi CSI-based motion detection with Home Assistant integration substitutions: git_ref: main # 分支、标签或提交哈希 detection_algorithm: mvs # 检测算法mvs默认或 ml机器学习 esphome: name: espectre friendly_name: ESPectre min_version: 2026.3.0 project: name: francescopace.espectre version: ${git_ref} esp32: board: esp32dev cpu_frequency: 240MHz framework: type: esp-idf external_components: - source: type: git url: https://github.com/francescopace/espectre ref: ${git_ref} components: [ espectre ] refresh: always espectre: id: espectre_csi detection_algorithm: ${detection_algorithm} wifi: ap: ssid: ESPectre Fallback # 配置失败时的备用热点 captive_portal: api: ota: logger:关键配置参数说明1. 硬件与算法选择开发板型号通过esp32.board指定如esp32dev、esp32-c3-devkitm-1等检测算法detection_algorithm支持两种模式mvs移动方差分割算法低资源消耗适合所有ESP32设备ml机器学习算法更高检测精度推荐ESP32-S3/C5等高性能设备图ESPectre Web监控界面展示了关键检测参数配置选项包括响应速度和运动阈值调整2. 网络与集成配置WiFi设置默认包含备用AP配置设备初次启动时可通过ESPectre Fallback热点进行网络配置Home Assistant集成通过api:组件实现状态同步和控制无需额外配置OTA更新ota:组件允许通过WiFi更新固件无需物理连接3. 高级功能配置对于带LED或显示屏的设备可使用专用配置模板如espectre-s3-led.yaml包含LED状态指示功能# 片段来自espectre-s3-led.yaml light: - platform: status_led name: ESPectre Status pin: GPIO38 id: status_led internal: false effects: - pulse: name: Motion Detected transition_length: 500ms update_interval: 500msHome Assistant仪表盘配置ESPectre提供专用的Home Assistant仪表盘配置home-assistant-dashboard.yaml可快速创建包含运动状态、历史数据和控制选项的监控界面# 片段来自home-assistant-dashboard.yaml views: - title: ESPectre type: sections sections: - type: grid cards: - type: gauge entity: sensor.espectre_movement_score name: Movement Level min: 0 max: 10 needle: true segments: - from: 0 color: green - from: 0.5 color: yellow - from: 1 color: orange - from: 2 color: red - type: tile entity: binary_sensor.espectre_motion_detected name: Motion - type: entities entities: - entity: number.espectre_threshold name: Threshold - entity: switch.espectre_calibrate name: Recalibrate部署步骤准备环境安装ESPHome推荐使用ESPHome Dashboard或Home Assistant插件获取配置文件克隆项目仓库git clone https://gitcode.com/GitHub_Trending/es/espectre选择模板从examples/目录选择适合您硬件的配置文件修改配置根据需要调整substitutions部分参数如设备名称、检测算法上传固件通过ESPHome编译并上传到设备配置优化建议阈值调整初次部署后通过Home Assistant的Threshold滑块调整灵敏度推荐起始值1.0校准操作设备安装位置固定后点击Recalibrate按钮进行环境校准算法选择旧设备如ESP32-WROOM建议使用MVS算法新设备ESP32-S3/C5可尝试ML算法获得更高精度日志调试开发调试时可使用-dev.yaml配置文件启用详细日志输出通过以上配置模板和步骤您可以在几分钟内完成ESPectre系统的部署实现基于Wi-Fi的非接触式运动检测。所有配置文件均经过严格测试确保在目标硬件上稳定运行。【免费下载链接】espectre ESPectre - Motion detection system based on Wi-Fi spectre analysis (CSI), with Home Assistant integration.项目地址: https://gitcode.com/GitHub_Trending/es/espectre创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考

相关新闻