I have the same issue with the rules engine.
Rule_1 switches on a light based on an astro event and works perfectly.
Rule_5 is supposed to switch the same light off at 23:00, and returns the error:
_23:00:39.660 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_5 updated: RUNNING_
_23:00:39.660 [ERROR] [.automation.core.internal.RuleEngine] - Fail to execute rule '[rule_5, null]': java.lang.NullPointerException_
_23:00:39.661 [INFO ] [smarthome.event.RuleStatusInfoEvent ] - rule_5 updated: IDLE_
Here’s what the rule editor has created in the file automation_rules.json:
rule_5": {
"class": "org.eclipse.smarthome.automation.Rule",
"value": {
"triggers": [
{
"id": "1",
"label": "it is a fixed time of day",
"description": "Triggers at a specified time",
"configuration": {
"properties": {
"time": "16:10"
}
},
"type": "timer.TimeOfDayTrigger"
}
],
"conditions": [],
"actions": [
{
"id": "2",
"label": "send a command",
"description": "Sends a command to a specified item.",
"configuration": {
"properties": {
"itemName": "ZWaveNode1045609OnOffRelaySwitch_Switch",
"command": "OFF"
}
},
"type": "core.ItemCommandAction"
}
],
"configuration": {
"properties": {}
},
"configDescriptions": [],
"uid": "rule_5",
"name": "Test",
"tags": []
}
}
And here's the rule that works (same zwave device):
"rule_1": {
"class": "org.eclipse.smarthome.automation.Rule",
"value": {
"triggers": [
{
"id": "1",
"label": "a trigger channel fires",
"description": "React on events from a trigger channel of a thing.",
"configuration": {
"properties": {
"channelUID": "astro:sun:159d16e7fa8:nauticDusk#event"
}
},
"type": "core.ChannelEventTrigger"
}
],
"conditions": [],
"actions": [
{
"id": "2",
"label": "send a command",
"description": "Sends a command to a specified item.",
"configuration": {
"properties": {
"itemName": "ZWaveNode1045609OnOffRelaySwitch_Switch",
"command": "ON"
}
},
"type": "core.ItemCommandAction"
}
],
"configuration": {
"properties": {}
},
"configDescriptions": [],
"uid": "rule_1",
"tags": [],
"description": "Outside lights dusk on"
}
}
I would appreciate any feedback.