esphome/tests/components/prometheus/common.yaml

36 lines
664 B
YAML
Raw Normal View History

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
2024-10-29 04:43:02 +01:00
text_sensor:
- platform: template
id: template_text_sensor1
lambda: |-
if (millis() > 10000) {
return {"Hello World"};
} else {
return {"Goodbye (cruel) World"};
}
update_interval: 60s
prometheus:
include_internal: true
relabel:
template_sensor1:
id: hellow_world
name: Hello World
2024-10-29 04:43:02 +01:00
template_text_sensor1:
id: hello_text
name: Text Substitution