Executecommand(echo

It’s like you read my mind :slight_smile: Thanks!

1 Like

var result = executeCommandLine( “/etc/openhab/scripts/door.sh@@” + FrontDoorLogString.state, 5000 )
logInfo(“FrontDoor”, result )

Do you know if a input state with executecommandline is possible with JavaScript instead of dsl rules?

same API just another scripting language. So yes this should work with JavaScript as well.
An example with executeCommandLine for JavaScript can be found here. You need to replace the argument with the state then.

This describes methods that are available related to items in JavaScript.