<? xml version="1.0" encoding="UTF-8"? >
<thing:thing-descriptions bindingId="paradoxalarm"
	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="ip150">
		<label>Paradox IP150 Module Connector</label>
		<description>Paradox IP150 module connector</description>

		<channels>
			<channel id="communicationCommand" typeId="command"/>
			<channel id="communicationState" typeId="communicationState"/>
		</channels>

		<config-description>
			<parameter name="refresh" type="integer" min="1" max="600">
				<label>Refresh Interval</label>
				<description>Specifies the refresh interval in seconds.</description>
				<default>5</default>
			</parameter>
			<parameter name="panelType" type="text" required="false">
				<label>Panel Type</label>
				<description>PanelType</description>
			</parameter>
			<parameter name="ip150Password" type="text" required="true">
				<label>IP150 Password</label>
				<description>Password for accessing IP150</description>
				<context>password</context>
				<required>true</required>
			</parameter>
			<parameter name="pcPassword" type="text" required="true">
				<label>PC Password</label>
				<description>PC Password (section 3012 of configuration)</description>
				<default>0000</default>
				<context>password</context>
			</parameter>
			<parameter name="ipAddress" type="text" required="true">
				<label>Network Address</label>
				<description>IP address or host name of IP150</description>
				<context>network-address</context>
				<required>true</required>
			</parameter>
			<parameter name="port" type="integer" required="true">
				<label>Port</label>
				<description>Port to connect to IP150</description>
				<default>10000</default>
			</parameter>
			<parameter name="reconnectWaitTime" type="integer" required="true" unit="s">
				<label>Reconnect Wait Time</label>
				<description>The time to wait before a reconnect occurs after socket timeout.  Value is in seconds</description>
				<default>30</default>
			</parameter>
			<parameter name="maxZones" type="integer" unit="s">
				<label>Max Zones</label>
				<description>Maximum number of configured zones to check (from zone 1 to maxZones)</description>
				<default>0</default>
			</parameter>
			<parameter name="maxPartitions" type="integer" unit="s">
				<label>Max Partitions</label>
				<description>Maximum number of configured partitions to check (from partition 1 to maxPartitions)</description>
				<default>0</default>
			</parameter>
			<parameter name="encrypt" type="boolean">
				<label>Use Encryption</label>
				<description>If set to true will use encrypted communication.  Default=false for backward compatibility</description>
				<default>false</default>
			</parameter>
		</config-description>
	</bridge-type>

	<channel-type id="command">
		<item-type>String</item-type>
		<label>Communicator Command</label>
		<description>Send Command</description>
	</channel-type>
	<channel-type id="communicationState">
		<item-type>String</item-type>
		<label>Bridge Communication State</label>
		<description>Status of connection to Paradox system</description>
		<state readOnly="true" pattern="%s"/>
	</channel-type>
</thing:thing-descriptions>
