Ellie
Ellie
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
gotcha. im assuming this is a security thing? but youre also saying paths to ps1 script do support payload parameters?
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
i just picked powershell ise for testing purposes
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
it just happened to me again with another powershell command the following payload with an empty command in Hass Agent does not work
action: mqtt.publish
metadata: {}
data:
evaluate_payload: false
qos: 0
retain: false
topic: homeassistant/button/PC/StopProcess/action
payload: "\"Stop-Process -Name powershell_ise -Force\""
action: mqtt.publish
metadata: {}
data:
evaluate_payload: false
qos: 0
retain: false
topic: homeassistant/button/PC/StopProcess/action
payload: "\"Stop-Process -Name powershell_ise -Force\""
but setting the command in Hass Agent to
Stop-Process -Name powershell_ise -Force
Stop-Process -Name powershell_ise -Force
and just hitting the button entity for the command in HA does work
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
sorry idk how it took me so long to see this 😅
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
yes
24 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
yeah both the last 2 suggestions work, it just looks like this in the commands.json lol
"Command": "\"\"C:\\Program Files (x86)\\Sound Volume View\\SoundVolumeView.exe\" /SetSpatial \"2- B10PRO\\Device\\Speakers\\Render\" \"\"\"",
"Command": "\"\"C:\\Program Files (x86)\\Sound Volume View\\SoundVolumeView.exe\" /SetSpatial \"2- B10PRO\\Device\\Speakers\\Render\" \"\"\"",
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
when you say put them in the config file do you mean just make a command cause if so, yeah this seems to work as well
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
both of these work, no issue
35 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
only time it works is if i skip the action topic and put the whole command in hass agent
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
adding the exe or specifying the file path (which is C:\Windows\nircmd.exe) doesnt change anything
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
24 replies
HHASS.Agent
Created by Ellie on 1/25/2025 in #💬・get-help
command does work with mqtt topic, works without
hass agent seems to be recieving the command, i get the following error in logs
24 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
ah sorry i forgot to check this, ill do it tomorrow
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
i am currently on 2.1.0 though and i did see the 2.1.1 beta had this listed:
PowershellCommand argument handling where passing arguments containing spaces/quotes would cause the command to fail (thanks @greghesp for reporting) #204
I'm wondering if this is related maybe?
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
it does not, no
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
does not seem to work either way with the powershell command, either as a command or trying to execute the bat file. both work fine running it myself in powershell
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
i have it setup as a custom command yeah, not using a payload
35 replies
HHASS.Agent
Created by Ellie on 1/19/2025 in #💬・get-help
Custom command works if command is .bat file but not if the commands itself is entered
iirc theres a way to get the visible terminal to see if its through an error but idr how
35 replies
HHASS.Agent
Created by Ellie on 11/14/2024 in #💬・get-help
cmd.exe and conhost.exe processes opened by Hass.Agent never close
i dont think so no. i moved to a new computer recently but i also changed some of my commands around, so it seems clear of these extra processes, at least for now
33 replies
HHASS.Agent
Created by Ellie on 12/27/2024 in #💬・get-help
migrate hass agent to a new device?
Thank you, I'll go ahead and so that
9 replies