-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMiPlug.xml
More file actions
134 lines (133 loc) · 4.59 KB
/
MiPlug.xml
File metadata and controls
134 lines (133 loc) · 4.59 KB
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
<!--
* Homegear Xiaomi Smarthome for Homegear with PHP 7.4
* (c) Frank Motzkau 2020
*-->
<homegearDevice version="1">
<supportedDevices>
<device id="MiPlug">
<description>Xiaomi Smart Socket - homegear interface</description>
<typeNumber>0x28f0</typeNumber>
</device>
</supportedDevices>
<runProgram>
</runProgram>
<properties/>
<functions>
<function channel="0" type="SETTINGS" channelCount="1">
<properties/>
<configParameters>custom_ch0_master</configParameters>
<variables>custom_ch0_values</variables>
</function>
<function channel="1" type="READINGS" channelCount="1">
<properties/>
<configParameters>config</configParameters>
<variables>custom_ch1_readings</variables>
</function>
</functions>
<packets/>
<parameterGroups>
<configParameters id="config"/>
<configParameters id="custom_ch0_master">
<parameter id="SID">
<properties>
<unit></unit>
<casts>
<rpcBinary/>
</casts>
</properties>
<logicalString>
<defaultValue></defaultValue>
</logicalString>
<physicalString>
<operationType>config</operationType>
</physicalString>
</parameter>
</configParameters>
<variables id="custom_ch0_values">
<parameter id="HEARTBEAT">
<properties>
<writeable>true</writeable>
<addonWriteable>true</addonWriteable>
<unit></unit>
<casts>
<rpcBinary/>
</casts>
</properties>
<logicalDecimal/>
<physicalInteger>
<operationType>store</operationType>
</physicalInteger>
</parameter>
</variables>
<variables id="custom_ch1_readings">
<parameter id="STATE">
<properties>
<writeable>true</writeable>
<addonWriteable>true</addonWriteable>
<casts>
<rpcBinary/>
</casts>
</properties>
<logicalEnumeration>
<value>
<id>OFF</id>
<index>0</index>
</value>
<value>
<id>ON</id>
<index>1</index>
</value>
<value>
<id>UNKNOWN</id>
<index>2</index>
</value>
</logicalEnumeration>
<physicalInteger>
<operationType>store</operationType>
</physicalInteger>
</parameter>
<parameter id="LOAD_VOLTAGE">
<properties>
<writeable>true</writeable>
<addonWriteable>true</addonWriteable>
<unit>mV</unit>
<casts>
<rpcBinary/>
</casts>
</properties>
<logicalInteger/>
<physicalInteger>
<operationType>store</operationType>
</physicalInteger>
</parameter>
<parameter id="LOAD_POWER">
<properties>
<writeable>true</writeable>
<addonWriteable>true</addonWriteable>
<unit>W</unit>
<casts>
<rpcBinary/>
</casts>
</properties>
<logicalDecimal/>
<physicalInteger>
<operationType>store</operationType>
</physicalInteger>
</parameter>
<parameter id="POWER_CONSUMED">
<properties>
<writeable>true</writeable>
<addonWriteable>true</addonWriteable>
<unit>kWh</unit>
<casts>
<rpcBinary/>
</casts>
</properties>
<logicalDecimal/>
<physicalInteger>
<operationType>store</operationType>
</physicalInteger>
</parameter>
</variables>
</parameterGroups>
</homegearDevice>