Hello,
I am using the actual stable version of openhab (2.5.9). I get the following error:
Rule 'Volume Steuerung': An error occurred during the script execution: Could not invoke method: org.eclipse.smarthome.model.script.actions.BusEvent.sendCommand(java.lang.String,java.lang.String) on instance: null
in the logs when executing the following rule:
rule "Volume Steuerung"
when
Item MqttSonosBox_Volume changed
then
//Sonos Gerät festlegen und Items benennen
var String sonosselect = FabiBox_SonosSelect.state.toString
var String sonos = transform("MAP", "FabiBox.map", sonosselect)
val sonoslautstaerke = ScriptServiceUtil.getItemRegistry.getItem(sonos + "_Lautstaerke") as DimmerItem
sendCommand(sonoslautstaerke, MqttSonosBox_Volume.state)
end
What is my failure. Can somebody please point me in the right direction?
Best Regards
Johannes