1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

[prometheus] Add update entity to prometheus metrics (#8173)

This commit is contained in:
Jordan Zucker
2025-02-04 18:43:44 -08:00
committed by GitHub
parent bf6874b52e
commit 65ca000e6d
3 changed files with 132 additions and 9 deletions

View File

@@ -1,12 +1,35 @@
substitutions:
verify_ssl: "false"
esphome:
name: livingroomdevice
friendly_name: Living Room Device
area: Living Room
on_boot:
then:
- if:
condition:
update.is_available:
then:
- logger.log: "Update available"
- update.perform:
force_update: true
wifi:
ssid: MySSID
password: password1
http_request:
verify_ssl: ${verify_ssl}
ota:
- platform: http_request
update:
- platform: http_request
name: Firmware Update
source: http://example.com/manifest.json
sensor:
- platform: template
id: template_sensor1