Hei.
Jeg har laget en flow som bytter farge på ei lyspære basert på strømforbruket fra HAN sensoren. Denne driver og stopper opp med ujevne mellomrom uten at jeg helt forstår hvorfor.
Er det noen av dere smarte hoder som kan hjelpe meg med hva som er feil?
{
"Id": "WYwGfkN9yzntlvt",
"ClassId": "X1omxozqlvwXR4c",
"Author": "Alexander Waaland",
"Version": 0,
"CreatedAt": "2024-01-08T16:05:12.709470297+01:00",
"UpdatedAt": "2024-01-09T14:31:16.41031355+01:00",
"Name": "Strømforbruk Fargekode 3500 W",
"Group": "",
"Description": "Skifter mellom rødt og grønnt over/under 3500 watt",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "HAN sensor",
"SuccessTransition": "3",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:meter_elec/ad:51_2",
"Service": "meter_elec",
"ServiceInterface": "evt.meter.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": null,
"ValueType": "float"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 1034,
"y": 285
},
"TypeAlias": "Trigger",
"LastValue": "2510 W"
},
{
"Id": "3",
"Type": "if",
"Label": "Modus Home",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": true,
"LeftVariableName": "fh.home.mode",
"Operand": "eq",
"RightVariable": {
"Value": "home",
"ValueType": "string"
}
}
],
"FalseTransition": "",
"TrueTransition": "5"
},
"Ui": {
"nodeType": "",
"x": 812,
"y": 461
},
"TypeAlias": "If condition"
},
{
"Id": "5",
"Type": "if",
"Label": "Over 3501",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "gt",
"RightVariable": {
"Value": 3501,
"ValueType": "int"
}
}
],
"FalseTransition": "6",
"TrueTransition": "9"
},
"Ui": {
"nodeType": "",
"x": 370,
"y": 606
},
"TypeAlias": "If condition"
},
{
"Id": "6",
"Type": "if",
"Label": "Under 3500",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "lt",
"RightVariable": {
"Value": 3500,
"ValueType": "int"
}
}
],
"FalseTransition": "5",
"TrueTransition": "8"
},
"Ui": {
"nodeType": "",
"x": 861,
"y": 794
},
"TypeAlias": "If condition"
},
{
"Id": "8",
"Type": "action",
"Label": "New Green",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:38_1",
"Service": "color_ctrl",
"ServiceInterface": "cmd.color.set",
"Config": {
"DefaultValue": {
"Value": {
"green": 254
},
"ValueType": "int_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 844,
"y": 1023
},
"TypeAlias": "Action"
},
{
"Id": "9",
"Type": "action",
"Label": "New Red",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:38_1",
"Service": "color_ctrl",
"ServiceInterface": "cmd.color.set",
"Config": {
"DefaultValue": {
"Value": {
"red": 254
},
"ValueType": "int_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 377,
"y": 1025
},
"TypeAlias": "Action"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}