『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 1157|回复: 3

[人体存在] 大佬们,求一份ld2410的固件

[复制链接]

2

主题

29

帖子

239

积分

中级会员

Rank: 3Rank: 3

积分
239
金钱
210
HASS币
0
发表于 2024-3-28 00:17:25 | 显示全部楼层 |阅读模式
有没有老哥做这个帖子的人体存在了 帖子地址:esp32C3人体存在传感器工程分享 - 『HomeAssistant』综合讨论区 - 『瀚思彼岸』» 智能家居技术论坛 - Powered by Discuz! (hassbian.com)
板子已经焊好了,不会弄固件,能否分享下yaml,万分感谢!!
微信截图_20240328001525.png

回复

使用道具 举报

13

主题

576

帖子

3051

积分

论坛元老

HomeAssistant

Rank: 8Rank: 8

积分
3051
金钱
2470
HASS币
20
发表于 2024-3-28 08:22:14 | 显示全部楼层
https://esphome.io/  根据传感器名字搜就有例程,一个一个慢慢调就行
回复

使用道具 举报

22

主题

656

帖子

4578

积分

版主

Rank: 7Rank: 7Rank: 7

积分
4578
金钱
3907
HASS币
40
发表于 2024-3-28 10:23:25 | 显示全部楼层
substitutions:
  device_name: "esp32-ld2410b"

esphome:
  name: "${device_name}"
  # Automatically add the mac address to the name
  # so you can use a single firmware for all devices
  name_add_mac_suffix: True

esp32:
  board: nodemcu-32s
  # board: esp32dev
  framework:
    type: arduino

wifi:
  ap: {}

api:

ota:

# Enable logging
logger:
  # baud_rate: 0

web_server:

captive_portal:

i2c:
  sda: GPIO21
  scl: GPIO22
  scan: true
  id: i2c_bus

uart:
  id: uart_bus
  tx_pin: GPIO17
  rx_pin: GPIO16
  baud_rate: 256000 # Change this according to your setting
  parity: NONE
  stop_bits: 1

ld2410:
  uart_id: uart_bus
  


switch:
  - platform: ld2410
    bluetooth:
      name: "${device_name} BT"


button:
  - platform: ld2410
    restart:
      name: "${device_name} Ld2410 Reboot"

binary_sensor:
  - platform: gpio
    pin: GPIO33
    name: "${device_name} MW"
    device_class: motion
  # - platform: ld2410
  #   has_target:
  #     name: "${device_name} Presence"
  #   has_moving_target:
  #     name: "${device_name} Moving Target"
  #   has_still_target:
  #     name: "${device_name} Still Target"
  # - platform: gpio
  #   pin: GPIO32
  #   name: "${device_name} IR"
  #   device_class: motion
  # - platform: status
  #   name: "${device_name} Online"

sensor:
  - platform: bh1750
    name: "${device_name} Illuminance"
    address: 0x23
    update_interval: 15s
  # - platform: ld2410
  #   moving_distance:
  #     name : "${device_name} Moving Distance" 
  #   still_distance:
  #     name: "${device_name} Still Distance" 
  #   moving_energy:
  #     name: "${device_name} Move Energy" 
  #   still_energy:
  #     name: "${device_name} Still Energy" 
  #   detection_distance:
  #     name: "${device_name} Detection Distance" 
  # - platform: internal_temperature
  #   name: "${device_name} Internal Temperature"

回复

使用道具 举报

2

主题

86

帖子

929

积分

高级会员

Rank: 4

积分
929
金钱
843
HASS币
0
发表于 2024-3-28 11:23:25 | 显示全部楼层
这个ld2410有什么后缀吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 11:30 , Processed in 0.085027 second(s), 29 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表