I have my pc powered from a zigbee plug. When i turn off my pc i want to trigger home assistant to turn off the plug when the pc has fully shut down(not replying to ping and power meter on the plug is below a certain wattage).
What is the best/correct way to send a trigger from a windows machine?
I'm currently trying to use the homassistant-api for python to send a trigger. Would i trigger an automation, trigger a helper or something else?
Im fairly new to home assistant.