Hi,
I have search but not find any solution for my problem.
I use openhab 3
I have included the exec binding and try to get a command to run with a parameter.
I configure all throught the UI.
I have craeted a Thing with exec binding
the commad is ‘program %2$s’
I have added the program in the whitelist file.
then I add chanals for the input and run.
I then craete a rule where i send a command with the argument to the imput item.
next in the rule is to sendcommand ON to the run item.
When I run the rule att got a error in the log
'program %2$s ’ is not whitelisted
What is i doing wrong?
why will not %2$s be replaced with the data that is satt to input item?
Hope somone can help me, I almost give up.
Sincerely
Mats
Alright, if you have finished changing things, what is left in your openhab.log now?
Did you understand @anon71759204 post above, about the extra space on the end?
now the only log I got is this
2022-11-25 21:53:48.132 [WARN ] [ng.exec.internal.handler.ExecHandler] - Tried to execute ‘/home/openhabian/nexa/nexa_remote %2$s’, but it is not contained in whitelist.
And I understand the comment about the extra whitespace and I have removed all extra space.
Now it works,
I started all over agian an created thing and items again, then a added folowing line in whitelist
/home/openhabian/nexa/nexa_remote %2$s