forked from homeean/node-red-contrib-homee-flows
-
Notifications
You must be signed in to change notification settings - Fork 0
/
homeesystemstatus_profil_1.json
138 lines (138 loc) · 4.72 KB
/
homeesystemstatus_profil_1.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
131
132
133
134
135
136
137
138
[
{
"id": "475617ba.5ce458",
"type": "homeeDevice",
"z": "d174baed.50e358",
"virtual-homee": "",
"name": "homee Systemstatus",
"nodeId": "502",
"profile": "1",
"icon": "default",
"attributes": "[{\"id\":474,\"node_id\":502,\"instance\":0,\"minimum\":0,\"maximum\":5,\"current_value\":0,\"target_value\":0,\"last_value\":3,\"unit\":\"n%2Fa\",\"step_value\":1,\"editable\":1,\"type\":205,\"state\":1,\"last_changed\":1570085457,\"changed_by\":2,\"changed_by_id\":1,\"based_on\":1,\"data\":\"\"},{\"id\":2373,\"node_id\":502,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":65.676,\"target_value\":65.676,\"last_value\":65.913,\"unit\":\"%25Ram\",\"step_value\":0.1,\"editable\":0,\"type\":311,\"state\":1,\"last_changed\":1573742341,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":2374,\"node_id\":502,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":52.833,\"target_value\":52.833,\"last_value\":60.545,\"unit\":\"%25CPU\",\"step_value\":0.1,\"editable\":0,\"type\":312,\"state\":1,\"last_changed\":1573742341,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":2375,\"node_id\":502,\"instance\":0,\"minimum\":0,\"maximum\":100,\"current_value\":28.954,\"target_value\":28.954,\"last_value\":29.604,\"unit\":\"%25Mem\",\"step_value\":0.1,\"editable\":0,\"type\":313,\"state\":1,\"last_changed\":1573742341,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]",
"x": 634.0115356445312,
"y": 184.02777099609375,
"wires": [
[]
]
},
{
"id": "db2c009a.42a19",
"type": "template",
"z": "d174baed.50e358",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"id\":2373,\"value\":{{payload}}}",
"output": "json",
"x": 434.01153564453125,
"y": 184.02777099609375,
"wires": [
[
"475617ba.5ce458"
]
]
},
{
"id": "f0aea8d9.b93538",
"type": "template",
"z": "d174baed.50e358",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"id\":2374,\"value\":{{payload}}}",
"output": "json",
"x": 434.01153564453125,
"y": 224.02777099609375,
"wires": [
[
"475617ba.5ce458"
]
]
},
{
"id": "3eb6902b.29a49",
"type": "template",
"z": "d174baed.50e358",
"name": "",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{\"id\":2375,\"value\":{{payload}}}",
"output": "json",
"x": 434.01153564453125,
"y": 264.02777099609375,
"wires": [
[
"475617ba.5ce458"
]
]
},
{
"id": "7cfc9298.90f1fc",
"type": "function",
"z": "d174baed.50e358",
"name": "Mem",
"func": "var attribute = msg.payload.attribute;\nif(attribute && attribute.type === 313 && attribute.node_id === -1){\nreturn {payload: attribute.current_value}}",
"outputs": 1,
"noerr": 0,
"x": 250,
"y": 260,
"wires": [
[
"3eb6902b.29a49"
]
]
},
{
"id": "1dbf06df.00c1f9",
"type": "function",
"z": "d174baed.50e358",
"name": "CPU",
"func": "var attribute = msg.payload.attribute;\nif(attribute && attribute.type === 312 && attribute.node_id === -1){\nreturn {payload: attribute.current_value}}",
"outputs": 1,
"noerr": 0,
"x": 250,
"y": 220,
"wires": [
[
"f0aea8d9.b93538"
]
]
},
{
"id": "8fcb4bdd.821328",
"type": "function",
"z": "d174baed.50e358",
"name": "Ram",
"func": "var attribute = msg.payload.attribute;\nif(attribute && attribute.type === 311 && attribute.node_id === -1){\nreturn {payload: attribute.current_value}}",
"outputs": 1,
"noerr": 0,
"x": 250,
"y": 180,
"wires": [
[
"db2c009a.42a19"
]
]
},
{
"id": "7e5f64f9.ace7dc",
"type": "homeeApi",
"z": "d174baed.50e358",
"homee": "",
"x": 80,
"y": 220,
"wires": [
[
"8fcb4bdd.821328",
"1dbf06df.00c1f9",
"7cfc9298.90f1fc"
]
]
}
]