I have a HLK-LD1115H and a Wemos D1 Mini that I am trying to set up for mmWave Presense Detection like this (mmWave Presence Detection - ESPHome style - Share your Projects! - Home Assistant Community (home-assistant.io)) as one of my first more advanced projects using EspHome.
- When logging the UART interaction I do see mov_ and occ_ values when moving in front of the sensor and when nothing is moving in front of the sensor.
- I’m not sure how to use the Vo, sensor output pin and if it provides anything useful. I thought it would be similar to the DFRobot chip and output true/false depending on if motion is detected.
- If the Vo pin doesn’t provide anything useful, I still need to figure out how to translate the mov_ and occ_ values to a binary sensor for use in home assistant automations.
Here is the sensor schematic for the HLK-LD1115H.
Here is the additional documentation on the HLK-LD1115H.
Here is my yaml code:
esphome:
name: human-presense
esp8266:
board: d1_mini
# Enable logging
logger:
level: VERY_VERBOSE
baud_rate: 0
# Enable Home Assistant API
api:
uart:
id: uart_bus
tx_pin: GPIO4
rx_pin: GPIO5
baud_rate: 115200
debug:
direction: BOTH
dummy_receiver: true
after:
delimiter: "\n"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
binary_sensor:
- platform: gpio
name: mmwave_in_bedroom
pin:
number: D6
mode:
input: true
pullup: false
ota:
password: otaPassword
wifi:
ssid: SsidName
password: SsidPassword
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Human-Presense Fallback Hotspot"
password: "hotSpotPassword"
captive_portal:
Here’s how I wired it up: