Skip to content

Commit 70aaec4

Browse files
authored
add device
1 parent 2e15a3f commit 70aaec4

5 files changed

Lines changed: 223 additions & 53 deletions

File tree

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"name" : "Interrupteur double va et vient",
3+
"commands" : [
4+
{
5+
"name": "Etat 1",
6+
"type": "info",
7+
"subtype": "binary",
8+
"isVisible": 0,
9+
"isHistorized": 0,
10+
"logicalId": "channelStatus_1"
11+
},
12+
{
13+
"name": "Etat 2",
14+
"type": "info",
15+
"subtype": "binary",
16+
"isVisible": 0,
17+
"isHistorized": 0,
18+
"logicalId": "channelStatus_2"
19+
},
20+
{
21+
"name": "Source evenement",
22+
"type": "info",
23+
"subtype": "string",
24+
"isVisible": 0,
25+
"isHistorized": 0,
26+
"logicalId": "sourceObjectName"
27+
},
28+
{
29+
"name": "Evenement",
30+
"type": "info",
31+
"subtype": "string",
32+
"isVisible": 0,
33+
"isHistorized": 0,
34+
"logicalId": "event"
35+
},
36+
{
37+
"name": "Code evenement",
38+
"type": "info",
39+
"subtype": "string",
40+
"isVisible": 0,
41+
"isHistorized": 0,
42+
"logicalId": "eventCode"
43+
},
44+
{
45+
"name": "On 1",
46+
"type": "action",
47+
"subtype": "other",
48+
"isVisible": 1,
49+
"isHistorized": 0,
50+
"logicalId": "SWITCH_ON 1",
51+
"value" :"Etat 1",
52+
"template":{
53+
"dashboard" : "prise",
54+
"mobile" : "prise"
55+
},
56+
"configuration" :{
57+
"AdditionalParam" : {
58+
"ChannelsAdditionalParam" : "CHANNEL_1"
59+
}
60+
}
61+
},
62+
{
63+
"name": "Off 1",
64+
"type": "action",
65+
"subtype": "other",
66+
"isVisible": 1,
67+
"isHistorized": 0,
68+
"logicalId": "SWITCH_OFF 1",
69+
"value" :"Etat 1",
70+
"template":{
71+
"dashboard" : "prise",
72+
"mobile" : "prise"
73+
},
74+
"configuration" :{
75+
"AdditionalParam" : {
76+
"ChannelsAdditionalParam" : "CHANNEL_1"
77+
}
78+
}
79+
},
80+
{
81+
"name": "On 2",
82+
"type": "action",
83+
"subtype": "other",
84+
"isVisible": 1,
85+
"isHistorized": 0,
86+
"logicalId": "SWITCH_ON 2",
87+
"value" :"Etat 2",
88+
"template":{
89+
"dashboard" : "prise",
90+
"mobile" : "prise"
91+
}
92+
},
93+
{
94+
"name": "Off 2",
95+
"type": "action",
96+
"subtype": "other",
97+
"isVisible": 1,
98+
"isHistorized": 0,
99+
"logicalId": "SWITCH_OFF 2",
100+
"value" :"Etat 2",
101+
"template":{
102+
"dashboard" : "prise",
103+
"mobile" : "prise"
104+
}
105+
}
106+
]
107+
}
3.24 KB
Loading
Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
{
2+
"name" : "Interrupteur double",
3+
"commands" : [
4+
{
5+
"name": "Etat 1",
6+
"type": "info",
7+
"subtype": "binary",
8+
"isVisible": 0,
9+
"isHistorized": 0,
10+
"logicalId": "channelStatus_1"
11+
},
12+
{
13+
"name": "Etat 2",
14+
"type": "info",
15+
"subtype": "binary",
16+
"isVisible": 0,
17+
"isHistorized": 0,
18+
"logicalId": "channelStatus_2"
19+
},
20+
{
21+
"name": "Source evenement",
22+
"type": "info",
23+
"subtype": "string",
24+
"isVisible": 0,
25+
"isHistorized": 0,
26+
"logicalId": "sourceObjectName"
27+
},
28+
{
29+
"name": "Evenement",
30+
"type": "info",
31+
"subtype": "string",
32+
"isVisible": 0,
33+
"isHistorized": 0,
34+
"logicalId": "event"
35+
},
36+
{
37+
"name": "Code evenement",
38+
"type": "info",
39+
"subtype": "string",
40+
"isVisible": 0,
41+
"isHistorized": 0,
42+
"logicalId": "eventCode"
43+
},
44+
{
45+
"name": "On 1",
46+
"type": "action",
47+
"subtype": "other",
48+
"isVisible": 1,
49+
"isHistorized": 0,
50+
"logicalId": "SWITCH_ON 1",
51+
"value" :"Etat 1",
52+
"template":{
53+
"dashboard" : "prise",
54+
"mobile" : "prise"
55+
},
56+
"configuration" :{
57+
"AdditionalParam" : {
58+
"ChannelsAdditionalParam" : "CHANNEL_1"
59+
}
60+
}
61+
},
62+
{
63+
"name": "Off 1",
64+
"type": "action",
65+
"subtype": "other",
66+
"isVisible": 1,
67+
"isHistorized": 0,
68+
"logicalId": "SWITCH_OFF 1",
69+
"value" :"Etat 1",
70+
"template":{
71+
"dashboard" : "prise",
72+
"mobile" : "prise"
73+
},
74+
"configuration" :{
75+
"AdditionalParam" : {
76+
"ChannelsAdditionalParam" : "CHANNEL_1"
77+
}
78+
}
79+
},
80+
{
81+
"name": "On 2",
82+
"type": "action",
83+
"subtype": "other",
84+
"isVisible": 1,
85+
"isHistorized": 0,
86+
"logicalId": "SWITCH_ON 2",
87+
"value" :"Etat 2",
88+
"template":{
89+
"dashboard" : "prise",
90+
"mobile" : "prise"
91+
}
92+
},
93+
{
94+
"name": "Off 2",
95+
"type": "action",
96+
"subtype": "other",
97+
"isVisible": 1,
98+
"isHistorized": 0,
99+
"logicalId": "SWITCH_OFF 2",
100+
"value" :"Etat 2",
101+
"template":{
102+
"dashboard" : "prise",
103+
"mobile" : "prise"
104+
}
105+
}
106+
]
107+
}
3.24 KB
Loading

