Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move current development master #42

Merged
merged 166 commits into from
Dec 22, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
f69bf36
Skeleton creation
tobof Jan 24, 2016
59c1db6
Merged old code into new plugin
Jan 24, 2016
2c0af99
Added missing files from last commit
Jan 25, 2016
6aae331
Tested against current OH2 beta: working!
tobof Jan 25, 2016
007d4c8
added baudrate configurable
andreacioni Jan 25, 2016
4391c15
Added script for testing purpose and missing pom.xml
Jan 26, 2016
6614038
Merge branch 'andreacioni-MySensors' into MySensors
Jan 26, 2016
ffdb73e
Changed thing description for serial gateway to support different baud
tobof Jan 26, 2016
8c64a8c
Fixed documentation regarding baud rate of the serial gateway
tobof Jan 26, 2016
d5d751b
esh-inf added parameter and serial closing to allow binding restart
andreacioni Jan 26, 2016
6d9f478
removed debug log before initialize
andreacioni Jan 26, 2016
2d251f5
thread managing improved
andreacioni Jan 28, 2016
5449983
little fix allows correct start and stop for binding
andreacioni Jan 31, 2016
ffbbfc5
Merge remote-tracking branch 'upstream/MySensors' into MySensors
andreacioni Jan 31, 2016
2e19e8a
Added missing STOP for item "Rollershutter"
tobof Feb 1, 2016
b018f21
Doc fixed
tobof Feb 1, 2016
5da2824
requestAck feature added
tobof Feb 1, 2016
1a73f54
writer thread implementation changed and serial port class changed to
andreacioni Feb 1, 2016
086e7d6
Merge remote-tracking branch 'upstream/MySensors' into MySensors
andreacioni Feb 1, 2016
248fd76
adding back the message to queue if is not time to sent it again
andreacioni Feb 2, 2016
62c1260
reader thread moved in abstract class as the writer
andreacioni Feb 2, 2016
6639f59
tryying to move to SerialPort, no success...
andreacioni Feb 2, 2016
085dc89
Merge branch 'andreacioni-MySensors' into MySensors
Feb 4, 2016
330e59f
Minor fix in visibilty of overridden method
tobof Feb 4, 2016
f177a70
Merge branch 'master' into MySensors
Feb 4, 2016
90e08c7
Code cleanup and fix for sendDelay
Feb 9, 2016
a07f15a
Error handling on disconnect of ethernet gw
tobof Feb 10, 2016
cc6ce5e
Added jar and fixed docs
tobof Feb 10, 2016
a4481a9
requestAck
tobof Feb 12, 2016
3ecbb78
requestAck: revert item status if no ack is received
tobof Feb 12, 2016
ef372a1
ensure gateway was started correctly
andreacioni Feb 15, 2016
524762c
Merge remote-tracking branch 'upstream/MySensors' into MySensors
andreacioni Feb 17, 2016
578ec39
event driven i_version handing
andreacioni Feb 21, 2016
ee0c690
removed debug messages
andreacioni Feb 21, 2016
c078b5a
disconnect on connection fail now child id 255 can respond to i_version
andreacioni Feb 27, 2016
726d7cb
Added S_HVAC constant
DenkeDenke Mar 18, 2016
cb27fd7
HVAC Thermostat added
DenkeDenke Mar 19, 2016
ac679c1
Added channels to HVAC
DenkeDenke Mar 19, 2016
613bd20
Merge branch 'andreacioni-MySensors' into MySensors
tobof Mar 20, 2016
6b10443
Added CHANNEL_HVAC_FLOW_MODE and CHANNEL_HVAC_FLOW_STATE to
DenkeDenke Mar 20, 2016
9318ae8
Added support for return messages to sensor on V_VAR1 to V_VAR5
DenkeDenke Mar 22, 2016
e14109d
Merge branch 'MySensors' of https://github.com/DenkeDenke/openhab2-ad…
Mar 23, 2016
3165232
Merge branch 'DenkeDenke-MySensors' into MySensors
Mar 23, 2016
4daba20
requestAck feature redesigned. Reader/Writer are now in sync.
tobof Mar 24, 2016
453f291
Merge branch 'master' into MySensors
Mar 24, 2016
9d07db6
Removed debug messages. Added updated jar of the binding.
tobof Mar 24, 2016
41fcbe2
Requesting of thing/item values supported + minor fix
tobof Mar 29, 2016
4049a75
Merge branch 'MySensors' of https://github.com/tobof/openhab2-addons …
Mar 29, 2016
8a9a3b5
Added jar build
Mar 30, 2016
5666a1a
Merge branch 'master' into MySensors
Mar 30, 2016
1907029
Delay before I_VERSION check for SerialGW, new jar file
Mar 30, 2016
123470d
Compatibility fixes
tobof Apr 7, 2016
eaf6e69
just a little restyle
Apr 16, 2016
2e1547e
I_TIME and I_CONFIG response implemented (not tested)
Apr 18, 2016
2b0ba86
I_VERSION skip now allowed
Apr 19, 2016
609e8f3
Merge pull request #11 from andreacioni/MySensors
tobof Apr 22, 2016
fb3ae2c
Merge branch 'master' into MySensors
Apr 22, 2016
fd97f87
Binding jar refresh
Apr 22, 2016
85da07d
fix for I_TIME/I_CONFIG, not requesting that nodeId = 0
Apr 24, 2016
2e09d35
updated testscript.sh
Apr 24, 2016
da9e33a
Merge branch 'MySensors' of https://github.com/andreacioni/openhab2-a…
Apr 25, 2016
9f6d80b
Code review
tobof Apr 26, 2016
c92bc7d
Fixed value requests from nodes for sensors with multiple subtypes and
planbnet Apr 21, 2016
cbfc079
Merge pull request #14 from planbnet/MySensors
tobof May 9, 2016
24ae987
Added WaterMeter Sensor
meju25 May 16, 2016
6d97c73
Merge pull request #15 from meju25/MySensors
tobof May 17, 2016
8125c83
pom.xml refresh
May 19, 2016
7ea8358
Merge branch 'master' into MySensors
May 19, 2016
8c54a8a
New jar-Release after merge
May 19, 2016
ffd9cb2
Fixed issue with serial Reader
May 23, 2016
ab28744
Merge branch 'master' into MySensors
May 23, 2016
4591b36
New jar after merge with master
May 23, 2016
0345857
Added the customSensor, containing the channels for V_VARx
meju25 May 29, 2016
fd19a7b
Fixed mistake in documentation
dakky Jun 8, 2016
3b2243b
Merge pull request #18 from dakky/MySensors
tobof Jun 10, 2016
99af13c
Merge pull request #16 from meju25/MySensors
tobof Jun 10, 2016
97497db
Fixed issue with high CPU usage
tobof Jun 10, 2016
41fb90c
added possibility to not revert state if no ack received
meju25 Jun 11, 2016
70406f9
Changed type of vars for "reverted" para from int to boolean
meju25 Jun 11, 2016
87e00bd
removed debug logging of messages in queues
meju25 Jun 11, 2016
0054cef
Merge pull request #19 from meju25/MySensors
tobof Jun 13, 2016
93d9cfb
Reduced sleep time in reader
Jun 13, 2016
80b78df
Added Pressure channel to thing barometer
tobof Jun 17, 2016
36293b5
Merge branch 'master' into MySensors
tobof Jun 17, 2016
b15accc
New jar
tobof Jun 17, 2016
ce8a375
Merge branch 'master' into MySensors
tobof Jul 18, 2016
4d5275e
Packaged new jar!
tobof Jul 18, 2016
53e1626
datetime implemented in channel
Jul 21, 2016
ba4c4d9
last update fixes
Jul 24, 2016
f1f0949
last update fixes #2
Jul 25, 2016
fdbd112
Merge branch 'MySensors' of https://github.com/andreacioni/openhab2-a…
tobof Jul 25, 2016
8974531
Merge branch 'master' into MySensors
tobof Jul 25, 2016
5212440
Fixed bug that sends status of things on startup
tobof Jul 25, 2016
7275123
Removed constructor task, moved to initialize
Jul 28, 2016
a57cddf
Merge remote-tracking branch 'upstream/MySensors' into MySensors
Jul 28, 2016
773e0ff
Debug line added
Jul 28, 2016
0e80c23
minor bug fixing and little refactor
Jul 30, 2016
48f2fe6
minor bug fixing #2
Jul 31, 2016
3ae8370
minor bug fixing #3
Jul 31, 2016
1d5ab46
minor bug fixing #4
Jul 31, 2016
9147133
minor bug fixing #5
Jul 31, 2016
5095381
fixed log level for some logging
Jul 31, 2016
f35461e
fixed log level for some logging
Jul 31, 2016
c50e57a
disconnection fixes
Aug 1, 2016
4aac271
Merge pull request #23 from andreacioni/MySensors
tobof Aug 2, 2016
ca79e39
Legal header adjusted, Current jar attached
tobof Aug 2, 2016
58db99b
Merge remote-tracking branch 'upstream/master' into MySensors
Aug 2, 2016
7234caf
started working on network watchdog
Aug 5, 2016
5c3c311
Update MySensorsBindingConstants.java
gnalbandian Aug 16, 2016
f2ad51e
Update MySensorsBindingConstants.java
gnalbandian Aug 16, 2016
ff63cb6
working on network sanity check
Aug 17, 2016
6332cf4
Merge remote-tracking branch 'upstream/MySensors' into MySensors
Aug 17, 2016
c6b9bd0
Update constants to comply with OH2
gnalbandian Aug 18, 2016
da7d959
Update MySensorsBindingConstants.java
gnalbandian Aug 18, 2016
b1fb2ac
Update MySensorsBindingConstants.java
gnalbandian Aug 18, 2016
f4aa55d
Update MySensorsBindingConstants.java
gnalbandian Aug 18, 2016
885c4b0
Updates to comply with My Sensors 2.0
gnalbandian Aug 18, 2016
2f8ca4a
Update MySensorsDiscoveryService.java
gnalbandian Aug 18, 2016
d4e22a2
Update MySensorsDiscoveryService.java
gnalbandian Aug 18, 2016
ff1e417
Update MySensorsBindingConstants.java
gnalbandian Aug 18, 2016
502c3a8
Update thing-types.xml
gnalbandian Aug 18, 2016
99899b2
Update thing-types.xml
gnalbandian Aug 18, 2016
306ed04
Update MySensorsBindingConstants.java
gnalbandian Aug 18, 2016
bbefd49
working on network sanity check #2
Aug 19, 2016
c98660a
Added missing constants, removed typos
Aug 25, 2016
53d5df4
Merge branch 'gnalbandian-MySensors' into MySensors
Aug 25, 2016
80ea9d9
resolved dependecies for bridge connection
Aug 28, 2016
f889778
Merge branch 'master' into MySensors
tobof Sep 18, 2016
be5e5bb
Generated new jar
tobof Sep 18, 2016
ae5a7b4
new feature and refactoring testing #1
Sep 18, 2016
75f7da2
new feature and refactoring testing #1
Sep 18, 2016
40fc34c
new feature and refactoring testing #2
Sep 18, 2016
d5d5651
Added expert mode
Sep 20, 2016
6fc1b75
[PARTIAL] start joining connector and connection
Sep 20, 2016
411454e
connection and connector merged
Sep 20, 2016
dfc7628
invalidating requestDisconnection flag
Sep 20, 2016
465132d
Merge remote-tracking branch 'upstream/MySensors' into MySensors
Sep 20, 2016
411a891
connection tested and debugged
Sep 20, 2016
4edb932
[FIX] adding listener before connection
Sep 20, 2016
f9fec41
cache factory implemented, now managing only given_ids one
Sep 22, 2016
54a116e
windows disconnect fix and cache minor fix
Sep 22, 2016
26f8125
new packaging and structure initial restyle
Sep 25, 2016
7048aad
some changes
Sep 25, 2016
2de8f93
moving to new version of ESM framework
Sep 28, 2016
97cd855
bridgeHandelerInitialized (deprecated) has changed to
Sep 28, 2016
121b063
cache usage changed after refactoring
Sep 28, 2016
ac535f6
[FIX] java.util.ConcurrentModificationException
Sep 28, 2016
b4b8531
final fixing, now testing
Sep 28, 2016
1c3a1cd
utility message type moved into message class
Oct 2, 2016
ae92248
build.xml file removed
Oct 2, 2016
90fd686
new jar
Oct 2, 2016
48201b5
[FIX] asList cause UnsupportedOperationException
Oct 2, 2016
254ab48
[FIX] startup check not work on connection retry after disconnection
Oct 3, 2016
04054fa
[FIX] initialize thing to offline, cause problem if left uninitialized
Oct 6, 2016
94fa06e
[WIP] V_TEXT added
Oct 19, 2016
672917e
[WIP] Added V_IR_SEND & V_IR_RECEIVE
Oct 19, 2016
450b8a0
fixing mvn strange behaviour
Oct 19, 2016
8a588fc
Merge branch 'MySensors-temp' of https://github.com/andreacioni/openh…
Oct 20, 2016
2cfc3b5
Merge branch 'andreacioni-MySensors-temp' into MySensors
Oct 28, 2016
8236abf
Created new jar && Modified Testscript
Oct 28, 2016
d66eb98
Merge remote-tracking branch 'upstream/master' into MySensors
Nov 14, 2016
3799e05
Fixed bug that prevents answering of internal messages
Nov 14, 2016
7df3447
[WiP] Refactor ThingHandler
Nov 14, 2016
d3b3d04
Fixing issue in MySensorsBridgeConnection which detached the EventLis…
Nov 21, 2016
8e19f0e
Fixed recent issue related to updates on Smarthome API
Nov 22, 2016
41296b4
Merge branch 'master' into MySensors
tobof Dec 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion addons/binding/org.openhab.binding.mysensors/.classpath
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/main/test"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions addons/binding/org.openhab.binding.mysensors/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*.cached
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.8
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@
</description>
<config-description>
<parameter name="serialPort" type="text" required="true">
<context>serial-port</context>
<label>Serial Port</label>
<description>The serial port the MySensors Gateway is connected to
</description>
</parameter>
<parameter name="sendDelay" type="integer" required="false" min="1" max="1000">
<context>senddelay</context>
<label>Send Delay</label>
<description>The delay between messages send to the gateway
</description>
Expand All @@ -30,17 +28,20 @@
<default>115200</default>
</parameter>
<parameter name="skipStartupCheck" type="boolean" required="false">
<context>skipstartupchek</context>
<label>Skip startup connection check</label>
<description>Allow the user to bypass the I_VERSION check on startup</description>
<default>false</default>
</parameter>
<parameter name="imperial" type="boolean" required="false">
<context>imperialconfig</context>
<label>Imperial/Metric selection</label>
<description>Metric answer with imperial instead of metric</description>
<default>false</default>
</parameter>
<parameter name="enableNetworkSanCheck" type="boolean" required="false">
<label>Disable network sanity check</label>
<description>Network sanity check periodically unsure that gateway is up and running</description>
<default>false</default>
</parameter>
</config-description>

