homebridge-cmdtrigger icon indicating copy to clipboard operation
homebridge-cmdtrigger copied to clipboard

Feature Request: Allow stateful to RUN command/pass state TO command.

Open mralexgray opened this issue 5 years ago • 1 comments

Currently, if set to statueful.. the command does not run.

Also, it would be nice if we could access the state of the stateful switch FROM the executed command.

For example

"accessories": [
	    {
	        "accessory": "CmdTrigger",
	        "name":      "Stafeful Switch",
	        "command":   "echo $1 ",
	        "stateful":   "true",
	    }
    ]

mralexgray avatar Sep 07 '19 13:09 mralexgray

Added the feature on pull request !13

laserscout avatar Aug 02 '20 10:08 laserscout