added migrated 2.x add-ons

Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
Kai Kreuzer
2020-09-21 01:58:32 +02:00
parent bbf1a7fd29
commit 6df6783b60
11662 changed files with 1302875 additions and 11 deletions

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<binding:binding id="hpprinter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:binding="https://openhab.org/schemas/binding/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/binding/v1.0.0 https://openhab.org/schemas/binding-1.0.0.xsd">
<name>HP Printer Binding</name>
<description>Binding for HP Printers with Embedded Web Servers</description>
<author>Stewart Cossey</author>
</binding:binding>

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<config-description:config-descriptions
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:config-description="https://openhab.org/schemas/config-description/v1.0.0"
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0
https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="thing-type:hpprinter:config">
<parameter name="ipAddress" type="text" required="true">
<label>Network Address</label>
<description>The IP or host name of the HP Printer</description>
<context>network-address</context>
</parameter>
<parameter name="usageInterval" type="integer" min="4">
<label>Usage Interval</label>
<description>The refresh interval in seconds for polling the printer usage information</description>
<default>30</default>
<advanced>true</advanced>
</parameter>
<parameter name="statusInterval" type="integer" min="4">
<label>Status Interval</label>
<description>The refresh interval in seconds for polling status information</description>
<default>4</default>
<advanced>true</advanced>
</parameter>
</config-description>
</config-description:config-descriptions>

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="hpprinter"
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">
<!-- Channel Groups -->
<channel-group-type id="ink">
<label>Ink/Toner Levels</label>
<description>Ink/Toner amounts for each cartridge.</description>
</channel-group-type>
<channel-group-type id="usageInfo">
<label>Printer</label>
<description>Print Engine Usage Information</description>
</channel-group-type>
<channel-group-type id="printerStatus">
<label>Status</label>
<description>Printer Statuses</description>
</channel-group-type>
<channel-group-type id="scanner">
<label>Scanner</label>
<description>Scanner Engine Usage Information</description>
</channel-group-type>
<channel-group-type id="scan">
<label>Scan</label>
<description>Scan Application Usage Information</description>
</channel-group-type>
<channel-group-type id="copy">
<label>Copy</label>
<description>Copy Application Usage Information</description>
</channel-group-type>
<channel-group-type id="app">
<label>Application</label>
<description>Application Usage by Device or Operating System</description>
</channel-group-type>
<channel-group-type id="other">
<label>Other</label>
<description>Other Usage or Details</description>
</channel-group-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" ?>
<thing:thing-descriptions bindingId="hpprinter"
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">
<channel-type id="inkLevel">
<item-type>Number:Dimensionless</item-type>
<label>Ink Level</label>
<description>Shows the amount of Ink/Toner remaining</description>
<state readOnly="true" pattern="%f %%"/>
</channel-type>
<channel-type id="totals">
<item-type>Number</item-type>
<label>Totals</label>
<description>Amount of pages.</description>
<state readOnly="true"/>
</channel-type>
<channel-type id="totalsAdv" advanced="true">
<item-type>Number</item-type>
<label>Totals</label>
<description>Amount of pages.</description>
<state readOnly="true"/>
</channel-type>
<channel-type id="cumlMarkingUsed" advanced="true">
<item-type>Number:Volume</item-type>
<label>Cumulative Marking Used</label>
<description>Shows the amount of Ink/Toner used</description>
<state readOnly="true" pattern="%f mL"/>
</channel-type>
<channel-type id="status">
<item-type>String</item-type>
<label>Status</label>
<description>Printer Status</description>
<state readOnly="true"/>
</channel-type>
<channel-type id="readonlyswitch" advanced="true">
<item-type>Switch</item-type>
<label>Read Only Switch Item</label>
<state readOnly="true"/>
</channel-type>
</thing:thing-descriptions>

View File

@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="hpprinter"
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="printer">
<label>HP Printer</label>
<description>An HP Printer.</description>
<channel-groups>
<channel-group typeId="printerStatus" id="status"/>
<channel-group typeId="ink" id="ink"/>
<channel-group typeId="usageInfo" id="usage"/>
<channel-group typeId="scanner" id="scanner"/>
<channel-group typeId="scan" id="scan"/>
<channel-group typeId="copy" id="copy"/>
<channel-group typeId="app" id="app"/>
<channel-group typeId="other" id="other"/>
</channel-groups>
<properties>
<property name="vendor">HP</property>
</properties>
<representation-property>serialNumber</representation-property>
<config-description-ref uri="thing-type:hpprinter:config"/>
</thing-type>
</thing:thing-descriptions>