mirror of
https://github.com/esphome/esphome.git
synced 2024-12-20 20:44:53 +01:00
22 lines
352 B
YAML
22 lines
352 B
YAML
|
wifi:
|
||
|
ssid: MySSID
|
||
|
password: password1
|
||
|
|
||
|
sensor:
|
||
|
- platform: template
|
||
|
id: template_sensor1
|
||
|
lambda: |-
|
||
|
if (millis() > 10000) {
|
||
|
return 42.0;
|
||
|
} else {
|
||
|
return 0.0;
|
||
|
}
|
||
|
update_interval: 60s
|
||
|
|
||
|
prometheus:
|
||
|
include_internal: true
|
||
|
relabel:
|
||
|
template_sensor1:
|
||
|
id: hellow_world
|
||
|
name: Hello World
|