There was a change in the rule format:
NEW FORMAT:
"1f09b532-f457-4552-9df9-92d12bc9d502": {
"class": "org.eclipse.smarthome.automation.dto.RuleDTO",
"value": {
"triggers": [
{
"id": "1",
"label": "it is a fixed time of day",
"description": "Triggers at a specified time",
"configuration": {
"time": "00:30"
},
"type": "timer.TimeOfDayTrigger"
}
],
"conditions": [],
"actions": [
{
"inputs": {},
"id": "2",
"label": "send a command",
"description": "Sends a command to a specified item.",
"configuration": {
"itemName": "WlanSteckdose1_Switch",
"command": "OFF"
},
"type": "core.ItemCommandAction"
}
],
"configuration": {},
"configDescriptions": [],
"uid": "1f09b532-f457-4552-9df9-92d12bc9d502",
"name": "T1",
"tags": [],
"visibility": "VISIBLE",
"description": "T2"
}
}
OLD FORMAT:
"rule_2": {
"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": "00:30"
}
},
"type": "timer.TimeOfDayTrigger"
}
],
"conditions": [],
"actions": [
{
"id": "2",
"label": "send a command",
"description": "Sends a command to a specified item.",
"configuration": {
"properties": {
"itemName": "WlanSteckdose1_Switch",
"command": "OFF"
}
},
"type": "core.ItemCommandAction"
}
],
"configuration": {
"properties": {}
},
"configDescriptions": [],
"uid": "rule_2",
"name": "Timer Steckdose - Garten - Ausschalten",
"tags": [],
"description": "Ausschalten zu gegebener Zeit"
}
}
Is there any way to automatically convert the old rules to the new format ?