本帖最后由 ryanh7 于 2022-8-7 16:02 编辑
https://bbs.hassbian.com/thread-17198-1-1.html
支持某国产芯片的毫米波雷达,应该同样适用于LD1115H。只需要连接VCC,GND,TX(CEM5855H)->RX(MCU)。阈值配置参考Number
esphome配置
#引用组件库示例
external_components:
- source: github://ryanh7/esphome-custom-components
components: [ cem5855h ]
#配置示例
logger:
level: VERBOSE #如果需要在日志中查看串口信息,设置日志级别为VERBOSE
uart:
id: uart_cem5855h
baud_rate: 115200
rx_pin: RX #你的RX引脚
binary_sensor:
- platform: cem5855h
threshold: #(可选)触发移动的阈值,支持数字或者Number(esphome)
moving: 250 #示例配置-数字
occupancy: #示例配置-esphome number
name: "occ"
value: 250 #阈值
min_value: 10 #可调节的最小阈值
max_value: 99999 #可调节的最大阈值
step: 10 #单步调节量
moving: #(可选)有人移动传感器
name: mov
filters:
- delayed_off: 3s
occupancy: #(可选)有人静止传感器
name: occ
filters:
- delayed_off: 3s
motion: #(可选)人在传感器
name: motion
filters:
- delayed_off: 3s #设置一个合适的状态持续时间
效果
控制仅用于调试,保存需要修改esphome配置
|