</bridge-type>
Expand All @@ -51,37 +52,37 @@
</description>
<config-description>
<parameter name="ipAddress" type="text" required="true">
<context>ipAddress</context>
<label>IP Address</label>
<description>The IP Address the MySensors Gateway uses
</description>
</parameter>
<parameter name="tcpPort" type="integer" required="true" min="1" max="65535">
<context>tcpport</context>
<label>TCP Port</label>
<description>The TCP Port the MySensors Gateway uses (usually 5003)
</description>
<default>5003</default>
</parameter>
<parameter name="sendDelay" type="integer" required="false" min="1" max="1000">
<context>senddelay</context>
<label>Send Delay</label>
<description>The delay between messages send to the gateway
</description>
<default>100</default>
</parameter>
<parameter name="skipStartupCheck" type="boolean" required="false">
<context>skipstartupchek</context>
<label>Skip startup connection check</label>
<description>Allow the user to bypass the I_VERSION check on startup</description>
<default>false</default>
</parameter>
<parameter name="imperial" type="boolean" required="false">
<context>imperialconfig</context>
<label>Imperial/Metric selection</label>
<description>Metric answer with imperial instead of metric</description>
<default>false</default>
</parameter>
<parameter name="enableNetworkSanCheck" type="boolean" required="false">
<label>Disable network sanity check</label>
<description>Network sanity check periodically unsure that gateway is up and running</description>
<default>false</default>
</parameter>
</config-description>

