added migrated 2.x add-ons
Signed-off-by: Kai Kreuzer <kai@openhab.org>
This commit is contained in:
@@ -0,0 +1,170 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<thing:thing-descriptions bindingId="minecraft"
|
||||
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">
|
||||
|
||||
<bridge-type id="server">
|
||||
<label>Minecraft Bukkit Server</label>
|
||||
<description>Server from which data is being fetched.</description>
|
||||
|
||||
<channels>
|
||||
<channel id="online" typeId="online"/>
|
||||
<channel id="players" typeId="players"/>
|
||||
<channel id="maxPlayers" typeId="maxPlayers"/>
|
||||
</channels>
|
||||
|
||||
<config-description>
|
||||
<parameter name="hostname" type="text" required="true">
|
||||
<label>Hostname or IP</label>
|
||||
<context>network-address</context>
|
||||
<description>Hostname or IP of the server.</description>
|
||||
</parameter>
|
||||
|
||||
<parameter name="port" type="integer">
|
||||
<label>Port</label>
|
||||
<description>The port on which the server can be accessed.</description>
|
||||
<default>10692</default>
|
||||
</parameter>
|
||||
</config-description>
|
||||
</bridge-type>
|
||||
|
||||
<thing-type id="player">
|
||||
<supported-bridge-type-refs>
|
||||
<bridge-type-ref id="server"/>
|
||||
</supported-bridge-type-refs>
|
||||
|
||||
<label>Player</label>
|
||||
<description>A connected player connected to the Minecraft server.</description>
|
||||
|
||||
<channels>
|
||||
<channel id="playerOnline" typeId="online">
|
||||
<label>Online</label>
|
||||
<description>Online status of the player.</description>
|
||||
</channel>
|
||||
<channel id="playerLevel" typeId="playerLevel"/>
|
||||
<channel id="playerTotalExperience" typeId="playerTotalExperience"/>
|
||||
<channel id="playerExperiencePercentage" typeId="playerExperiencePercentage"/>
|
||||
<channel id="playerHealth" typeId="playerHealth"/>
|
||||
<channel id="playerWalkSpeed" typeId="playerWalkSpeed"/>
|
||||
<channel id="playerLocation" typeId="location"/>
|
||||
<channel id="playerGameMode" typeId="playerGameMode"/>
|
||||
|
||||
</channels>
|
||||
|
||||
<config-description>
|
||||
<parameter name="playerName" type="text" required="true">
|
||||
<label>Player Name</label>
|
||||
<description>The name of the player.</description>
|
||||
</parameter>
|
||||
</config-description>
|
||||
</thing-type>
|
||||
|
||||
<thing-type id="redstoneSign">
|
||||
<supported-bridge-type-refs>
|
||||
<bridge-type-ref id="server"/>
|
||||
</supported-bridge-type-refs>
|
||||
|
||||
<label>Sign</label>
|
||||
<description>A sign with a redstone path under it.</description>
|
||||
|
||||
<channels>
|
||||
<channel id="signActive" typeId="signActive"/>
|
||||
</channels>
|
||||
|
||||
<config-description>
|
||||
<parameter name="signName" type="text" required="true">
|
||||
<label>Sign Name</label>
|
||||
<description>The text on the sign.</description>
|
||||
</parameter>
|
||||
</config-description>
|
||||
</thing-type>
|
||||
|
||||
<channel-type id="players">
|
||||
<item-type>Number</item-type>
|
||||
<label>Players</label>
|
||||
<description>The number of players on the server.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="maxPlayers">
|
||||
<item-type>Number</item-type>
|
||||
<label>Max Players</label>
|
||||
<description>The maxumum number of players on the server.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="online">
|
||||
<item-type>Switch</item-type>
|
||||
<label>Online</label>
|
||||
<description>Online status of the thing.</description>
|
||||
<category>Switch</category>
|
||||
<state readOnly="true">
|
||||
<options>
|
||||
<option value="ON">Online</option>
|
||||
<option value="OFF">Offline</option>
|
||||
</options>
|
||||
</state>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="location">
|
||||
<item-type>Location</item-type>
|
||||
<label>Location</label>
|
||||
<description>The location of the player.</description>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="playerLevel">
|
||||
<item-type>Number</item-type>
|
||||
<label>Level</label>
|
||||
<description>The players current level.</description>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="playerTotalExperience" advanced="true">
|
||||
<item-type>Number</item-type>
|
||||
<label>Total Experience</label>
|
||||
<description>The total experience of the player.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="playerExperiencePercentage" advanced="true">
|
||||
<item-type>Number</item-type>
|
||||
<label>Experience</label>
|
||||
<description>Percentage of the experience bar filled for the next level.</description>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="playerHealth">
|
||||
<item-type>Number</item-type>
|
||||
<label>Health</label>
|
||||
<description>The health of player.</description>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="playerWalkSpeed" advanced="true">
|
||||
<item-type>Number</item-type>
|
||||
<label>Speed</label>
|
||||
<description>The speed of player.</description>
|
||||
<state min="0" max="1" step="0.05" pattern="%.2f"/>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="playerGameMode" advanced="true">
|
||||
<item-type>String</item-type>
|
||||
<label>Game Mode</label>
|
||||
<description>The players current game mode.</description>
|
||||
<state readOnly="false">
|
||||
<options>
|
||||
<option value="CREATIVE">creative</option>
|
||||
<option value="SURVIVAL">survival</option>
|
||||
<option value="ADVENTURE">adventure</option>
|
||||
<option value="SPECTATOR">spectator</option>
|
||||
</options>
|
||||
</state>
|
||||
</channel-type>
|
||||
|
||||
<channel-type id="signActive">
|
||||
<item-type>Switch</item-type>
|
||||
<label>Online</label>
|
||||
<description>Shows if the sign has powered redstone below it.</description>
|
||||
<category>Switch</category>
|
||||
</channel-type>
|
||||
|
||||
</thing:thing-descriptions>
|
||||
Reference in New Issue
Block a user