Have an issue with rule execution and conditions. Rule has been created using “MainUI”.
The dimmer lamp should be set to 50 if its state is <= 40. But it only fires if its state is = 0 (0% is OFF).
Wonder about the condition operator “\u003c\u003d”. Shoudn’t it be “\u2264”?
For the 1st condition (outdoor luminance) the same condition operator seems to work. This is strange.
Thanks for your help in advance.
Json-file code looks like this:
“878d5ab9-321d-4fb8-9a17-269bc0749537”: {
“class”: “org.openhab.core.automation.dto.RuleDTO”,
“value”: {
“triggers”: [
{
“id”: “1”,
“label”: “Zustandsvariable nach Ausloesen des Bewegungsmelders fuer 120 Sekunden auf "JA" gesetzt wird”,
“description”: “This triggers the rule if an item state has changed.”,
“configuration”: {
“itemName”: “BewegungsmelderZustandbeiAusloesung_Schalter”,
“previousState”: “OFF”,
“state”: “ON”
},
“type”: “core.ItemStateChangeTrigger”
}
],
“conditions”: [
{
“inputs”: {},
“id”: “2”,
“label”: “die Luminanz außen kleiner als 40% ist (es dunkel ist)”,
“description”: “Compares the item state with the given value”,
“configuration”: {
“itemName”: “BewegungsmelderBergreifend_Luminance”,
“operator”: “\u003c\u003d”,
“state”: “40”
},
“type”: “core.ItemStateCondition”
},
{
“inputs”: {},
“id”: “4”,
“label”: “wenn die Lampe auf weniger als 40% Helligkeit steht”,
“description”: “Compares the item state with the given value”,
“configuration”: {
“itemName”: “StehlampeWohnzimmer_Dimmer”,
“operator”: “\u003c\u003d”,
“state”: “40”
},
“type”: “core.ItemStateCondition”
}
],
“actions”: [
{
“inputs”: {},
“id”: “3”,
“label”: “schalte die Stehlampe auf 50% Helligkeit (Ein)”,
“description”: “Sends a command to a specified item.”,
“configuration”: {
“command”: “50.0”,
“itemName”: “StehlampeWohnzimmer_Dimmer”
},
“type”: “core.ItemCommandAction”
},
{
“inputs”: {},
“id”: “5”,
“label”: “schaltet Kandelaber ein”,
“description”: “Sends a command to a specified item.”,
“configuration”: {
“command”: “ON”,
“itemName”: “HMLCSw1FMIEQ0002028_1_State”
},
“type”: “core.ItemCommandAction”
}
],
“configuration”: {},
“configDescriptions”: [],
“uid”: “878d5ab9-321d-4fb8-9a17-269bc0749537”,
“name”: “Stehlampe und Kandelaber nach Auslösen des Bewegungsmelders einschalten”,
“tags”: [],
“visibility”: “VISIBLE”,
“description”: “Schaltet die Stehlampe im Wohnzimmer und den Kandelaber auf der Terrasse fuer 120 Sekunden ein”
}
},