</bridge-type>
Expand Down Expand Up @@ -895,7 +896,133 @@
</parameter>
</config-description>
</thing-type>
<thing-type id="mysensorsMessage">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge-ser" />
<bridge-type-ref id="bridge-eth" />
</supported-bridge-type-refs>

<label>MySensors Message</label>
<description>Shows the complete MySensors Message</description>

<channels>
<channel id="mySensorsMessage" typeId="mySensorsMessage-channel" />
<channel id="lastupdate" typeId="lastupdate-channel"/>
</channels>

<config-description>
<parameter name="nodeId" type="text" required="true">
<context>NodeId</context>
<label>NodeId</label>
<description>The ID of the node in the MySensors network
</description>
<default>999</default>
</parameter>
<parameter name="childId" type="text" required="true">
<context>ChildId</context>
<label>ChildId</label>
<description>The ID of the child of a node in the MySensors network
</description>
<default>999</default>
</parameter>
</config-description>
</thing-type>

<thing-type id="text">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge-ser" />
<bridge-type-ref id="bridge-eth" />
</supported-bridge-type-refs>

<label>Text</label>
<description>V_TEXT</description>

<channels>
<channel id="text" typeId="text-channel" />
<channel id="lastupdate" typeId="lastupdate-channel"/>
</channels>

