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

    XOA and Home Assistant

    Scheduled Pinned Locked Moved REST API
    3 Posts 2 Posters 527 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

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

          @Pilow that probably would have been a good idea hey!
          example
          That's the example tile from dashboard-card-example.yaml.
          But it's Home Assistant. You make it look however you want right?
          Having the entities available to use is most of the challenge.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post