From 1b0f08d96a58437482c3c43985479498ab633e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 15 Nov 2022 20:14:23 +0100 Subject: [PATCH] Add reset_reason text sensor to debug component (#2302) --- components/debug.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/debug.rst b/components/debug.rst index 4c63451fc..47fcdabb7 100644 --- a/components/debug.rst +++ b/components/debug.rst @@ -25,6 +25,8 @@ ESP heap memory (free space, maximum free block size and fragmentation level) an - platform: debug device: name: "Device Info" + reset_reason: + name: "Reset Reason" sensor: - platform: debug @@ -70,6 +72,13 @@ Configuration variables: - **name** (**Required**, string): The name of the sensor. - All other options from :ref:`Text Sensor `. +- **reset_reason** (*Optional*): Reports the last reboot reason in a human-readable form. + + Accepts these options: + + - **name** (**Required**, string): The name of the sensor. + - All other options from :ref:`Text Sensor `. + Sensor ------- Configuration variables: