-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonos_flow_example.json
130 lines (130 loc) · 3.5 KB
/
sonos_flow_example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"Id": "D7spKRB6EBGPilz",
"ClassId": "D7spKRB6EBGPilz",
"Author": "",
"Version": 0,
"CreatedAt": "2020-07-28T13:23:06.661122011+02:00",
"UpdatedAt": "2020-07-28T13:56:10.614479091+02:00",
"Name": "Sonos test flow",
"Group": "sonos",
"Description": "",
"Nodes": [
{
"Id": "1",
"Type": "trigger",
"Label": "motion sensor",
"SuccessTransition": "2",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:evt/rt:dev/rn:zw/ad:1/sv:sensor_presence/ad:7_0",
"Service": "sensor_presence",
"ServiceInterface": "evt.presence.report",
"Config": {
"InputVariableType": "",
"IsValueFilterEnabled": true,
"LookupServiceNameAndLocation": false,
"PropFilterName": "",
"PropFilterValue": "",
"RegisterAsVirtualService": false,
"Timeout": 0,
"ValueFilter": {
"Value": true,
"ValueType": "bool"
},
"ValueJPath": "",
"ValueJPathResultType": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": null
},
"Ui": {
"nodeType": "",
"x": 150,
"y": 216
}
},
{
"Id": "2",
"Type": "action",
"Label": "Play",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:sonos/ad:1/sv:media_player/ad:7828CAD39E4201400",
"Service": "media_player",
"ServiceInterface": "cmd.playback.set",
"Config": {
"DefaultValue": {
"Value": "play",
"ValueType": "string"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 162,
"y": 469
}
},
{
"Id": "3",
"Type": "vinc_trigger",
"Label": "Away mode",
"SuccessTransition": "4",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "",
"Service": "",
"ServiceInterface": "",
"Config": {
"EventType": "mode",
"IsValueFilterEnabled": true,
"Timeout": 0,
"ValueFilter": "away"
},
"Ui": {
"nodeType": "",
"x": 383,
"y": 207
}
},
{
"Id": "4",
"Type": "action",
"Label": "Pause",
"SuccessTransition": "",
"TimeoutTransition": "",
"ErrorTransition": "",
"Address": "pt:j1/mt:cmd/rt:dev/rn:sonos/ad:1/sv:media_player/ad:7828CAD39E4201400",
"Service": "media_player",
"ServiceInterface": "cmd.playback.set",
"Config": {
"DefaultValue": {
"Value": "pause",
"ValueType": "string"
},
"IsVariableGlobal": false,
"Props": {},
"RegisterAsVirtualService": false,
"ResponseToTopic": "",
"VariableName": "",
"VirtualServiceGroup": "",
"VirtualServiceProps": {}
},
"Ui": {
"nodeType": "",
"x": 385,
"y": 474
}
}
],
"Settings": null,
"IsDisabled": false,
"IsDefault": false,
"ParallelExecution": "parallel"
}