Getting My IP PC Address Into Home Assistant To use

Hi All

New to Home Assistant and i am trying to add a condition to one of my automations that if a certain pc is on it will leave the lights alone.

How to add a pc ip address to home assistant as its not in the devices and services so i can use it in a condition, as i am not sure how to add this to check if the pc is turned on or off

thanks

Probably the easiest way will be to ping pc ip address. Set it up to use static ip on router and ping it to see if the pc is on or off.
I’m using uptime kuma for this but this is not necessary.
You could try ping

cheers i will give it a shot