Can home assistant detect IP state changes?

Hi,

Is there a way I can create an automation to detect my PC switching on so I can use the action to switch on my room lamp?

Thanks

You could use a power monitoring plug - power consumption should be low when its off and a lot higher when its on.

If you have the PC on a fixed IP it can be tracked pretty easiliy.

or

Or look into any of the device tracker components, many are router based but server the same function.