<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="lcn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd">
<!--PCHK Interface-->
<thing-type id="LCN-SH-17070A">
<label>LCN SH Module Firmware 17070A</label>
<description>Describes a LCN SH module with Firmware 17070A</description><config-description>
<parameter name="segmentID" type="text"></parameter>
<parameter name="moduleID" type="text"></parameter></config-description>
<channels>
<channel id="output01" typeId="output"/>
<channel id="output02" typeId="output"/>
<channel id="output03" typeId="output"/>
<channel id="output04" typeId="output"/>
<channel id="relay01" typeId="relay"/>
<channel id="relay02" typeId="relay"/>
<channel id="relay03" typeId="relay"/>
<channel id="relay04" typeId="relay"/>
<channel id="relay05" typeId="relay"/>
<channel id="relay06" typeId="relay"/>
<channel id="relay07" typeId="relay"/>
<channel id="relay08" typeId="relay"/>
<channel id="variable01" typeId="variable"/>
<channel id="variable02" typeId="variable"/>
<channel id="variable03" typeId="variable"/>
<channel id="variable04" typeId="variable"/>
<channel id="variable05" typeId="variable"/>
<channel id="variable06" typeId="variable"/>
<channel id="variable07" typeId="variable"/>
<channel id="variable08" typeId="variable"/>
<channel id="variable09" typeId="variable"/>
<channel id="variable10" typeId="variable"/>
<channel id="variable11" typeId="variable"/>
<channel id="variable12" typeId="variable"/>
<channel id="threshold01_1" typeId="threshold"/>
<channel id="threshold01_2" typeId="threshold"/>
<channel id="threshold01_3" typeId="threshold"/>
<channel id="threshold01_4" typeId="threshold"/>
<channel id="threshold02_1" typeId="threshold"/>
<channel id="threshold02_2" typeId="threshold"/>
<channel id="threshold02_3" typeId="threshold"/>
<channel id="threshold02_4" typeId="threshold"/>
<channel id="threshold03_1" typeId="threshold"/>
<channel id="threshold03_2" typeId="threshold"/>
<channel id="threshold03_3" typeId="threshold"/>
<channel id="threshold03_4" typeId="threshold"/>
<channel id="threshold04_1" typeId="threshold"/>
<channel id="threshold04_2" typeId="threshold"/>
<channel id="threshold04_3" typeId="threshold"/>
<channel id="threshold04_4" typeId="threshold"/>
<channel id="regulator01" typeId="regulator"/>
<channel id="regulator02" typeId="regulator"/>
</channels>
</thing-type>
<thing-type id="LCN-SH-140C0D">
<label>LCN SH Module Firmware 140C0D</label>
<description>Describes a LCN SH module with Firmware 140C0D</description><config-description>
<parameter name="segmentID" type="text"></parameter>
<parameter name="moduleID" type="text"></parameter></config-description>
<channels>
<channel id="output01" typeId="output"/>
<channel id="output02" typeId="output"/>
<channel id="output03" typeId="output"/>
<channel id="relay01" typeId="relay"/>
<channel id="relay02" typeId="relay"/>
<channel id="relay03" typeId="relay"/>
<channel id="relay04" typeId="relay"/>
<channel id="relay05" typeId="relay"/>
<channel id="relay06" typeId="relay"/>
<channel id="relay07" typeId="relay"/>
<channel id="relay08" typeId="relay"/>
<channel id="variable01" typeId="variable"/>
<channel id="variable02" typeId="variable"/>
<channel id="variable03" typeId="variable"/>
<channel id="threshold01" typeId="threshold"/>
<channel id="threshold02" typeId="threshold"/>
<channel id="threshold03" typeId="threshold"/>
<channel id="threshold04" typeId="threshold"/>
<channel id="threshold05" typeId="threshold"/>
<channel id="regulator01" typeId="regulator"/>
<channel id="regulator02" typeId="regulator"/>
</channels>
</thing-type>
<!--Channel Types-->
<channel-type id="output" advanced="true">
<item-type>Dimmer</item-type>
<label>LCN dimmable output</label>
<description>LCN output of a module - contains virtual outputs too</description>
<category>DimmableLight</category>
<state>min="0" max="100" step="2" readOnly="false"</state>
</channel-type>
<channel-type id="relay" advanced="true">
<item-type>Relay</item-type>
<label>LCN relay output</label>
<description>LCN relay of a module - contains virtual relays too</description>
<category>PowerOutlet</category>
<state>readOnly="false"</state>
</channel-type>
<channel-type id="variable" advanced="true">
<item-type>Variable</item-type>
<label>LCN variable</label>
<description>LCN variable of a module</description>
<state>readOnly="true"</state>
</channel-type>
<channel-type id="regulator" advanced="true">
<item-type>Regulator</item-type>
<label>LCN regulator</label>
<description>LCN regulator of a module</description>
<state>readOnly="false"</state>
</channel-type>
<channel-type id="threshold" advanced="true">
<item-type>Threshold</item-type>
<label>LCN threshold</label>
<description>LCN threshold of a module</description>
<state>readOnly="false"</state>
</channel-type>
</thing:thing-descriptions>
23:05:45.256 [WARN ] [.e.s.config.core.Configuration:83 ] - Could not set field value for field 'BUFFER_SIZE': Can not set static final java.lang.String field org.openhab.binding.lcn.config.EthernetBridgeConfiguration.BUFFER_SIZE to null value
java.lang.IllegalAccessException: Can not set static final java.lang.String field org.openhab.binding.lcn.config.EthernetBridgeConfiguration.BUFFER_SIZE to null value
at sun.reflect.UnsafeFieldAccessorImpl.throwFinalFieldIllegalAccessException(Unknown Source)
at sun.reflect.UnsafeFieldAccessorImpl.throwFinalFieldIllegalAccessException(Unknown Source)
at sun.reflect.UnsafeQualifiedStaticObjectFieldAccessorImpl.set(Unknown Source)
at java.lang.reflect.Field.set(Unknown Source)
at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:523)
at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:500)
at org.apache.commons.lang.reflect.FieldUtils.writeField(FieldUtils.java:560)
at org.eclipse.smarthome.config.core.Configuration.as(Configuration.java:81)
at org.eclipse.smarthome.core.thing.binding.BaseThingHandler.getConfigAs(BaseThingHandler.java:129)
at org.openhab.binding.lcn.handler.EthernetBridgeHandler.initialize(EthernetBridgeHandler.java:92)
at org.eclipse.smarthome.core.thing.binding.BaseThingHandlerFactory.registerHandler(BaseThingHandlerFactory.java:109)
public class EthernetBridgeConfiguration {
public static final String BUFFER_SIZE = "bufferSize";
public static final String IP_ADDRESS = "ipAddress";
public static final String IS_LISTENER = "isListener";
public static final String FIRMWARE_VERSION = "firmwareVersion";
public static final String LISTENER_PORT = "listenerPort";
public static final String MODE = "mode";
public static final String PING_TIME_OUT = "pingTimeOut";
public static final String PORT_NUMBER = "portNumber";
public static final String RECONNECT_INTERVAL = "reconnectInterval";
public static final String REFRESH_INTERVAL = "refreshInterval";
public static final String RESPONSE_TIME_OUT = "responseTimeOut";
public static final String USER_ID = "userid";
public static final String USER_PASS = "password";
public String bufferSize = "1024";
public String ipAddress;
public String isListener;
public String firmwareVersion;
public String listenerPort;
public String mode;
public String pingTimeOut = "1000";
public String portNumber = "4114";
public String reconnectInterval = "10";
public String refreshInterval = "50";
public String responseTimeOut = "100";
public String userid = "lcn";
public String password = "lcn";
}
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="lcn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
xsi:schemaLocation="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0 http://eclipse.org/smarthome/schemas/thing-description-1.0.0.xsd">
<!--PCHK Interface-->
<!--Channel Types-->
<bridge-type id="ethernet">
<label>LCN Ethernet Bridge</label>
<description>This Thing supports the Issendorff PCHK ethernet connection</description>
<config-description>
<parameter name="ipAddress" type="text">
<label>Network Address</label>
<description>Network address of the PCHK daemon</description>
<required>true</required>
</parameter>
<parameter name="portNumber" type="text">
<label>Port Number</label>
<description>TCP port number of the PCHK daemon</description>
<required>false</required>
<default>4114</default>
</parameter>
<parameter name="bufferSize" type="text">
<label>Buffer Size </label>
<description>Buffer size used by the TCP socket when sending and receiving commands the PCHK daemon</description>
<required>false</required>
<default>1024</default>
</parameter>
<parameter name="refreshInterval" type="text">
<label>Refresh interval</label>
<description>Specifies the refresh interval in milliseconds.</description>
<required>false</required>
<default>50</default>
</parameter>
<parameter name="responseTimeOut" type="text">
<label>Response time out interval</label>
<description>Specifies the time milliseconds to wait for a response from the PCHK daemon when sending a command.</description>
<required>false</required>
<default>100</default>
</parameter>
<parameter name="pingTimeOut" type="text">
<label>Ping time out interval</label>
<description>Specifies the time milliseconds to wait for a response from the PCHK daemon when pinging the device</description>
<required>false</required>
<default>1000</default>
</parameter>
<parameter name="reconnectInterval" type="text">
<label>Reconnect interval</label>
<description>Specifies the time seconds to wait before reconnecting to the PCHK daemon after a communication failure</description>
<required>false</required>
<default>10</default>
</parameter>
<parameter name="userid" type="text">
<label>User ID</label>
<description>User ID to connect to the PCHK daemon</description>
<required>false</required>
<default>lcn</default>
</parameter>
<parameter name="password" type="text">
<label>User Password</label>
<description>Password to connect to the PCHK daemon</description>
<required>false</required>
<default>lcn</default>
</parameter>
</config-description>
</bridge-type>
</thing:thing-descriptions>
...
...
Am 13 Jan 2015 um 09:09 schrieb clrose...@googlemail.com:
Another solution could be to specify just one ouput channel and specify the output number inside the command from OpenHAB. I could ask the firmware, store it in the item and check the availibility of outputs by checking the firmware release inside the output conversion method.
Am Dienstag, 13. Januar 2015 08:18:04 UTC+1 schrieb clrose...@googlemail.com:
This illustrates a part of the possible functions, a lot of things are missing, i.e. "send keys", "handle groups", "light scenes". It's also possible to ask the firmware version, if there is a better way to describe things without one per firmware please let me know.
<?xml version="1.0" encoding="UTF-8"?>
<thing:thing-descriptions bindingId="lcn"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:thing="http://eclipse.org/smarthome/schemas/thing-description/v1.0.0"
--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/413a2a9c-d56a-4dc2-978a-cab192608322%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.