I’m trying to populate a string and then send that as a command , but I keep getting this error. Even if i change the val to be the same name, i get another duplication error. Thoughts as to why? just trying to populate an item
08:45:20.546 [INFO ] [del.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model ‘linn.rules’, using it anyway:
The value of the local variable result is not used
My rule:
when
Item KDS_Power received command
then
val power = ‘Action Preamp/Product 2 SetStandby "’ + if (receivedCommand == ON) ‘0"’ else ‘1"’
logInfo(“Linn”, power)
KDS_Command.postUpdate(power)
val result = executeCommandLine("/etc/openhab2/scripts/linn.sh@@" + power, 5000)
logInfo("Linn", "result: {}", power)