Hei, prøver å få en pære til å endre farge via TPflow, men finner ikke ut av det… anyone?
på action node må du sende til color-control servicen. Har ikke noen RGB lamper hjemme, så får ikke laget og testet et eksempel til deg
Det enkleste er nok å sette farge via appen og følge med i message stream. Kopier value du får opp der inn i action node i flowen din
1 Like
da står det kun objectobject der… (i message flow)
Prøv å trykk på meldingen for mer info.
fikk til noe greier, ingen garantier…
dette er med en ikea e27 og en namron 4-kanalers bryter (zigbee)
{
"Id": "T2jqzIKKnMNLLx3",
"ClassId": "T2jqzIKKnMNLLx3",
"Author": "",
"Version": 0,
"CreatedAt": "2022-01-18T12:35:02.359077488+01:00",
"UpdatedAt": "2022-01-19T17:33:03.675030434+01:00",
"Name": "fargestyring kanal 4",
"Group": "",
"Description": "namron 4-kanalers bryter",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "no label",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zigbee/ad:1/sv:scene_ctrl/ad:1_4",
"Service": "scene_ctrl",
"ServiceInterface": "evt.scene.report",
"Config": {
"ConnectorID": "",
"InputVariableType": "",
"IsValueFilterEnabled": false,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": "temp",
"ValueType": "string"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 216,
"y": 127
},
"TypeAlias": "Trigger"
},
{
"Id": "2",
"Type": "if",
"Label": "hvitere",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": "move up",
"ValueType": "string"
}
}
],
"FalseTransition": "4",
"TrueTransition": "6"
},
"Ui": {
"nodeType": "",
"x": 265,
"y": 286
},
"TypeAlias": "If condition"
},
{
"Id": "4",
"Type": "if",
"Label": "stop",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": "stop",
"ValueType": "string"
}
}
],
"FalseTransition": "7",
"TrueTransition": "5"
},
"Ui": {
"nodeType": "",
"x": 495,
"y": 238
},
"TypeAlias": "If condition"
},
{
"Id": "5",
"Type": "action",
"Label": "stop",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:out_lvl_switch/ad:4_1",
"Service": "out_lvl_switch",
"ServiceInterface": "cmd.lvl.stop",
"Config": {
"DefaultValue": {
"Value": "",
"ValueType": "string"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 504,
"y": 397
},
"TypeAlias": "Action"
},
{
"Id": "6",
"Type": "action",
"Label": "",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:4_1",
"Service": "color_ctrl",
"ServiceInterface": "cmd.color.set",
"Config": {
"DefaultValue": {
"Value": {
"temp": 3560
},
"ValueType": "int_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 257,
"y": 442
},
"TypeAlias": "Action"
},
{
"Id": "7",
"Type": "if",
"Label": "",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": "on",
"ValueType": "string"
}
}
],
"FalseTransition": "11",
"TrueTransition": "8"
},
"Ui": {
"nodeType": "",
"x": -1,
"y": 278
},
"TypeAlias": "If condition"
},
{
"Id": "8",
"Type": "action",
"Label": "",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:4_1",
"Service": "color_ctrl",
"ServiceInterface": "cmd.color.set",
"Config": {
"DefaultValue": {
"Value": {
"temp": 4000
},
"ValueType": "int_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": -8,
"y": 436
},
"TypeAlias": "Action"
},
{
"Id": "9",
"Type": "action",
"Label": "",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:4_1",
"Service": "color_ctrl",
"ServiceInterface": "cmd.color.set",
"Config": {
"DefaultValue": {
"Value": {
"temp": 2702
},
"ValueType": "int_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 961,
"y": 393
},
"TypeAlias": "Action"
},
{
"Id": "10",
"Type": "action",
"Label": "",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:zigbee/ad:1/sv:color_ctrl/ad:4_1",
"Service": "color_ctrl",
"ServiceInterface": "cmd.color.set",
"Config": {
"DefaultValue": {
"Value": {
"temp": 3130
},
"ValueType": "int_map"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 735,
"y": 398
},
"TypeAlias": "Action"
},
{
"Id": "11",
"Type": "if",
"Label": "gulere",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": "move down",
"ValueType": "string"
}
}
],
"FalseTransition": "12",
"TrueTransition": "10"
},
"Ui": {
"nodeType": "",
"x": 732,
"y": 234
},
"TypeAlias": "If condition"
},
{
"Id": "12",
"Type": "if",
"Label": "gulest",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"Expression": [
{
"BooleanOperator": "",
"LeftVariableIsGlobal": false,
"LeftVariableName": "",
"Operand": "eq",
"RightVariable": {
"Value": "off",
"ValueType": "string"
}
}
],
"FalseTransition": "",
"TrueTransition": "9"
},
"Ui": {
"nodeType": "",
"x": 979,
"y": 234
},
"TypeAlias": "If condition"
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}
1 Like