Proxmox VE
Proxmox VE
After configuring this integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more], the binary sensors automatically appear.
Configuration
You should have at least one VM or container entry configured within Home Assistant, else this integration won’t do anything. You should have the Proxmox permissions ready before creating the integration.
Configuration
To add the Proxmox VE service to your Home Assistant instance, use this My button:
Manual configuration steps
If the above My button doesn’t work, you can also perform the following steps manually:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select Proxmox VE.
-
Follow the instructions on screen to complete the setup.
Proxmox permissions
To be able to retrieve the status of VMs and containers, the user used to connect must minimally have the VM.Audit privilege. Below is a guide to how to configure a new user with the minimum required permissions.
Create Home Assistant Group
Before creating the user, we need to create a group for the user. Privileges can be either applied to Groups or Roles.
- Click
Datacenter - Open
Permissionsand clickGroups - Click the
Createbutton above all the existing groups - Name the new group (e.g.,
HomeAssistant) - Click
Create
Add Group Permissions to all Assets
For the group to access the VMs we need to grant it the auditor role
- Click
Datacenter - Click
Permissions - Open
Addand clickGroup Permission - Select “/” for the path
- Select your Home Assistant group (
HomeAssistant) - Select the Auditor role (
PVEAuditor) - Make sure
Propagateis checked
Create Home Assistant User
Creating a dedicated user for Home Assistant, limited to only to the access just created is the most secure method. These instructions use the pve realm for the user. This allows a connection, but ensures that the user is not authenticated for SSH connections. If you use the pve realm, just be sure to add realm: pve to your configuration.
The Home Assistant user you create must already exist on the Linux system.
- Click
Datacenter - Open
Permissionsand clickUsers - Click
Add - Enter a username (e.g.,
hass) - Set the realm to “Proxmox VE authentication server”
- Enter a secure password (it can be complex as you will only need to copy/paste it into your Home Assistant configuration)
- Select the group just created earlier (
HomeAssistant) to grant access to Proxmox - Ensure
Enabledis checked andExpireis set to “never” - Click
Add
In your Home Assistant configuration, use hass@pve for the username and your chosen password for the password.
Binary sensor
The integration will automatically create a binary sensor for each tracked virtual machine or container. The binary sensor will either be on if the VM’s state is running or off if the VM’s state is different.
The created sensor will be called binary_sensor.NODE_NAME_VMNAME_running.