/
thing-types.xml
180 lines (176 loc) · 6.74 KB
/
thing-types.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="iammeter"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="https://openhab.org/schemas/thing-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/thing-description/v1.0.0 https://openhab.org/schemas/thing-description-1.0.0.xsd">
<thing-type id="powermeter">
<label>Iammeter Power Meter</label>
<description>PowerMeter thing for Iammeter Binding</description>
<channels>
<channel id="voltage_a" typeId="voltage_a"/>
<channel id="current_a" typeId="current_a"/>
<channel id="power_a" typeId="power_a"/>
<channel id="importenergy_a" typeId="importenergy_a"/>
<channel id="exportgrid_a" typeId="exportgrid_a"/>
<channel id="frequency_a" typeId="frequency_a"/>
<channel id="pf_a" typeId="pf_a"/>
<channel id="voltage_b" typeId="voltage_b"/>
<channel id="current_b" typeId="current_b"/>
<channel id="power_b" typeId="power_b"/>
<channel id="importenergy_b" typeId="importenergy_b"/>
<channel id="exportgrid_b" typeId="exportgrid_b"/>
<channel id="frequency_b" typeId="frequency_b"/>
<channel id="pf_b" typeId="pf_b"/>
<channel id="voltage_c" typeId="voltage_c"/>
<channel id="current_c" typeId="current_c"/>
<channel id="power_c" typeId="power_c"/>
<channel id="importenergy_c" typeId="importenergy_c"/>
<channel id="exportgrid_c" typeId="exportgrid_c"/>
<channel id="frequency_c" typeId="frequency_c"/>
<channel id="pf_c" typeId="pf_c"/>
</channels>
<config-description>
<parameter name="host" type="text" required="true">
<label>Device's IP Address</label>
<description>IP address for your device</description>
<context>network-address</context>
<default>127.0.0.1</default>
</parameter>
<parameter name="port" type="text" required="true" min="1" max="65535">
<label>Device's Port</label>
<description>Port</description>
<default>80</default>
</parameter>
<parameter name="refreshInterval" type="text" required="false">
<label>Refresh interval in seconds</label>
<default>60</default>
</parameter>
</config-description>
</thing-type>
<channel-type id="voltage_a">
<item-type>Number:ElectricPotential</item-type>
<label>Voltage A</label>
<description>voltage for phase A</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="current_a">
<item-type>Number:ElectricCurrent</item-type>
<label>Current A</label>
<description>current for phase A</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="power_a">
<item-type>Number:Power</item-type>
<label>Power A</label>
<description>power for phase A</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="importenergy_a">
<item-type>Number:Energy</item-type>
<label>ImportEnergy A</label>
<description>importenergy for phase A</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="exportgrid_a">
<item-type>Number:Energy</item-type>
<label>Exportgrid A</label>
<description>exportgrid for phase A</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="frequency_a">
<item-type>Number:Frequency</item-type>
<label>Frequency A</label>
<description>frequency for phase A</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="pf_a">
<item-type>Number</item-type>
<label>Power Factor A</label>
<description>power factor for phase A</description>
<state pattern="%.2f" readOnly="true"></state>
</channel-type>
<channel-type id="voltage_b">
<item-type>Number:ElectricPotential</item-type>
<label>Voltage B</label>
<description>voltage for phase B</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="current_b">
<item-type>Number:ElectricCurrent</item-type>
<label>Current B</label>
<description>current for phase B</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="power_b">
<item-type>Number:Power</item-type>
<label>Power B</label>
<description>power for phase B</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="importenergy_b">
<item-type>Number:Energy</item-type>
<label>ImportEnergy B</label>
<description>importenergy for phase B</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="exportgrid_b">
<item-type>Number:Energy</item-type>
<label>Exportgrid B</label>
<description>exportgrid for phase B</description>
<state pattern="%.2f %unit%"></state>
</channel-type>
<channel-type id="frequency_b">
<item-type>Number:Frequency</item-type>
<label>Frequency B</label>
<description>frequency for phase B</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="pf_b">
<item-type>Number</item-type>
<label>Power Factor B</label>
<description>power factor for phase B</description>
<state pattern="%.2f" readOnly="true"></state>
</channel-type>
<channel-type id="voltage_c">
<item-type>Number:ElectricPotential</item-type>
<label>Voltage C</label>
<description>voltage for phase C</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="current_c">
<item-type>Number:ElectricCurrent</item-type>
<label>Current C</label>
<description>current for phase C</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="power_c">
<item-type>Number:Power</item-type>
<label>Power C</label>
<description>power for phase C</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="importenergy_c">
<item-type>Number:Energy</item-type>
<label>ImportEnergy C</label>
<description>importenergy for phase C</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="exportgrid_c">
<item-type>Number:Energy</item-type>
<label>Exportgrid C</label>
<description>exportgrid for phase C</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="frequency_c">
<item-type>Number:Frequency</item-type>
<label>Frequency C</label>
<description>frequency for phase C</description>
<state pattern="%.2f %unit%" readOnly="true"></state>
</channel-type>
<channel-type id="pf_c">
<item-type>Number</item-type>
<label>Power Factor C</label>
<description>power factor for phase C</description>
<state pattern="%.2f" readOnly="true"></state>
</channel-type>
</thing:thing-descriptions>