Skip to content

Commit da135b9

Browse files
authored
Add semantic tags for prices (openhab#20174)
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
1 parent c30a231 commit da135b9

File tree

7 files changed

+57
-2
lines changed

7 files changed

+57
-2
lines changed

bundles/org.openhab.binding.amberelectric/src/main/resources/OH-INF/thing/thing-types.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
<label>Current Electricity Price</label>
5757
<description>Current price to import power from the grid</description>
5858
<category>Price</category>
59+
<tags>
60+
<tag>Status</tag>
61+
<tag>Price</tag>
62+
</tags>
5963
<state readOnly="true" pattern="%.3f %unit%"/>
6064
</channel-type>
6165
<channel-type id="electricity-status">

bundles/org.openhab.binding.awattar/src/main/resources/OH-INF/thing/thing-types.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,13 +278,23 @@
278278
<channel-type id="uom-price">
279279
<item-type>Number:EnergyPrice</item-type>
280280
<label>Price</label>
281+
<category>Price</category>
282+
<tags>
283+
<tag>Status</tag>
284+
<tag>Price</tag>
285+
</tags>
281286
<state readOnly="true" pattern="%.3f %unit%"/>
282287
</channel-type>
283288

284289
<channel-type id="price">
285290
<item-type>Number</item-type>
286291
<label>Price</label>
287292
<description>Price in ct/kWh</description>
293+
<category>Price</category>
294+
<tags>
295+
<tag>Status</tag>
296+
<tag>Price</tag>
297+
</tags>
288298
<state readOnly="true" pattern="%.3f ct"/>
289299
</channel-type>
290300

bundles/org.openhab.binding.entsoe/src/main/resources/OH-INF/thing/thing-types.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@
120120
<item-type>Number:EnergyPrice</item-type>
121121
<label>Spot Price</label>
122122
<category>Price</category>
123+
<tags>
124+
<tag>Status</tag>
125+
<tag>Price</tag>
126+
</tags>
123127
<state readOnly="true" pattern="%.2f %unit%"/>
124128
</channel-type>
125129

bundles/org.openhab.binding.evcc/src/main/resources/OH-INF/thing/loadpoint.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,10 @@
644644
<item-type>Number:EnergyPrice</item-type>
645645
<label>Session Price Per kWh</label>
646646
<description>Current session charging price per kWh</description>
647+
<category>Price</category>
647648
<tags>
648-
<tag>Measurement</tag>
649-
<tag>Info</tag>
649+
<tag>Calculation</tag>
650+
<tag>Price</tag>
650651
</tags>
651652
<state pattern="%.3f %unit%" readOnly="true"/>
652653
</channel-type>

bundles/org.openhab.binding.evcc/src/main/resources/OH-INF/thing/site.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,24 +444,44 @@
444444
<item-type>Number:EnergyPrice</item-type>
445445
<label>Feed in price per kWh</label>
446446
<description>Indicates the current price per kWh for feed-in to the grid</description>
447+
<category>Price</category>
448+
<tags>
449+
<tag>Status</tag>
450+
<tag>Price</tag>
451+
</tags>
447452
<state pattern="%.2f %unit%" readOnly="true"/>
448453
</channel-type>
449454
<channel-type id="site-tariff-grid">
450455
<item-type>Number:EnergyPrice</item-type>
451456
<label>Grid Price</label>
452457
<description>Indicates the current price per kWh for consuming from the grid</description>
458+
<category>Price</category>
459+
<tags>
460+
<tag>Status</tag>
461+
<tag>Price</tag>
462+
</tags>
453463
<state pattern="%.2f %unit%" readOnly="true"/>
454464
</channel-type>
455465
<channel-type id="site-tariff-price-home">
456466
<item-type>Number:EnergyPrice</item-type>
457467
<label>Home Price</label>
458468
<description>Indicates the current price per kWh for your home</description>
469+
<category>Price</category>
470+
<tags>
471+
<tag>Calculation</tag>
472+
<tag>Price</tag>
473+
</tags>
459474
<state pattern="%.2f %unit%" readOnly="true"/>
460475
</channel-type>
461476
<channel-type id="site-tariff-price-loadpoints">
462477
<item-type>Number:EnergyPrice</item-type>
463478
<label>Loadpoint price per kWh</label>
464479
<description>Indicates the current price per kWh for loadpoints</description>
480+
<category>Price</category>
481+
<tags>
482+
<tag>Calculation</tag>
483+
<tag>Price</tag>
484+
</tags>
465485
<state pattern="%.2f %unit%" readOnly="true"/>
466486
</channel-type>
467487
<channel-type id="site-tariff-solar">

bundles/org.openhab.binding.frenchgovtenergydata/src/main/resources/OH-INF/thing/channel-types.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,21 @@
3333
<item-type>Number:EnergyPrice</item-type>
3434
<label>Variable Price HT</label>
3535
<category>Price</category>
36+
<tags>
37+
<tag>Status</tag>
38+
<tag>Price</tag>
39+
</tags>
3640
<state readOnly="true" pattern="%.4f %unit%"></state>
3741
</channel-type>
3842

3943
<channel-type id="energy-price-ttc">
4044
<item-type>Number:EnergyPrice</item-type>
4145
<label>Variable Price TTC</label>
4246
<category>Price</category>
47+
<tags>
48+
<tag>Status</tag>
49+
<tag>Price</tag>
50+
</tags>
4351
<state readOnly="true" pattern="%.4f %unit%"></state>
4452
</channel-type>
4553

bundles/org.openhab.binding.tibber/src/main/resources/OH-INF/thing/channel-types.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,21 @@
99
<label>Current Total Price</label>
1010
<description>Total price including taxes</description>
1111
<category>Price</category>
12+
<tags>
13+
<tag>Status</tag>
14+
<tag>Price</tag>
15+
</tags>
1216
<state readOnly="true" pattern="%.3f %unit%"></state>
1317
</channel-type>
1418
<channel-type id="advanced-price" advanced="true">
1519
<item-type>Number:EnergyPrice</item-type>
1620
<label>Current Total Price</label>
1721
<description>Total price including taxes</description>
1822
<category>Price</category>
23+
<tags>
24+
<tag>Status</tag>
25+
<tag>Price</tag>
26+
</tags>
1927
<state readOnly="true" pattern="%.3f %unit%"></state>
2028
</channel-type>
2129
<channel-type id="price-level">

0 commit comments

Comments
 (0)