New Integration: MQTT Alive Daemon v0.2.0 for Enhanced Computer Status Monitoring

Hello Home Assistant community!

I’m thrilled to introduce MQTT Alive Daemon v0.2.0, a lightweight go daemon I’ve developed to enhance the way Home Assistant interacts with our computers.

Key Features:

  • :arrows_counterclockwise: Reports when the PC is on
  • :hammer_and_wrench: Reports the result of any custom command (super useful for checking USB peripherals, hard drive space, etc.)
  • :electric_plug: Integrates with HA seamlessly
  • :rocket: New in v0.2.0: Support for launchd and systemd for background running

I created this because I wanted to know when my computers were on and I was at my desk to automate my lights and manage desk electronics. The HA Ping and Glances integrations weren’t responsive enough, and Glances was using too many CPU cycles for my liking.

Use Case Example:

commands:
  at_desk:
    command: "ioreg -p IOUSB -l -w 0 | grep \"CalDigit Thunderbolt 3 Audio\""
    device_class: "plug"
  connected_to_monitor:
    command: "ioreg -p IOUSB -l -w 0 | grep MG-XU"
    device_class: "plug"

This allows my home to automatically manage my desk electronics based on my actual usage. It’s helped me save energy by automatically managing 3 speakers, a mixer, a monitor, lights, and various USB music peripherals.

GitHub: GitHub - crmne/mqtt-alive-daemon: MQTT Alive Daemon reports the status of your computer and custom commands to Home Assistant via MQTT.

Support: https://buymeacoffee.com/crmne

Contributions are welcome! I’d love to hear your thoughts, ideas for improvement, or how you might use this in your setup!

2 Likes

This is great for my steam deck! Question, how do I add sensors to the config yaml? I’m not looking for a command (unless that’s how its done), but I just want to see if it can check my primary resolution.