From 91091b2313316fb3ee943c43d3d237b84a449bfe Mon Sep 17 00:00:00 2001 From: rafal Date: Sun, 18 Jan 2026 23:53:04 +0000 Subject: [PATCH] Upload files to "/" --- README.md | 2 ++ sample.yaml | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++ sensors.yaml | 51 ++++++++++++++++++++++++++++++++++++++++ switches.yaml | 17 ++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 README.md create mode 100644 sample.yaml create mode 100644 sensors.yaml create mode 100644 switches.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..e2cb205 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# mmWaveLD2410c +Human presence LD2410c diff --git a/sample.yaml b/sample.yaml new file mode 100644 index 0000000..020057a --- /dev/null +++ b/sample.yaml @@ -0,0 +1,65 @@ +esphome: + name: radar-lazienka + comment: Radar Lazienka + friendly_name: Radar Lazienka + name_add_mac_suffix: True + platformio_options: + board_build.flash_mode: dio + board_build.f_cpu: 80000000L + project: + name: radar.lazienka + version: 1U + min_version: 2025.5.1 + +external_components: + - source: + type: git + url: https://github.com/screek-workshop/custom_components_support_for_screek_1u + ref: master + components: [ ld2410 ] + +esp32: + board: lolin_s2_mini + framework: + type: esp-idf + +improv_serial: + +logger: + hardware_uart: uart0 + +api: + +ota: + - platform: esphome + password: "" + +wifi: + ssid: "xxx" + password: "zzz" + output_power: 19dB + power_save_mode: LIGHT + reboot_timeout: 10min + fast_connect: true + #manual_ip: + #static_ip: 20.0.10.2 + #gateway: 20.0.0.1 + #subnet: 255.255.0.0 + #dns1: 20.0.0.1 + #dns2: 8.8.8.8 + ap: + ssid: "mmwave" + password: "Pass.Word" + +captive_portal: + +web_server: + port: 80 + +packages: + mmwave_binary_sensors: github://rafalrk/mmWaveLD2410c/binary_sensors.yaml@main + mmwave_sensors: github://rafalrk/mmWaveLD2410c/sensors.yaml@main + mmwave_numbers: github://rafalrk/mmWaveLD2410c/numbers.yaml@main + mmwave_switches: github://rafalrk/mmWaveLD2410c/switches.yaml@main + mmwave_buttons: github://rafalrk/mmWaveLD2410c/buttons.yaml@main + mmwave_led_uart_time: github://rafalrk/mmWaveLD2410c/led_time_uart.yaml@main diff --git a/sensors.yaml b/sensors.yaml new file mode 100644 index 0000000..e64a6a7 --- /dev/null +++ b/sensors.yaml @@ -0,0 +1,51 @@ +# ======================= +# SENSORS +# ======================= +sensor: + - platform: internal_temperature + id: sys_esp_temperature + name: ESP Temperature + unit_of_measurement: °C + device_class: temperature + update_interval: 45s + entity_category: diagnostic + + - platform: uptime + name: Uptime + id: sys_uptime + update_interval: 10s + + - platform: wifi_signal + name: RSSI + id: wifi_signal_db + update_interval: 5s + entity_category: diagnostic + + - platform: template + id: esp_memory + name: ESP Free Memory + lambda: return heap_caps_get_free_size(MALLOC_CAP_INTERNAL) / 1024; + unit_of_measurement: kB + entity_category: diagnostic + + - platform: ld2410 + moving_distance: + name: Moving Distance + id: moving_distance + still_distance: + name: Still Distance + id: still_distance + moving_energy: + name: Move Energy + id: moving_energy + still_energy: + name: Still Energy + id: still_energy + detection_distance: + name: Detection Distance + id: detection_distance + force_update: true + filters: + - median: + window_size: 3 + send_every: 1 diff --git a/switches.yaml b/switches.yaml new file mode 100644 index 0000000..227b2d6 --- /dev/null +++ b/switches.yaml @@ -0,0 +1,17 @@ +# ======================= +# SWITCHES (TRYBY) +# ======================= +switch: + - platform: template + name: "Ignore doors / mirrors / pet" + id: ignore_static_reflections + optimistic: true + restore_mode: RESTORE_DEFAULT_OFF + entity_category: config + + - platform: template + name: "Shower / WC mode" + id: shower_mode + optimistic: true + restore_mode: RESTORE_DEFAULT_OFF + entity_category: config