H
national-gold
Custom command not executing with default "press" action of a button when Command is filled in
Hi,
I am testing around with the Custom Command to run a different program (DisplayMagician) to change the state of my displays.
The running of the command works in HASS Agent when manually publishing the "action" mqtt topic with a random payload, yet when using the default created "/set" mqtt topic for the device in HA nothing happens.
Running versions:
HASS.Agent 2.2.0-beta3 (to prevent WinRing0 driver from needing) (but had it in the original HASS of LABs as well)
HA: 2025.11.3
My actions & config:
Create a custom "Button" command.
Name & Friendly name: "DisplayMain"
Command: "C:\Program Files\DisplayMagician\DisplayMagician.exe" ChangeProfile "70774681-1e85-45ee-b6a0-09b970a7acfe"
Store Command
Store and Activate commands
In HA:
Under devices > a button control is added, when I click Press, I see the following topic fired:
Message 59 received on homeassistant/button/PC-xxxxx/DisplayMain/set at 4:30 PM:
PRESS
QoS: 0 - Retain: false
But nothing happens, when I manually publish with the /action my command gets triggered:
Message 62 received on homeassistant/button/PC-xxxxx/DisplayMain/action at 4:31 PM:
fgh_can_be_anythinc...
QoS: 0 - Retain: false
Am I doing something wrong/not intended?
Thanks & Kind regards
0 Replies