H
HASS.Agent•4d ago
Ellie

command does work with mqtt topic, works without

sorry to bring up another one of these 😅 i have a command i want to run
nircmd setdisplay monitor:0 1920 1080 32
nircmd setdisplay monitor:0 1920 1080 32
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
nircmd setdisplay monitor:0
nircmd setdisplay monitor:0
and the mqtt action is
action: mqtt.publish
metadata: {}
data:
evaluate_payload: false
qos: 0
topic: homeassistant/button/PC/SetResolution/action
payload: "\"1920 1080 32\""
action: mqtt.publish
metadata: {}
data:
evaluate_payload: false
qos: 0
topic: homeassistant/button/PC/SetResolution/action
payload: "\"1920 1080 32\""
5 Replies
HASS.Agent Helper
HASS.Agent Helper•4d ago
Help us Help Others!
To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution
From An unknown user
HASS.Agent Helper
HASS.Agent Helper•4d ago
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.
HASS.Agent Helper
HASS.Agent Helper•4d ago
@Amadeo
Ellie
EllieOP•4d ago
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
Amadeo
Amadeo•3d ago
nircmd.exe
this exe is directly in C:\Windows?

Did you find this page helpful?