XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    XOA and Home Assistant

    Scheduled Pinned Locked Moved REST API
    2 Posts 2 Posters 16 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F Offline
      francis-chiew
      last edited by

      This is straight up self-promotion/self-shaming.

      I had a use case where I wanted to be able to power on a host via IPMI (done) and turn off the host when I'm done. The host runs xcp-ng, which is good!... but doesn't respect the IPMI trying to initiate a graceful shutdown, which is meh. IPMI can hard pull the power and I'll deal with the consequences of my actions later.

      What I wanted after that was to be able to see online/offline hosts and VM's without having to dial into the network and check XOA... so Claude and I poorly put together a Home Assistant integration that does that.

      All so I can power on the host and it's VM's from my phone.

      The integration offers CPU and RAM usage for the hosts (but no shutdown because that's not exposed via the XOA API yet) and power management for the VM's per host. Each VM gets associated to its host. There's an example dashboard card that offers some switches and buttons and stats. It also filters out any HA entity called xoa after a small whoops.

      P 1 Reply Last reply Reply Quote 0
      • P Offline
        Pilow @francis-chiew
        last edited by

        @francis-chiew hey, seems very nice. need some screenshots of the dashboards

        1 Reply Last reply Reply Quote 0
        • First post
          Last post