#How to trigger from windows

1 messages · Page 1 of 1 (latest)

frail pier
#

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.

elder spade
#

You could use a webhook that's easier than using the api

royal pike
frail pier
# royal pike why not just trigger on power consumption alone?

I tried that but if my pc goes to sleep i end up on a very low power consumption that i cannot really trigger on that reliably and that also makes my icmp ping check not reliable. The most reliable way would be to trigger the automation on a on a signal from the pc.

frail pier
gloomy pier
unborn prawn