I need to trigger an openhab switch from an external script. Currently I do it like this.
/usr/share/openhab2/runtime/bin/client send frontdoorTriggered ON
But that way it takes about two seconds until the command is actually issued in OpenHAB which is too long in that special case because an image has to be captured immediatly. Are there better (and faster) ways to send commands to OH?