Add semantic tags (#18531)

Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com>
This commit is contained in:
mlobstein
2025-04-13 10:42:15 +02:00
committed by GitHub
parent 5835b0f80e
commit cedf7d3fbd
2 changed files with 36 additions and 0 deletions
@@ -7,6 +7,7 @@
<thing-type id="projector-serial"> <thing-type id="projector-serial">
<label>BenQ Projector - Serial</label> <label>BenQ Projector - Serial</label>
<description>A BenQ projector connected via a serial port</description> <description>A BenQ projector connected via a serial port</description>
<semantic-equipment-tag>Projector</semantic-equipment-tag>
<channels> <channels>
<channel id="power" typeId="system.power"/> <channel id="power" typeId="system.power"/>
@@ -19,6 +20,10 @@
<channel id="lamptime" typeId="lamptime"/> <channel id="lamptime" typeId="lamptime"/>
</channels> </channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description> <config-description>
<parameter name="serialPort" type="text" required="true"> <parameter name="serialPort" type="text" required="true">
<label>Serial Port</label> <label>Serial Port</label>
@@ -39,6 +44,7 @@
<label>BenQ Projector - TCP/IP</label> <label>BenQ Projector - TCP/IP</label>
<description>A BenQ projector connected via the built-in ethernet port or a serial over <description>A BenQ projector connected via the built-in ethernet port or a serial over
IP device</description> IP device</description>
<semantic-equipment-tag>Projector</semantic-equipment-tag>
<channels> <channels>
<channel id="power" typeId="system.power"/> <channel id="power" typeId="system.power"/>
@@ -51,6 +57,10 @@
<channel id="lamptime" typeId="lamptime"/> <channel id="lamptime" typeId="lamptime"/>
</channels> </channels>
<properties>
<property name="thingTypeVersion">1</property>
</properties>
<config-description> <config-description>
<parameter name="host" type="text" required="true"> <parameter name="host" type="text" required="true">
<label>Host</label> <label>Host</label>
@@ -171,6 +181,10 @@
<item-type>Number</item-type> <item-type>Number</item-type>
<label>Lamp Time</label> <label>Lamp Time</label>
<description>Retrieves the number of hours the lamp has been used</description> <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"/> <state readOnly="true" pattern="%d h"/>
</channel-type> </channel-type>
@@ -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>