[
	{
		"name": "TemplateSampleRuleWithReferences",
		"uid": "TemplateSampleRuleWithReferences",
		"tags": [
			"sample",
			"item",
			"jsonTest",
			"rule",
			"references"
		],
		"configDescriptions": [
			{
				"name": "triggerItem",
				"type": "TEXT",
				"description": "ItemName which state change triggers the rule",
				"required": true
			},
			{
				"name": "actionItem",
				"type": "TEXT",
				"description": "ItemName on which action will be performed.",
				"required": true
			}
		],
		"description": "Sample Rule for items definition.",
		"triggers": [
			{
				"id": "ItemStateChangeTriggerID",
				"type": "core.GenericEventTrigger",
				"configuration": {
					"topic": "openhab/items/{{triggerItem}}/*",
					"types": "ItemStateEvent"
				}
			}
		],
		"conditions": [
			{
				"id": "ItemStateConditionID",
				"type": "core.GenericEventCondition",
				"configuration": {
					"topic": "openhab/items/{{triggerItem}}/state",
					"payload": "ON"
				},
				"inputs": {
					"event": "ItemStateChangeTriggerID.event"
				}
			}
		],
		"actions": [
			{
				"id": "ItemPostCommandActionID",
				"type": "core.ItemCommandAction",
				"configuration": {
					"itemName": "{{actionItem}}",
					"command": "ON"
				}
			}
		]
	}
]
