update for esphome 2025.10
This commit is contained in:
parent
396e597e99
commit
2463b7df59
|
|
@ -9,21 +9,10 @@ esphome:
|
||||||
platformio_options:
|
platformio_options:
|
||||||
board_build.flash_mode: dio
|
board_build.flash_mode: dio
|
||||||
board_build.f_cpu: 80000000L
|
board_build.f_cpu: 80000000L
|
||||||
on_boot:
|
|
||||||
priority: 900
|
|
||||||
then:
|
|
||||||
lambda: |-
|
|
||||||
id(cpu_speed) = ESP.getCpuFreqMHz() ;
|
|
||||||
project:
|
project:
|
||||||
name: Screek.Human_Presence_Sensor
|
name: Screek.Human_Presence_Sensor
|
||||||
version: 1U
|
version: 1U
|
||||||
min_version: 2023.6.1
|
min_version: 2025.5.1
|
||||||
|
|
||||||
globals:
|
|
||||||
- id: cpu_speed
|
|
||||||
type: int
|
|
||||||
restore_value: no
|
|
||||||
initial_value: '0'
|
|
||||||
|
|
||||||
external_components:
|
external_components:
|
||||||
# - source: github://screek-workshop/custom_components_support_for_screek_1u
|
# - source: github://screek-workshop/custom_components_support_for_screek_1u
|
||||||
|
|
@ -31,14 +20,12 @@ external_components:
|
||||||
type: git
|
type: git
|
||||||
url: https://github.com/screek-workshop/custom_components_support_for_screek_1u
|
url: https://github.com/screek-workshop/custom_components_support_for_screek_1u
|
||||||
ref: master
|
ref: master
|
||||||
# components: [ ld2410, uart ]
|
components: [ ld2410 ]
|
||||||
|
|
||||||
esp32:
|
esp32:
|
||||||
board: lolin_s2_mini
|
board: lolin_s2_mini
|
||||||
framework:
|
framework:
|
||||||
type: arduino
|
type: esp-idf
|
||||||
version: 2.0.9
|
|
||||||
platform_version: 6.3.2
|
|
||||||
|
|
||||||
improv_serial:
|
improv_serial:
|
||||||
|
|
||||||
|
|
@ -50,12 +37,9 @@ api:
|
||||||
# key: "YOUR-API-PASSWORD"
|
# key: "YOUR-API-PASSWORD"
|
||||||
|
|
||||||
ota:
|
ota:
|
||||||
# This won't work for the original firmware(we use diffrent ota password),
|
- platform: esphome
|
||||||
# so if you want to turn it into your own OTA,
|
# use your own ota password plz. this is a words by Socrates.
|
||||||
# make sure to completely flash your custom yaml in the firmware once.
|
password: "all-things-in-their-being-are-good-for-something" # words by Socrates
|
||||||
# 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
|
|
||||||
|
|
||||||
# By automatically importing to the console,
|
# By automatically importing to the console,
|
||||||
# subsequent adjustments can be easily made without having to manually fix a specific name.
|
# subsequent adjustments can be easily made without having to manually fix a specific name.
|
||||||
|
|
@ -90,29 +74,12 @@ binary_sensor:
|
||||||
name: Still Target
|
name: Still Target
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: template
|
- platform: internal_temperature
|
||||||
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
|
|
||||||
id: sys_esp_temperature
|
id: sys_esp_temperature
|
||||||
name: ESP Temperature
|
name: ESP Temperature
|
||||||
lambda: return temperatureRead();
|
|
||||||
unit_of_measurement: °C
|
unit_of_measurement: °C
|
||||||
device_class: TEMPERATURE
|
device_class: TEMPERATURE
|
||||||
update_interval: 5s
|
update_interval: 45s
|
||||||
entity_category: "diagnostic"
|
entity_category: "diagnostic"
|
||||||
|
|
||||||
- platform: uptime
|
- platform: uptime
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user