<config-description>
<parameter name="nodeId" type="text" required="true">
<context>NodeId</context>
<label>NodeId</label>
<description>The ID of the node in the MySensors network
</description>
<default>999</default>
</parameter>
<parameter name="childId" type="text" required="true">
<context>ChildId</context>
<label>ChildId</label>
<description>The ID of the child of a node in the MySensors network
</description>
<default>999</default>
</parameter>
</config-description>
</thing-type>

<thing-type id="irSend">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge-ser" />
<bridge-type-ref id="bridge-eth" />
</supported-bridge-type-refs>

<label>IR Send</label>
<description>Send IR codes</description>

<channels>
<channel id="irSend" typeId="irSend-channel" />
<channel id="lastupdate" typeId="lastupdate-channel"/>
</channels>

<config-description>
<parameter name="nodeId" type="text" required="true">
<context>NodeId</context>
<label>NodeId</label>
<description>The ID of the node in the MySensors network
</description>
<default>999</default>
</parameter>
<parameter name="childId" type="text" required="true">
<context>ChildId</context>
<label>ChildId</label>
<description>The ID of the child of a node in the MySensors network
</description>
<default>999</default>
</parameter>
</config-description>
</thing-type>

<thing-type id="irReceive">
<supported-bridge-type-refs>
<bridge-type-ref id="bridge-ser" />
<bridge-type-ref id="bridge-eth" />
</supported-bridge-type-refs>

