mirror of
https://github.com/danieldemus/openhab-addons
synced 2026-07-29 12:34:21 +02:00
Add semantic tags (#18531)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
+14
@@ -7,6 +7,7 @@
|
||||
<thing-type id="projector-serial">
|
||||
<label>BenQ Projector - Serial</label>
|
||||
<description>A BenQ projector connected via a serial port</description>
|
||||
<semantic-equipment-tag>Projector</semantic-equipment-tag>
|
||||
|
||||
<channels>
|
||||
<channel id="power" typeId="system.power"/>
|
||||
@@ -19,6 +20,10 @@
|
||||
<channel id="lamptime" typeId="lamptime"/>
|
||||
</channels>
|
||||
|
||||
<properties>
|
||||
<property name="thingTypeVersion">1</property>
|
||||
</properties>
|
||||
|
||||
<config-description>
|
||||
<parameter name="serialPort" type="text" required="true">
|
||||
<label>Serial Port</label>
|
||||
@@ -39,6 +44,7 @@
|
||||
<label>BenQ Projector - TCP/IP</label>
|
||||
<description>A BenQ projector connected via the built-in ethernet port or a serial over
|
||||
IP device</description>
|
||||
<semantic-equipment-tag>Projector</semantic-equipment-tag>
|
||||
|
||||
<channels>
|
||||
<channel id="power" typeId="system.power"/>
|
||||
@@ -51,6 +57,10 @@
|
||||
<channel id="lamptime" typeId="lamptime"/>
|
||||
</channels>
|
||||
|
||||
<properties>
|
||||
<property name="thingTypeVersion">1</property>
|
||||
</properties>
|
||||
|
||||
<config-description>
|
||||
<parameter name="host" type="text" required="true">
|
||||
<label>Host</label>
|
||||
@@ -171,6 +181,10 @@
|
||||
<item-type>Number</item-type>
|
||||
<label>Lamp Time</label>
|
||||
<description>Retrieves the number of hours the lamp has been used</description>
|
||||
<tags>
|
||||
<tag>Status</tag>
|
||||
<tag>Duration</tag>
|
||||
</tags>
|
||||
<state readOnly="true" pattern="%d h"/>
|
||||
</channel-type>
|
||||
|
||||
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
|
||||
<update:update-descriptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:update="https://openhab.org/schemas/update-description/v1.0.0"
|
||||
xsi:schemaLocation="https://openhab.org/schemas/update-description/v1.0.0 https://openhab.org/schemas/update-description-1.0.0.xsd">
|
||||
|
||||
<thing-type uid="benqprojector:projector-serial">
|
||||
<instruction-set targetVersion="1">
|
||||
<update-channel id="lamptime">
|
||||
<type>benqprojector:lamptime</type>
|
||||
</update-channel>
|
||||
</instruction-set>
|
||||
</thing-type>
|
||||
|
||||
<thing-type uid="benqprojector:projector-tcp">
|
||||
<instruction-set targetVersion="1">
|
||||
<update-channel id="lamptime">
|
||||
<type>benqprojector:lamptime</type>
|
||||
</update-channel>
|
||||
</instruction-set>
|
||||
</thing-type>
|
||||
|
||||
</update:update-descriptions>
|
||||
Reference in New Issue
Block a user