1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-31 07:03:55 +00:00
This commit is contained in:
J. Nick Koston
2025-07-08 09:52:44 -06:00
parent 07a4f6f53c
commit 97a476b475
2 changed files with 125 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
esphome:
name: runtime-stats-test
host:
api:
logger:
level: INFO
runtime_stats:
log_interval: 1s
# Add some components that will execute periodically to generate stats
sensor:
- platform: template
name: "Test Sensor 1"
id: test_sensor_1
lambda: return 42.0;
update_interval: 0.1s
- platform: template
name: "Test Sensor 2"
id: test_sensor_2
lambda: return 24.0;
update_interval: 0.2s
switch:
- platform: template
name: "Test Switch"
id: test_switch
optimistic: true
interval:
- interval: 0.5s
then:
- switch.toggle: test_switch