command does work with mqtt topic, works without
sorry to bring up another one of these 😅
i have a command i want to run
it runs fine like that, but i want the last 3 arguments to change so i tried to set it up as an mqtt action topic
the command is
and the mqtt action is
14 Replies
Help us Help Others!
To help others find answers, you can mark your question as solved via
Right click solution message -> Apps -> ✅ Mark Solution

Help us Help You!
Please don't delete messages or posts because it makes it impossible to understand what happened. If you don't want your messages to be seen then don't post here.
Please provide us with the version number of your app.
You can find it by clicking the ? at the bottom of the main page and checking under the logo that shows.We will help as soon as possible. While you're waiting you can try the following:
- Checkout the documentation. - Search here in discord for previously solved similar issues.
@Amadeo
hass agent seems to be recieving the command, i get the following error in logs
https://dpaste.com/F93G39K27
adding the exe or specifying the file path (which is C:\Windows\nircmd.exe) doesnt change anything
only time it works is if i skip the action topic and put the whole command in hass agent
nircmd.exethis exe is directly in C:\Windows?
yes
sorry idk how it took me so long to see this 😅
it just happened to me again with another powershell command
the following payload with an empty command in Hass Agent does not work
but setting the command in Hass Agent to
and just hitting the button entity for the command in HA does work
i just picked powershell ise for testing purposes
commands do not support payload parameters
powershell commands?
oh, you're rigt
to be specific
powershell commands with command in configuration (instead of path to ps1 script)
was not trying to mean that, but sure 😂
So powershell commands don't allow for payloads, but a script path and then payload does work?
yeah
Docs note im gonna forget, but ill just search the server for messages with docs so this'll do as a reminder
gotcha. im assuming this is a security thing? but youre also saying paths to ps1 script do support payload parameters?
im assuming this is a security thing?I'll be honest with you, that's how it's been from the start 😄 (the original hass.agent)
paths to ps1 script do support payload parameters?ya, if you put a ps1 script instead of command then you can get parms in code example: will give you popup with parms that were provided via payload