10:09:30.439 ERROR o.o.m.i.i.GenericItemProvider[:350]- Binding configuration of type 'exec' of item ‘Emonhub_Wifi_nome‘ could not be parsed correctly.
org.openhab.model.item.binding.BindingConfigParseException: bindingConfig 'sudo /usr/share/openhab/configurations/scripts/emoncms_wifi_nome.sh' doesn't represent a valid in-binding-configuration.
at org.openhab.binding.exec.internal.ExecGenericBindingProvider.parseInBindingConfig(ExecGenericBindingProvider.java:140)
at org.openhab.binding.exec.internal.ExecGenericBindingProvider.processBindingConfiguration(ExecGenericBindingProvider.java:120)
at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:348)
at org.openhab.model.item.internal.GenericItemProvider.internalDispatchBindings(GenericItemProvider.java:324)
at org.openhab.model.item.internal.GenericItemProvider.processBindingConfigsFromModel(GenericItemProvider.java:171)
at org.openhab.model.item.internal.GenericItemProvider.modelChanged(GenericItemProvider.java:390)
Uses interval of 1000ms and no transformation, so your script has to return a valid switch value. You should have a : at the end when not using a transformation.
Yes but according to the binding doc only transformation is optional so that means one trailing colon and a refresh interval.
in: exec="<[<commandLine to execute>:<refreshintervalinmilliseconds>:(<transformationrule>)]"
out: exec=">[<openHAB-command>:<commandLine to execute>] (>[<openHAB-command>:<commandLine to execute>]) (>[...])"
ERROR o.o.p.e.internal.ExecService[:84]- Could not execute command [null]
java.lang.NullPointerException: null
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
at java.util.regex.Matcher.reset(Matcher.java:309)
at java.util.regex.Matcher.(Matcher.java:229)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at java.util.Formatter.parse(Formatter.java:2547)
at java.util.Formatter.format(Formatter.java:2501)