1
- <?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
- <dhc : dogHomeConfiguration xmlns : dhc =" http://elite.polito.it/dogHomeConfiguration" >
3
- <dhc : controllables >
4
- <dhc : device domoticSystem =" ZWave" id =" $name"
5
- class=" LevelControllableOutput" gateway =" $gateway" >
6
- <dhc : description >$description</dhc : description >
7
- <dhc : isIn >$location</dhc : isIn >
8
- <dhc : param value =" $nodeId" name =" NodeID" type =" network" />
9
- #foreach( $instanceId in $instanceIds )
10
- <dhc : param value =" $instanceId" name =" InstanceID" type =" network" />
11
- #end
12
- <!-- <dhc:hasMeter>$meter</dhc:hasMeter> -->
13
- <dhc : controlFunctionality class =" OnOffFunctionality" >
14
- <dhc : commands >
15
- <dhc : command id =" OffCommand_$name" name =" OffCommand_$name"
16
- class=" OffCommand" >
17
- <dhc : param value =" off" name =" realCommandName" />
18
- </dhc : command >
19
- <dhc : command id =" OnCommand_$name" name =" OnCommand_$name"
20
- class=" OnCommand" >
21
- <dhc : param value =" on" name =" realCommandName" />
22
- </dhc : command >
23
- </dhc : commands >
24
- </dhc : controlFunctionality >
25
- <dhc : controlFunctionality class =" LevelControlFunctionality" >
26
- <dhc : commands >
27
- <dhc : command id =" SetCommand_$name" name =" OffCommand_$name"
28
- class=" SetCommand" >
29
- <dhc : param value =" set" name =" realCommandName" />
30
- <dhc : param value =" 1" name =" nParams" />
31
- <dhc : param value =" value" name =" commandParamName" type =" Object" />
32
- </dhc : command >
33
- <dhc : command id =" StepUpCommand_$name" name =" OnCommand_$name"
34
- class=" StepUpCommand" >
35
- <dhc : param value =" stepDown" name =" realCommandName" />
36
- </dhc : command >
37
- <dhc : command id =" StepDownCommand_$name" name =" OnCommand_$name"
38
- class=" StepDownCommand" >
39
- <dhc : param value =" stepDown" name =" realCommandName" />
40
- </dhc : command >
41
- </dhc : commands >
42
- </dhc : controlFunctionality >
43
- <dhc : notificationFunctionality class =" StateChangeNotificationFunctionality" >
44
- <dhc : notifications >
45
- <dhc : notification
46
- id=" StateChangeNotification_$name" class =" StateChangeNotification" >
47
- <dhc : param value =" 1" name =" nParams" />
48
- <dhc : param value =" stateChanged" name =" notificationName" />
49
- <dhc : param type =" State" value =" newState" name =" notificationParamName" />
50
- </dhc : notification >
51
- </dhc : notifications >
52
- </dhc : notificationFunctionality >
53
- <dhc : state class =" OnOffState" >
54
- <dhc : statevalues >
55
- <dhc : statevalue name =" off" class =" OffStateValue" />
56
- <dhc : statevalue name =" on" class =" OnStateValue" />
57
- </dhc : statevalues >
58
- </dhc : state >
59
- <dhc : state class =" LevelState" >
60
- <dhc : statevalue name =" level" class =" LevelStateValue" />
61
- </dhc : state >
62
- </dhc : device >
63
- </dhc : controllables >
1
+ <?xml version =" 1.0" encoding =" UTF-8" standalone =" yes" ?>
2
+ <dhc : dogHomeConfiguration xmlns : dhc =" http://elite.polito.it/dogHomeConfiguration" >
3
+ <dhc : controllables >
4
+ <dhc : device domoticSystem =" ZWave" id =" $name"
5
+ class=" LevelControllableOutput" gateway =" $gateway" >
6
+ <dhc : description >$description</dhc : description >
7
+ <dhc : isIn >$location</dhc : isIn >
8
+ <dhc : param value =" $nodeId" name =" NodeID" type =" network" />
9
+ #foreach( $instanceId in $instanceIds )
10
+ <dhc : param value =" $instanceId" name =" InstanceID" type =" network" />
11
+ #end
12
+ <!-- <dhc:hasMeter>$meter</dhc:hasMeter> -->
13
+ <dhc : controlFunctionality class =" OnOffFunctionality" >
14
+ <dhc : commands >
15
+ <dhc : command id =" OffCommand_$name" name =" OffCommand_$name"
16
+ class=" OffCommand" >
17
+ <dhc : param value =" off" name =" realCommandName" />
18
+ </dhc : command >
19
+ <dhc : command id =" OnCommand_$name" name =" OnCommand_$name"
20
+ class=" OnCommand" >
21
+ <dhc : param value =" on" name =" realCommandName" />
22
+ </dhc : command >
23
+ </dhc : commands >
24
+ </dhc : controlFunctionality >
25
+ <dhc : controlFunctionality class =" LevelControlFunctionality" >
26
+ <dhc : commands >
27
+ <dhc : command id =" SetCommand_$name" name =" OffCommand_$name"
28
+ class=" SetCommand" >
29
+ <dhc : param value =" set" name =" realCommandName" />
30
+ <dhc : param value =" 1" name =" nParams" />
31
+ <dhc : param value =" value" name =" commandParamName" type =" Object" />
32
+ </dhc : command >
33
+ <dhc : command id =" StepUpCommand_$name" name =" OnCommand_$name"
34
+ class=" StepUpCommand" >
35
+ <dhc : param value =" stepDown" name =" realCommandName" />
36
+ </dhc : command >
37
+ <dhc : command id =" StepDownCommand_$name" name =" OnCommand_$name"
38
+ class=" StepDownCommand" >
39
+ <dhc : param value =" stepDown" name =" realCommandName" />
40
+ </dhc : command >
41
+ </dhc : commands >
42
+ </dhc : controlFunctionality >
43
+ <dhc : notificationFunctionality class =" StateChangeNotificationFunctionality" >
44
+ <dhc : notifications >
45
+ <dhc : notification
46
+ id=" StateChangeNotification_$name" class =" StateChangeNotification" >
47
+ <dhc : param value =" 1" name =" nParams" />
48
+ <dhc : param value =" stateChanged" name =" notificationName" />
49
+ <dhc : param type =" State" value =" newState" name =" notificationParamName" />
50
+ </dhc : notification >
51
+ </dhc : notifications >
52
+ </dhc : notificationFunctionality >
53
+ <dhc : state class =" OnOffState" >
54
+ <dhc : statevalues >
55
+ <dhc : statevalue name =" off" class =" OffStateValue" />
56
+ <dhc : statevalue name =" on" class =" OnStateValue" />
57
+ </dhc : statevalues >
58
+ </dhc : state >
59
+ <dhc : state class =" LevelState" >
60
+ <dhc : statevalue name =" level" class =" LevelStateValue" />
61
+ </dhc : state >
62
+ </dhc : device >
63
+ </dhc : controllables >
64
64
</dhc : dogHomeConfiguration >
0 commit comments