domalab / ha-unraid

Monitor and control your Unraid server directly from Home Assistant. Track system metrics (CPU, RAM, disk usage), manage VMs and Docker containers, monitor UPS status, and receive real-time alerts. Features automated discovery and an easy-to-use interface for seamless integration with your smart home.
Apache License 2.0
29 stars 1 forks source link

Add Parity Check information #14

Open adyannu opened 1 week ago

adyannu commented 1 week ago

Is your feature request related to a problem? Please describe. The integration could provide information about Parity Check status

Describe the solution you'd like Add sensors with information about Parity as shown on Unraid UI, like: Last check, Next check, Avg. Speed, Current status, Errors count, etc.

Additional context This is the information provided by Unraid UI: image

domalab commented 1 week ago

@adyannu I had a quick look and came up with this. It will be a binary sensor. I tested on my system that does not have parity check enabled so it shows nothing but if you have it enabled then it will show you info.

Screenshot 2024-11-14 at 5 02 40 pm

adyannu commented 1 week ago

@domalab Sounds good. A binary sensor as "Unraid Parity is Valid" with the current state, and other info as Last check, Next check, Avg. Speed, Errors count could be attributes of that sensor.

domalab commented 1 week ago

@adyannu I released a new version with parity check sensor. Let me know if it works for you.

mvanlijden commented 1 week ago

Also replied in a less related topic. But Parity is shown, but not completely right. Status is correct in de attributes, but not shown in the entity status image

adyannu commented 6 days ago

Hello @domalab, thank you for your fast development... nice job!!

Here I have some feedback:

Screenshots:

image

image

domalab commented 2 days ago

@adyannu I made some adjustments to the parity sensor code. Not sure if it will work or not as I don't use parity.

Copy the code files from unraid folder in repo to your custom_components\unraid folder and restart home assistant.

Best to test it on HA Dev instance if you have one.

Also, if you want to, please send me your parity-check.log file situated in \boot\config folder. I don't have enough parity log file data to check if sensor will work or not.

I also looked everywhere and couldn't find a config file on unraid that stores parity check schedule data.