April 30Apr 30 Hey all! This started with a simple problem: I wanted to know when my Unraid array was running a parity check or disk rebuild so I could trigger a cooling fan automatically. There wasn't a reliable way to get that signal into Home Assistant, so I built a native plugin instead. Once that worked, I kept going, and now it publishes a pretty comprehensive set of server metrics to MQTT with full HA auto-discovery support.What it monitorsArray & Cache — status, capacity, used %, disk count, disabled/invalid/missing disksParity & Rebuild — status, progress %, speed, and ETA (this is where it all started!)Disks — per-disk temp, state (Active/Standby/Disabled), SMART health, reallocated/pending/uncorrectable sectors, read/write speeds, power-on hoursSystem — uptime, Unraid version, server ID, network RX/TX per interface, share usageEach metric can be published on an interval, on-change, or both — so you're not flooding your broker unnecessarily.Home AssistantEntities appear automatically via MQTT discovery the moment the daemon starts. You get full sensor.unraid_* entities with state attributes for things like disk size, free/used GB, SMART details, and share metadata. No manual configuration needed.A small taste of what shows up:sensor.unraid_array_status sensor.unraid_parity_status sensor.unraid_parity_progress sensor.unraid_disk1_temp sensor.unraid_disk1_smart_health sensor.unraid_net_eth0_rx sensor.unraid_share_media_infoInstallationGo to Plugins → Install Plugin and paste:https://raw.githubusercontent.com/maxandcheeses/unraid-stats2mqtt/refs/heads/main/plugin/unraid-stats2mqtt.plgAll settings are managed through the Unraid WebUI under Settings → Stats to MQTT. Supports plain MQTT, MQTTS (TLS), WS, and WSS — including mutual TLS and self-signed certs.GitHub: https://github.com/maxandcheeses/unraid-stats2mqttThis is an early release so feedback, bug reports, and feature requests are very welcome. Curious what metrics others would find useful, and would love to see what HA automations or dashboards people build with it! Edited April 30Apr 30 by maxandcheese Update App Name in topic
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.