Hi, I’m trying to get zones set up for my LD2420 mmWave sensor in Home Assistant, via plotly, and I can’t seem to get it to work.
I’ve set up the sensor in ESPHome. It works. I’ve added it to Home Assistant, and can see the distance and presence being detected.
Here’s the sensor ESPHome code:
esphome:
name: esp32_bme688_test
esp32:
board: esp32dev
framework:
type: esp-idf
logger:
api:
port: 6053
uart:
# Movement Sensor (LD2420)
id: uart_bus
rx_pin: GPIO16
tx_pin: GPIO17
baud_rate: 115200
parity: NONE
stop_bits: 1
ld2420:
select:
- platform: ld2420
operating_mode:
name: Operating Mode
number:
- platform: ld2420
presence_timeout:
name: Detection Presence Timeout
min_gate_distance:
name: Detection Gate Minimum
max_gate_distance:
name: Detection Gate Maximum
gate_select:
name: Select Gate to Set
still_threshold:
name: Set Still Threshold Value
move_threshold:
name: Set Move Threshold Value
binary_sensor:
# Movement Sensor (LD2420)
- platform: ld2420
has_target:
name: Presence
sensor:
# Movement Sensor (LD2420)
- platform: ld2420
moving_distance:
name : Moving Distance
I want to be able to:
- Get a visual feel for how it works, the angles, the distances. For this, I’d like to see myself move around on the graph.
- Define zones and limits/exclusion zones.
I’m trying to add a plotly graph, as I found advised in the HA forum and linked to here.
I’ve tried to follow the following guides/yamls:
I have a feeling there’s an issue with sensor names. But it could be that that code is incompatible with this specific sensor? Or this sensor doesn’t implement zones the same?
I’ve tried substituting the substitutions (eg. the “sensor.everything_presence_lite_name_” with “sensor.esp32_bme688_test” or with the name of the ld2420 sensor from my own yaml), but that doesn’t fix it.
Has anybody got this working with this specific LD2420 sensor? Or can you see what I’m missing?