Skip to content

Commit 96dd703

Browse files
andrewfgcomputergeek1507
authored andcommitted
Retrofit property tags lock state and open level (openhab#18889)
* change tags to lock state (and open level) Signed-off-by: Andrew Fiddian-Green <software@whitebear.ch> Signed-off-by: Scott Hanson <scooter_seh@yahoo.com>
1 parent b421460 commit 96dd703

10 files changed

Lines changed: 42 additions & 9 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@
625625
<label>Lock State</label>
626626
<tags>
627627
<tag>Switch</tag>
628-
<tag>Mode</tag>
628+
<tag>LockState</tag>
629629
</tags>
630630
</channel-type>
631631
<!-- Alexa.PowerLevelController -->

bundles/org.openhab.binding.insteon/src/main/resources/OH-INF/thing/channels.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@
492492
<category>Lock</category>
493493
<tags>
494494
<tag>Switch</tag>
495-
<tag>Mode</tag>
495+
<tag>LockState</tag>
496496
</tags>
497497
</channel-type>
498498

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
<category>Lock</category>
241241
<tags>
242242
<tag>Status</tag>
243-
<tag>Mode</tag>
243+
<tag>LockState</tag>
244244
</tags>
245245
<state readOnly="false">
246246
<options>

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,55 @@
66
<channel-type id="driver-front-channel">
77
<item-type>String</item-type>
88
<label>Driver Door</label>
9+
<tags>
10+
<tag>Status</tag>
11+
<tag>OpenState</tag>
12+
</tags>
913
<state readOnly="true"/>
1014
</channel-type>
1115
<channel-type id="driver-rear-channel">
1216
<item-type>String</item-type>
1317
<label>Driver Door Rear</label>
18+
<tags>
19+
<tag>Status</tag>
20+
<tag>OpenState</tag>
21+
</tags>
1422
<state readOnly="true"/>
1523
</channel-type>
1624
<channel-type id="passenger-front-channel">
1725
<item-type>String</item-type>
1826
<label>Passenger Door</label>
27+
<tags>
28+
<tag>Status</tag>
29+
<tag>OpenState</tag>
30+
</tags>
1931
<state readOnly="true"/>
2032
</channel-type>
2133
<channel-type id="passenger-rear-channel">
2234
<item-type>String</item-type>
2335
<label>Passenger Door Rear</label>
36+
<tags>
37+
<tag>Status</tag>
38+
<tag>OpenState</tag>
39+
</tags>
2440
<state readOnly="true"/>
2541
</channel-type>
2642
<channel-type id="hood-channel">
2743
<item-type>String</item-type>
2844
<label>Hood</label>
45+
<tags>
46+
<tag>Status</tag>
47+
<tag>OpenState</tag>
48+
</tags>
2949
<state readOnly="true"/>
3050
</channel-type>
3151
<channel-type id="trunk-channel">
3252
<item-type>String</item-type>
3353
<label>Trunk</label>
54+
<tags>
55+
<tag>Status</tag>
56+
<tag>OpenState</tag>
57+
</tags>
3458
<state readOnly="true"/>
3559
</channel-type>
3660
<channel-type id="window-driver-front-channel">

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<channel-type id="doors-channel">
77
<item-type>String</item-type>
88
<label>Overall Door Status</label>
9+
<tags>
10+
<tag>Status</tag>
11+
<tag>OpenState</tag>
12+
</tags>
913
<state readOnly="true"/>
1014
</channel-type>
1115
<channel-type id="windows-channel">
@@ -22,7 +26,7 @@
2226
<label>Doors Locked</label>
2327
<tags>
2428
<tag>Status</tag>
25-
<tag>OpenState</tag>
29+
<tag>LockState</tag>
2630
</tags>
2731
</channel-type>
2832
<channel-type id="next-service-date-channel">

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,10 @@
586586
<label>@text/channelLockLabel</label>
587587
<description>@text/channelLockDescription</description>
588588
<category>Switch</category>
589+
<tags>
590+
<tag>Switch</tag>
591+
<tag>LockState</tag>
592+
</tags>
589593
<autoUpdatePolicy>veto</autoUpdatePolicy>
590594
</channel-type>
591595

@@ -595,7 +599,8 @@
595599
<description>@text/channelAlarmArmedDescription</description>
596600
<category>Alarm</category>
597601
<tags>
598-
<tag>Alarm</tag>
602+
<tag>Switch</tag>
603+
<tag>Mode</tag>
599604
</tags>
600605
<autoUpdatePolicy>veto</autoUpdatePolicy>
601606
</channel-type>

bundles/org.openhab.binding.nuvo/src/main/resources/OH-INF/thing/channels.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
<description>Indicates If This Zone Is Locked</description>
488488
<tags>
489489
<tag>Status</tag>
490-
<tag>Mode</tag>
490+
<tag>LockState</tag>
491491
</tags>
492492
<state readOnly="true">
493493
<options>

bundles/org.openhab.binding.omnilink/src/main/resources/OH-INF/thing/lock.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<category>Switch</category>
3232
<tags>
3333
<tag>Switch</tag>
34-
<tag>Mode</tag>
34+
<tag>LockState</tag>
3535
</tags>
3636
</channel-type>
3737

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
<description>Lock or unlock the car</description>
343343
<tags>
344344
<tag>Switch</tag>
345-
<tag>Mode</tag>
345+
<tag>LockState</tag>
346346
</tags>
347347
</channel-type>
348348
<channel-type id="driver-rear-door" advanced="true">

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
<description>Indicator if the devices child lock is enabled (Display Lock)</description>
300300
<tags>
301301
<tag>Status</tag>
302-
<tag>Mode</tag>
302+
<tag>LockState</tag>
303303
</tags>
304304
<state readOnly="false"/>
305305
</channel-type>

0 commit comments

Comments
 (0)