core/config/devices/LightSwitchTwoWay.json

Lines changed: 9 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,12 @@
22
"name" : "Va et vient",
33
"commands" : [
44
{
5-
"name": "Etat 1",
5+
"name": "Etat",
66
"type": "info",
77
"subtype": "binary",
88
"isVisible": 0,
99
"isHistorized": 0,
10-
"logicalId": "channelStatus_1"
11-
},
12-
{
13-
"name": "Etat 2",
14-
"type": "info",
15-
"subtype": "binary",
16-
"isVisible": 0,
17-
"isHistorized": 0,
18-
"logicalId": "channelStatus_2"
10+
"logicalId": "channelStatus"
1911
},
2012
{
2113
"name": "Source evenement",
@@ -42,66 +34,30 @@
4234
"logicalId": "eventCode"
4335
},
4436
{
45-
"name": "On 1",
46-
"type": "action",
47-
"subtype": "other",
48-
"isVisible": 1,
49-
"isHistorized": 0,
50-
"logicalId": "SWITCH_ON 1",
51-
"value" :"Etat 1",
52-
"template":{
53-
"dashboard" : "prise",
54-
"mobile" : "prise"
55-
},
56-
"configuration" :{
57-
"AdditionalParam" : {
58-
"ChannelsAdditionalParam" : "CHANNEL_1"
59-
}
60-
}
61-
},
62-
{
63-
"name": "Off 1",
64-
"type": "action",
65-
"subtype": "other",
66-
"isVisible": 1,
67-
"isHistorized": 0,
68-
"logicalId": "SWITCH_OFF 1",
69-
"value" :"Etat 1",
70-
"template":{
71-
"dashboard" : "prise",
72-
"mobile" : "prise"
73-
},
74-
"configuration" :{
75-
"AdditionalParam" : {
76-
"ChannelsAdditionalParam" : "CHANNEL_1"
77-
}
78-
}
79-
},
80-
{
81-
"name": "On 2",
37+
"name": "On",
8238
"type": "action",
8339
"subtype": "other",
8440
"isVisible": 1,
8541
"isHistorized": 0,
86-
"logicalId": "SWITCH_ON 2",
87-
"value" :"Etat 2",
42+
"logicalId": "SWITCH_ON",
43+
"value" :"Etat",
8844
"template":{
8945
"dashboard" : "prise",
9046
"mobile" : "prise"
9147
}
9248
},
9349
{
94-
"name": "Off 2",
50+
"name": "Off",
9551
"type": "action",
9652
"subtype": "other",
9753
"isVisible": 1,
9854
"isHistorized": 0,
99-
"logicalId": "SWITCH_OFF 2",
100-
"value" :"Etat 2",
55+
"logicalId": "SWITCH_OFF",
56+
"value" :"Etat",
10157
"template":{
10258
"dashboard" : "prise",
10359
"mobile" : "prise"
10460
}
10561
}
10662
]
107-
}
63+
}

0 commit comments

Comments
 (0)