Add reset_reason text sensor to debug component (#2302)

This commit is contained in:
Kuba Szczodrzyński 2022-11-15 20:14:23 +01:00 committed by GitHub
parent b346a1bed4
commit 1b0f08d96a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -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 <config-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 <config-text_sensor>`.
Sensor
-------
Configuration variables: