diff --git a/templates/esp32-poe.yaml b/templates/esp32-poe.yaml index c8b0f2b..b97fd2d 100644 --- a/templates/esp32-poe.yaml +++ b/templates/esp32-poe.yaml @@ -18,6 +18,7 @@ logger: packages: ota: !include ota.yaml mqtt: !include mqtt.yaml + uptime: !include uptime.yaml button: - platform: restart diff --git a/templates/esp8266.yaml b/templates/esp8266.yaml index fefa8b7..c810f11 100644 --- a/templates/esp8266.yaml +++ b/templates/esp8266.yaml @@ -5,6 +5,7 @@ packages: wifi: !include wifi.yaml ota: !include ota.yaml mqtt: !include mqtt.yaml + uptime: !include uptime.yaml logger: diff --git a/templates/mystrom.yaml b/templates/mystrom.yaml index cdbfe77..f93a957 100644 --- a/templates/mystrom.yaml +++ b/templates/mystrom.yaml @@ -19,6 +19,7 @@ packages: mqtt: !include mqtt.yaml ota: !include ota.yaml wifi: !include wifi.yaml + uptime: !include uptime.yaml logger: diff --git a/templates/uptime.yaml b/templates/uptime.yaml new file mode 100644 index 0000000..e8fef04 --- /dev/null +++ b/templates/uptime.yaml @@ -0,0 +1,3 @@ +sensor: +- platform: uptime + name: "Uptime"