<label>IR Receive</label>
<description>Receive IR codes</description>

<channels>
<channel id="irReceive" typeId="irReceive-channel" />
<channel id="lastupdate" typeId="lastupdate-channel"/>
</channels>

<config-description>
<parameter name="nodeId" type="text" required="true">
<context>NodeId</context>
<label>NodeId</label>
<description>The ID of the node in the MySensors network
</description>
<default>999</default>
</parameter>
<parameter name="childId" type="text" required="true">
<context>ChildId</context>
<label>ChildId</label>
<description>The ID of the child of a node in the MySensors network
</description>
<default>999</default>
</parameter>
</config-description>
</thing-type>

<!-- CHANNELS -->

Expand Down Expand Up @@ -1153,4 +1280,28 @@
<description>MySensors Water Electric Condictivity Channel</description>
<state readOnly="false"></state>
</channel-type>
<channel-type id="mysensorsMessage-channel">
<item-type>String</item-type>
<label>MySensors Message</label>
<description>MySensors Message Channel</description>
<state readOnly="false"></state>
</channel-type>
<channel-type id="text-channel">
<item-type>String</item-type>
<label>Text</label>
<description>MySensors Text Channel</description>
<category>Variable</category>
</channel-type>
<channel-type id="irSend-channel">
<item-type>String</item-type>
<label>Text</label>
<description>MySensors IR Send Channel</description>
<category>Variable</category>
</channel-type>
<channel-type id="irReceive-channel">
<item-type>String</item-type>
<label>Text</label>
<description>MySensors IR Receive Channel</description>
<category>Variable</category>
</channel-type>
</thing:thing-descriptions>
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ Bundle-Version: 2.0.0.qualifier
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-ClassPath: .
Import-Package:
com.google.common.collect,
com.google.common.base,
com.google.common.collect,
com.google.gson;version="2.2.4",
gnu.io,
org.apache.commons.lang,
org.openhab.binding.mysensors,
org.openhab.binding.mysensors.handler,
org.eclipse.smarthome.config.core,
org.eclipse.smarthome.config.discovery,
org.eclipse.smarthome.core.library.types,
Expand All @@ -21,11 +20,15 @@ Import-Package:
org.eclipse.smarthome.core.thing.binding.builder,
org.eclipse.smarthome.core.thing.type,
org.eclipse.smarthome.core.types,
org.openhab.binding.mysensors,
org.openhab.binding.mysensors.internal.handler,
org.osgi.framework,
org.osgi.service.cm,
org.osgi.service.component,
org.osgi.framework,
org.slf4j
Service-Component: OSGI-INF/*.xml
Export-Package: org.openhab.binding.mysensors,
org.openhab.binding.mysensors.handler
Require-Bundle: org.eclipse.smarthome.core
org.openhab.binding.mysensors.internal.handler
Require-Bundle: org.eclipse.smarthome.core,
org.openhab.io.transport.serial,
com.google.gson
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
http://www.eclipse.org/legal/epl-v10.html

-->
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.binding.mysensors.internal.MySensorsHandlerFactory">

<implementation class="org.openhab.binding.mysensors.internal.MySensorsHandlerFactory"/>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" immediate="true" name="org.openhab.binding.mysensors.internal.factory.MySensorsHandlerFactory">

<implementation class="org.openhab.binding.mysensors.internal.factory.MySensorsHandlerFactory"/>
<service>
<provide interface="org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory"/>
</service>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import java.util.Set;

import org.eclipse.smarthome.core.thing.ThingTypeUID;
import org.openhab.binding.mysensors.internal.MySensorsMessage;
import org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage;

import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists;
Expand Down Expand Up @@ -61,6 +61,7 @@ public class MySensorsBindingConstants {
public static final int MYSENSORS_SUBTYPE_S_DISTANCE = 15;
public static final int MYSENSORS_SUBTYPE_S_LIGHT_LEVEL = 16;
public static final int MYSENSORS_SUBTYPE_S_LOCK = 19;
public static final int MYSENSORS_SUBTYPE_S_IR = 20;
public static final int MYSENSORS_SUBTYPE_S_WATER = 21;
public static final int MYSENSORS_SUBTYPE_S_CUSTOM = 23;
public static final int MYSENSORS_SUBTYPE_S_RGB_LIGHT = 26;
Expand Down Expand Up @@ -197,6 +198,10 @@ public class MySensorsBindingConstants {
public final static ThingTypeUID THING_TYPE_RGB_LIGHT = new ThingTypeUID(BINDING_ID, "rgbLight");
public final static ThingTypeUID THING_TYPE_RGBW_LIGHT = new ThingTypeUID(BINDING_ID, "rgbwLight");
public final static ThingTypeUID THING_TYPE_WATER_QUALITY = new ThingTypeUID(BINDING_ID, "waterQuality");
public final static ThingTypeUID THING_TYPE_MYSENSORS_MESSAGE = new ThingTypeUID(BINDING_ID, "mySensorsMessage");
public final static ThingTypeUID THING_TYPE_TEXT = new ThingTypeUID(BINDING_ID, "text");
public final static ThingTypeUID THING_TYPE_IR_SEND = new ThingTypeUID(BINDING_ID, "irSend");
public final static ThingTypeUID THING_TYPE_IR_RECEIVE = new ThingTypeUID(BINDING_ID, "irReceive");

public final static ThingTypeUID THING_TYPE_BRIDGE_SER = new ThingTypeUID(BINDING_ID, "bridge-ser");
public final static ThingTypeUID THING_TYPE_BRIDGE_ETH = new ThingTypeUID(BINDING_ID, "bridge-eth");
Expand Down Expand Up @@ -254,7 +259,9 @@ public class MySensorsBindingConstants {
public final static String CHANNEL_VAR = "var";
public final static String CHANNEL_VA = "va";
public final static String CHANNEL_POWER_FACTOR = "power-factor";

public final static String CHANNEL_IR_SEND = "irSend";
public final static String CHANNEL_IR_RECEIVE = "irReceive";
public final static String CHANNEL_MYSENSORS_MESSAGE = "mySensorsMessage";
public final static String CHANNEL_LAST_UPDATE = "lastupdate";

// Wait time Arduino reset
Expand Down Expand Up @@ -322,7 +329,9 @@ public class MySensorsBindingConstants {
put(MYSENSORS_SUBTYPE_V_VAR, CHANNEL_VAR);
put(MYSENSORS_SUBTYPE_V_VA, CHANNEL_VA);
put(MYSENSORS_SUBTYPE_V_POWER_FACTOR, CHANNEL_POWER_FACTOR);

put(MYSENSORS_SUBTYPE_V_TEXT, CHANNEL_TEXT);
put(MYSENSORS_SUBTYPE_V_IR_SEND, CHANNEL_IR_SEND);
put(MYSENSORS_SUBTYPE_V_IR_RECEIVE, CHANNEL_IR_RECEIVE);
}
};

Expand All @@ -344,7 +353,8 @@ public class MySensorsBindingConstants {
THING_TYPE_DOOR, THING_TYPE_MOTION, THING_TYPE_SMOKE, THING_TYPE_DIMMER, THING_TYPE_COVER, THING_TYPE_WIND,
THING_TYPE_RAIN, THING_TYPE_UV, THING_TYPE_WEIGHT, THING_TYPE_DISTANCE, THING_TYPE_LIGHT_LEVEL,
THING_TYPE_HVAC, THING_TYPE_WATER, THING_TYPE_CUSTOM, THING_TYPE_LOCK, THING_TYPE_SOUND,
THING_TYPE_RGB_LIGHT, THING_TYPE_RGBW_LIGHT, THING_TYPE_WATER_QUALITY);
THING_TYPE_RGB_LIGHT, THING_TYPE_RGBW_LIGHT, THING_TYPE_WATER_QUALITY, THING_TYPE_MYSENSORS_MESSAGE,
THING_TYPE_TEXT, THING_TYPE_IR_SEND, THING_TYPE_IR_RECEIVE);
/** Supported bridges */
public final static Set<ThingTypeUID> SUPPORTED_BRIDGE_THING_TYPES_UIDS = ImmutableSet.of(THING_TYPE_BRIDGE_SER,
THING_TYPE_BRIDGE_ETH);
Expand All @@ -355,6 +365,6 @@ public class MySensorsBindingConstants {
THING_TYPE_DOOR, THING_TYPE_MOTION, THING_TYPE_SMOKE, THING_TYPE_DIMMER, THING_TYPE_COVER, THING_TYPE_WIND,
THING_TYPE_RAIN, THING_TYPE_UV, THING_TYPE_WEIGHT, THING_TYPE_DISTANCE, THING_TYPE_LIGHT_LEVEL,
THING_TYPE_HVAC, THING_TYPE_WATER, THING_TYPE_CUSTOM, THING_TYPE_LOCK, THING_TYPE_SOUND,
THING_TYPE_RGB_LIGHT, THING_TYPE_RGBW_LIGHT, THING_TYPE_WATER_QUALITY, THING_TYPE_BRIDGE_SER,
THING_TYPE_BRIDGE_ETH);
THING_TYPE_RGB_LIGHT, THING_TYPE_RGBW_LIGHT, THING_TYPE_WATER_QUALITY, THING_TYPE_MYSENSORS_MESSAGE,
THING_TYPE_TEXT, THING_TYPE_IR_SEND, THING_TYPE_IR_RECEIVE, THING_TYPE_BRIDGE_SER, THING_TYPE_BRIDGE_ETH);
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ public class MySensorsBridgeConfiguration {
public Integer baudRate;
public Boolean imperial;
public Boolean skipStartupCheck;

public Boolean enableNetworkSanCheck;
}
Loading