Shutting your computer down through HA.

I have added the Shutdown command to HASS Agent and my Home Assistant sees the button of the shutdown, but for some reason I am unable to shut my computer down through Google Home. I have WOL enabled and I am able to start my computer through Google Home and HA. Its a WOL Switch with the name of my Desktop.
14 Replies
DrR0x
DrR0x4mo ago
Have you connected the home assistant shutdown button to google home? WoL is one directional, only starts
Dutchbear
DutchbearOP4mo ago
In the past before I did a clean install on my computer I was able to wake the computer up and shut the computer down with the same entity. I rather have that again to have 1 button for waking it and shutting it down.
DrR0x
DrR0x4mo ago
NGL idk how that would work, was it a WoL entity in HA? that triggered shutdown?
Dutchbear
DutchbearOP4mo ago
Yes. Switch.(computername)_wol was the entity name. That one currently wakes the computer up.
DrR0x
DrR0x4mo ago
WoL as in the HA integration? how does that single entity connect with a separate hass.agent entity?
Dutchbear
DutchbearOP4mo ago
I don't remember how that was configured before the clean install. I am pretty new to HA, but I know it did work with 1 button, but I don't remember how.
DrR0x
DrR0x4mo ago
What integration was the entity attached to?
Dutchbear
DutchbearOP4mo ago
MQTT I think It also is connected with MQTT currently. The shutdown control is in the list there, but I want if its possible merge it with the WOL switch.
DrR0x
DrR0x4mo ago
Merging 2 integrations isn't really possible, however you can create helper switches/groups that could do this
Dutchbear
DutchbearOP4mo ago
Yeah I was trying to mess with a help like saying if press switch WOL on, then execute this and if you press off then execute this. But I am having trouble configuring that.
DrR0x
DrR0x4mo ago
I think the best way would be 2 automations with a helper toggle
Dutchbear
DutchbearOP4mo ago
Hmm okay. I need to see then how I can configure this since I am new to Home Assistant.
DrR0x
DrR0x4mo ago
In the integrations tab you can add a new toggle helper. Then create 2 automations for it turning on and off, do the relevant actions for each toggle state
Dutchbear
DutchbearOP4mo ago
So create 1 toggle helper for switching on/off and then 2 automations?
Want results from more Discord servers?
Add your server