github wxt9861/esxi_stats 0.8.0

20 days ago

There are a lot of changes in this release, please read release notes below. Huge thank you to @CU-Jon for the contribution.

Caution

Breaking Changes

  • host_power and host_power_policy services accept optional target_host parameter
  • vCenter environments with multiple hosts require target_host specification
  • License entity naming: License entities use host-specific names
  • Device structure: Entities organized under separate devices for VMs and hosts
  • Sensor naming: VM and host attributes are individual sensors
  • Entity attributes: Most attributes for entities have been moved to their own entities under each respective device
  • Minimum Home Assistant version increased to 2023.1.0
  • It is recommended to perform a fresh install of this integration when upgrading.
  • Automations or scripts may need to be recreated or modified to follow the new structure

What's New

Add more vCenter support and UI controls

Host Power Operations - Beta to Production

  • Removed "EARLY BETA, logging only" limitation from host power commands
  • Host shutdown/reboot operations now fully functional instead of just logging
  • Added proper error handling and timeout protection

vCenter Multi-Host Support

  • Added support for vCenter environments managing multiple ESXi hosts
  • Previous limitation: only single ESXi hosts were supported
  • Added target_host parameter to specify which host in vCenter to target
  • Added list_hosts service to discover available hosts in vCenter

New UI Controls

  • Switch platform: VM power switches and host shutdown switches
  • Button platform: Host reboot buttons, VM reboot buttons, and VM snapshot management buttons with safety checks
  • Select platform: Power policy dropdowns for each host

Enhanced Services

  • Added list_power_policies service to discover available power policies
  • Enhanced host_power_policy service with vCenter support
  • Improved connection handling with automatic retry

License Entity Improvements

  • Fixed license entities: Filtered out invalid evaluation licenses with no ProductName
  • Entity naming: License entities use meaningful host-specific names
  • License detection: Enhanced logic to identify vCenter vs ESXi licenses

Major UI Reorganization

  • Separate devices for VMs: Each VM now has its own device
  • Separate devices for ESXi hosts: Each host now has its own device
  • Individual attribute sensors: VM and host attributes are now individual sensors
  • License entities: Assigned to their respective host devices
  • Entity naming: VM sensors use VM names, host sensors use host names
  • Switch/button attributes: Power switches and buttons focus on power-related attributes only

UI Controls and Entity Fixes

  • Fixed power policy selects: Resolved dropdown selectors not appearing
  • Enhanced entity creation: Improved entity creation and availability detection (NEW + Reorganized Entities!)
  • Debugging: Added comprehensive logging for troubleshooting
  • Units of measurement: Fixed incorrect units for all sensor entities
  • Smart VM shutdown: Graceful shutdown when VMware Tools available
  • Smart VM reboot: Graceful reboot when VMware Tools available, hard reset otherwise
  • VM snapshot management: Comprehensive snapshot controls with create/remove options

Code Quality and Reliability Improvements

  • Synchronized version to 0.8.0 across all files for consistency
  • Fixed spelling errors and standardized class naming conventions
  • Improved entity naming with proper capitalization and spacing
  • Enhanced error handling with better default values and validation
  • Cleaned up unused imports and commented debug code
  • Improved service field descriptions in translation files

Documentation and Examples

  • Added permission setup guides for vCenter and ESXi
  • Added troubleshooting section
  • Updated example YAML files with correct entity naming
  • Added UI controls documentation

New Contributors

Full Changelog: 0.7.2...0.8.0

Don't miss a new esxi_stats release

NewReleases is sending notifications on new releases.