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
Have you connected the home assistant shutdown button to google home?
WoL is one directional, only starts
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.
NGL idk how that would work, was it a WoL entity in HA?
that triggered shutdown?
Yes. Switch.(computername)_wol was the entity name.
That one currently wakes the computer up.
WoL as in the HA integration? how does that single entity connect with a separate hass.agent entity?
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.
What integration was the entity attached to?
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.
Merging 2 integrations isn't really possible, however you can create helper switches/groups that could do this
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.
I think the best way would be 2 automations with a helper toggle
Hmm okay. I need to see then how I can configure this since I am new to Home Assistant.
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
So create 1 toggle helper for switching on/off and then 2 automations?