I’ve just moved over from using a Homey device, one feature I’m stuck on converting is turning on\off a switch when my PC starts up\shuts down.This is turn turn a subwoofer and speaker amp on and off as needed.
I used to have a powershell script run on logon and off to send a webrequest, how would I do this with home assistant?