-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice3_input.xml
73 lines (64 loc) · 3.06 KB
/
device3_input.xml
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
<?xml version = "1.0" encoding = "UTF-8" ?>
<deviceList>
<device id="1">
<deviceName>Fan</deviceName>
<argument num="1">
<argVal>1</argVal>
<argType>Bool</argType>
</argument>
<argument num="2">
<argVal>11</argVal>
<argType>Bool</argType>
</argument>
<dependencies>
<depGroup id="1">
<!--here num="1" indicates that we're looking at the 1st argument of Thermostat-->
<depDevice num="1">Thermostat</depDevice>
<!--upperThreshold signifies that for the condition to hold, the value of the arg must be strictly less than that value-->
<upperThreshold arg="1">2</upperThreshold>
<!--lowerThreshold signifies that for the condition to hold, the value of the arg must be strictly greater than that value-->
<lowerThreshold arg="1">2</lowerThreshold>
<!--here num="1" indicates that we're looking at the 1st argument of Blinds-->
<depDevice num="1">Blinds</depDevice>
<!--1 indicates closed 0 indicates open-->
<upperThreshold arg="2">3</upperThreshold>
<!--indicates what value the state should change to if ALL conditions are met-->
<!--here num=1 indicates we're looking at the 1st argument of this device, i.e. the Fan-->
<stateChange num="1">4</stateChange>
<stateChange num="2">44</stateChange>
</depGroup>
<depGroup id="2">
<depDevice num="1">Thermostat</depDevice>
<!--upperThreshold signifies that for the condition to hold, the value of the arg must be strictly less than that value-->
<upperThreshold arg="1">5</upperThreshold>
<!--indicates what value the state should change to if ALL conditions are met-->
<stateChange num="1">6</stateChange>
</depGroup>
</dependencies>
</device>
<device id="2">
<deviceName>Blinds</deviceName>
<argument num="1">
<!--1 indicates closed 0 indicates open-->
<argVal>7</argVal>
<argType>Bool</argType>
</argument>
<dependencies>
<depGroup id="1">
<depDevice num="1">Thermostat</depDevice>
<!--lowerThreshold signifies that for the condition to hold, the value of the arg must be strictly greater than that value-->
<lowerThreshold arg="1">8</lowerThreshold>
<!--indicates what value the state should change to if ALL conditions are met-->
<stateChange num="1">9</stateChange>
</depGroup>
</dependencies>
</device>
<device id="3">
<deviceName>Thermostat</deviceName>
<argument num="1">
<argVal>10</argVal>
<argType>Int</argType>
</argument>
<!--No Dependencies (i.e. no other device can cause the thermostat to change state)-->
</device>
</deviceList>