home-assistant / home-assistant/supervisor
Inform user about unclean shutdowns
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 806
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 55
Description
### Description
The recent bug #6827 showed that watchdog can cause system reboots. In general, its hard to tell for users when a system reboots unexpectedly. We could write a marker file which we delete on clean shutdown to detect unclean shutdowns, and inform the user about it.
Maybe it is also possible to detect if watchdog caused a reboot. If so, we should definitely include this information as well.
The recorder in Core already has a similar feature. But from what I am aware it only surfaces as a warning in the Core logs currently.
### Additional context
_No response_
Contributor guide
Research direction
No implementation files or tests are named. Start by reviewing issue #6827 and the recorder's existing Core behavior; identify where Supervisor can persist and remove a shutdown marker. Done means users are informed about unclean reboots, with watchdog attribution included if it can be detected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100