One day everything works, the next day I get weird errors in log
At the moment I’m having difficulties with a Fibaro button script. It should control my media player devices (on/off/pause/mute etc.). It has been working over a year. It has been working with OH3 as well. Suddenly today I started to get weird error messages in log, but I’m unable to figure out what’s actually wrong.
The error message:
2021-04-13 22:46:16.600 [ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID 'BUTTONS-1' failed: An error occurred during the script execution: Could not invoke method: org.openhab.core.model.script.actions.BusEvent.sendCommand(org.openhab.core.items.Item,java.lang.String) on instance: null in BUTTONS
rule "Red button" when Item ZWaveNode006FGPB101Arealpushbuttonswitchavailableinseveralcolors_SceneNumber received update then logInfo("BUTTONS.rules","Red button pressed. Action: " + ZWaveNode006FGPB101Arealpushbuttonswitchavailableinseveralcolors_SceneNumber.state) ButtonAction.sendCommand(ZWaveNode006FGPB101Arealpushbuttonswitchavailableinseveralcolors_SceneNumber.state) end
I have an item “ButtonAction” (number) created in OH3. Every time the ZWave button get pressed, the state is being send to the “ButtonAction” item. This is done this way, because I have several other buttons doing the same actions. This way there is only one object (ButtonAction) holding the status of the switch.
But today this stopped working.
Any idea what causing this?
- Platform information:
- Hardware: RaspberryPI4B
- OS: Raspbian
- openHAB version: 3.0.1