Many thanks for quick response. I thought that Ping supports the IP addresses, nor MAC. For whatever reason that PC is not “pingable”, and instead of digging into why it does not respond to Ping I wanted to use its MAC address.
No problem just make sure your PC has a static IP address or you are using a DHCP reservation so it always has the same IP and doesn’t break you sensor.
Exactly. My purpose is very different: I want to turn off power to several external devices (laser engravers, hubs, etc), which are controlled by PC. When PC is shutdowned, they will go off, too.
Used to do it with the current relay, but the Home Assistant is more elegant solution.