UPDATE… i have 2 rules made - one for TURNING ON, on fore TURNING OF.
none of the rules do anything automaticly … only when i press te Play button… i dont know what i did wrong… here is the copy of the json file (that was generated automaticly with the experimental rule engine)
GASI - means TURN OF
PALI - means TURN ON
GUMB - means SWITCH
(all croatian)
{
“aefa5045-da94-4994-8d2f-08b6f8641502”: {
“class”: “org.eclipse.smarthome.automation.dto.RuleDTO”,
“value”: {
“triggers”: [
{
“id”: “3”,
“label”: “an item state is updated”,
“description”: “This triggers the rule if an item state is updated (even if it does not change).”,
“configuration”: {
“itemName”: “WemosD1_Dole_DHT22”
},
“type”: “core.ItemStateUpdateTrigger”
}
],
“conditions”: [
{
“inputs”: {},
“id”: “4”,
“label”: “an item has a given state”,
“description”: “Compares the item state with the given value”,
“configuration”: {
“itemName”: “WemosD1_Dole_DHT22”,
“state”: “23”,
“operator”: “\u003c”
},
“type”: “core.ItemStateCondition”
}
],
“actions”: [
{
“inputs”: {},
“id”: “2”,
“label”: “send a command”,
“description”: “Sends a command to a specified item.”,
“configuration”: {
“itemName”: “Gumb”,
“command”: “ON”
},
“type”: “core.ItemCommandAction”
}
],
“configuration”: {},
“configDescriptions”: [],
“uid”: “aefa5045-da94-4994-8d2f-08b6f8641502”,
“name”: “PALI”,
“tags”: [],
“visibility”: “VISIBLE”
}
},
“a196505d-12a5-4f08-ae72-64c26b6d4d64”: {
“class”: “org.eclipse.smarthome.automation.dto.RuleDTO”,
“value”: {
“triggers”: [
{
“id”: “3”,
“label”: “an item state is updated”,
“description”: “This triggers the rule if an item state is updated (even if it does not change).”,
“configuration”: {
“itemName”: “WemosD1_Dole_DHT22”
},
“type”: “core.ItemStateUpdateTrigger”
}
],
“conditions”: [
{
“inputs”: {},
“id”: “4”,
“label”: “an item has a given state”,
“description”: “Compares the item state with the given value”,
“configuration”: {
“itemName”: “WemosD1_Dole_DHT22”,
“state”: “23.5”,
“operator”: “\u003e”
},
“type”: “core.ItemStateCondition”
}
],
“actions”: [
{
“inputs”: {},
“id”: “2”,
“label”: “send a command”,
“description”: “Sends a command to a specified item.”,
“configuration”: {
“itemName”: “Gumb”,
“command”: “OFF”
},
“type”: “core.ItemCommandAction”
}
],
“configuration”: {},
“configDescriptions”: [],
“uid”: “a196505d-12a5-4f08-ae72-64c26b6d4d64”,
“name”: “Gasi”,
“tags”: [],
“visibility”: “VISIBLE”
}
}
}