-
Notifications
You must be signed in to change notification settings - Fork 18
/
Sonoff Plug ohne Verbrauchsmessung.json
133 lines (133 loc) · 3.12 KB
/
Sonoff Plug ohne Verbrauchsmessung.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
[
{
"id": "760b36fd.c184a8",
"type": "homeeDevice",
"z": "5a869de6.3ee3ac",
"virtual-homee": "57c2bd18.3b1014",
"name": "Leseleuchte",
"nodeId": "370",
"profile": "16",
"icon": "nodeicon_bulb",
"attributes": "[{\"id\":370,\"node_id\":370,\"instance\":0,\"minimum\":0,\"maximum\":4,\"current_value\":3,\"target_value\":3,\"last_value\":3,\"unit\":\"n%2Fa\",\"step_value\":1,\"editable\":0,\"type\":33,\"state\":1,\"last_changed\":1572944008,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"},{\"id\":371,\"node_id\":370,\"instance\":0,\"minimum\":0,\"maximum\":1,\"current_value\":0,\"target_value\":0,\"last_value\":0,\"unit\":\"n%2Fa\",\"step_value\":1,\"editable\":1,\"type\":1,\"state\":1,\"last_changed\":1572944008,\"changed_by\":1,\"changed_by_id\":0,\"based_on\":1,\"data\":\"\"}]",
"x": 210,
"y": 2440,
"wires": [
[
"90a0f6fa.64b958"
]
]
},
{
"id": "9a511b20.662718",
"type": "Sonoff device",
"z": "5a869de6.3ee3ac",
"mode": "0",
"broker": "2191e2fe.175e7e",
"device": "Leseleuchte",
"name": "",
"onValue": "ON",
"offValue": "OFF",
"cmdPrefix": "cmnd",
"statPrefix": "stat",
"telePrefix": "tele",
"x": 630,
"y": 2440,
"wires": [
[
"1a9d0621.bf403a"
]
]
},
{
"id": "90a0f6fa.64b958",
"type": "change",
"z": "5a869de6.3ee3ac",
"name": "",
"rules": [
{
"t": "change",
"p": "payload.targetValue",
"pt": "msg",
"from": "0",
"fromt": "num",
"to": "false",
"tot": "bool"
},
{
"t": "change",
"p": "payload.targetValue",
"pt": "msg",
"from": "1",
"fromt": "num",
"to": "true",
"tot": "bool"
},
{
"t": "move",
"p": "payload.targetValue",
"pt": "msg",
"to": "payload",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 400,
"y": 2440,
"wires": [
[
"9a511b20.662718"
]
]
},
{
"id": "1a9d0621.bf403a",
"type": "function",
"z": "5a869de6.3ee3ac",
"name": "Rückkanal on off",
"func": "if (msg.payload === true){var status =1}\n else var status =0;\n node.send({payload:{\"id\":370,\"value\":status}})",
"outputs": 1,
"noerr": 0,
"x": 830,
"y": 2440,
"wires": [
[
"760b36fd.c184a8"
]
]
},
{
"id": "57c2bd18.3b1014",
"type": "virtualHomee",
"z": "",
"name": "12345QWERT"
},
{
"id": "2191e2fe.175e7e",
"type": "mqtt-broker",
"z": "",
"name": "",
"broker": "192.168.1.27",
"port": "1883",
"clientid": "",
"usetls": false,
"compatmode": true,
"keepalive": "60",
"cleansession": true,
"birthTopic": "",
"birthQos": "0",
"birthRetain": "false",
"birthPayload": "",
"closeTopic": "",
"closeQos": "0",
"closeRetain": "false",
"closePayload": "",
"willTopic": "",
"willQos": "0",
"willRetain": "false",
"willPayload": ""
}
]