From 2463b7df597e9da108096d9f109b0576286ae461 Mon Sep 17 00:00:00 2001 From: sen Date: Sat, 15 Nov 2025 08:03:45 +0800 Subject: [PATCH] update for esphome 2025.10 --- 1u/yaml/human-sensor-1u-github.yaml | 49 +++++------------------------ 1 file changed, 8 insertions(+), 41 deletions(-) diff --git a/1u/yaml/human-sensor-1u-github.yaml b/1u/yaml/human-sensor-1u-github.yaml index 900a5d6..3e479e8 100644 --- a/1u/yaml/human-sensor-1u-github.yaml +++ b/1u/yaml/human-sensor-1u-github.yaml @@ -9,21 +9,10 @@ esphome: platformio_options: board_build.flash_mode: dio board_build.f_cpu: 80000000L - on_boot: - priority: 900 - then: - lambda: |- - id(cpu_speed) = ESP.getCpuFreqMHz() ; project: name: Screek.Human_Presence_Sensor version: 1U - min_version: 2023.6.1 - -globals: - - id: cpu_speed - type: int - restore_value: no - initial_value: '0' + min_version: 2025.5.1 external_components: # - source: github://screek-workshop/custom_components_support_for_screek_1u @@ -31,14 +20,12 @@ external_components: type: git url: https://github.com/screek-workshop/custom_components_support_for_screek_1u ref: master - # components: [ ld2410, uart ] + components: [ ld2410 ] esp32: board: lolin_s2_mini framework: - type: arduino - version: 2.0.9 - platform_version: 6.3.2 + type: esp-idf improv_serial: @@ -50,12 +37,9 @@ api: # key: "YOUR-API-PASSWORD" ota: - # This won't work for the original firmware(we use diffrent ota password), - # so if you want to turn it into your own OTA, - # make sure to completely flash your custom yaml in the firmware once. - # after that, you may always ota with your own password. - password: "all-things-in-their-being-are-good-for-something" # words by Socrates - safe_mode: False + - platform: esphome + # use your own ota password plz. this is a words by Socrates. + password: "all-things-in-their-being-are-good-for-something" # words by Socrates # By automatically importing to the console, # subsequent adjustments can be easily made without having to manually fix a specific name. @@ -90,29 +74,12 @@ binary_sensor: name: Still Target sensor: - - platform: template - name: "ESP Cpu Speed" - accuracy_decimals: 0 - unit_of_measurement: Mhz - lambda: |- - return (id(cpu_speed)); - entity_category: "diagnostic" - - # - platform: internal_temperature - # id: sys_esp_temperature - # name: ESP Temperature - # unit_of_measurement: °C - # device_class: TEMPERATURE - # update_interval: 1s - # entity_category: "diagnostic" - - - platform: template + - platform: internal_temperature id: sys_esp_temperature name: ESP Temperature - lambda: return temperatureRead(); unit_of_measurement: °C device_class: TEMPERATURE - update_interval: 5s + update_interval: 45s entity_category: "diagnostic" - platform: uptime