On Fri, May 16, 2025 at 08:56:39 +0200, Peter Krempa via Users wrote:
On Fri, May 16, 2025 at 00:21:54 +0200, Bram Diederik wrote:
> Hello libvirt users.
>
> I had fun with chatgpt (and lots of frustration) and created an integration
> I missed for some time for home assistant: a libvirt integration.
>
> view your libvirt systems inside home assistant, control them. (state and
> snapshot control) and have the display shown as a camera.
>
>
https://github.com/Bram-diederik/home-assistant-libvirt-integration/
Looks cool based on the screenshots.
Feel free to add it to the list of apps using libvirt:
https://www.libvirt.org/apps.html
by sending patch or MR against
Forgot to mention; to avoid unnecessary CI failure; don't forget to add
certification that your patch complies with the DCO:
https://www.libvirt.org/hacking.html#developer-certificate-of-origin
https://gitlab.com/libvirt/libvirt/-/blob/master/docs/apps.rst
I had a brief look at the code and I noticed that you use 'virsh' via
python's 'subprocess.run'. Note that libvirt provides 1st party python
bindings
https://www.libvirt.org/python.html so you can use it directly
rather than fussing with parsing text output from virsh