update for esphome 2025.10
This commit is contained in:
parent
396e597e99
commit
2463b7df59
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user