wxt9861 / esxi_stats

ESXi component for Home Assistant
MIT License
147 stars 40 forks source link

Add ESXi host name to vm_data #71

Closed wayned1014 closed 2 years ago

wayned1014 commented 2 years ago

Added the ESXi host name(host_name) to vm_data so if you are getting your data from vCenter you will know what host the vm is on. Please note, this is the first time doing this. I hope I am doing this correctly.

wxt9861 commented 2 years ago

Hi @wayned1014 I will need to check if vm.run exists when vm power is off. We want to ensure variables exist before we add them to sensor state. If they do not exist, return "n/a"

wayned1014 commented 2 years ago

I just looked at my stats page and the host name is correct with either the VM on or off. I have attached a screenshot of it. I hope this helps. If you need any more info, just ask.

Wayne screencapture-lovelace-main-2-2022-06-16-19_32_38.pdf