Problem with connecting serial gateway to openhab2
-
Hi,
So I tried to connect my serial gateway(Arduino mega) to openhab. The logs say:
2020-01-07 19:34:02.408 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.
but then when I try to turn lights on the error shows up:
2020-01-07 16:23:51.839 [ome.event.ItemCommandEvent] - Item 'light01' received command ON 2020-01-07 16:23:51.849 [nt.ItemStatePredictedEvent] - light01 predicted to become ON 2020-01-07 16:23:51.859 [vent.ItemStateChangedEvent] - light01 changed from OFF to ON ==> /var/log/openhab2/openhab.log <== 2020-01-07 16:23:51.871 [WARN ] [rsAbstractConnection$MySensorsReader] - Exception on reading from connection java.text.ParseException: class java.text.ParseException : Message length is not > 4 at org.openhab.binding.mysensors.internal.protocol.message.MySensorsMessage.parse(MySensorsMessage.java:342) ~[243:org.openhab.binding.mysensors:2.4.0.201812040738] at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection$MySensorsReader.run(MySensorsAbstractConnection.java:338) [243:org.openhab.binding.mysensors:2.4.0.201812040738] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?] at java.lang.Thread.run(Thread.java:748) [?:?] 2020-01-07 16:23:52.050 [INFO ] [rsAbstractConnection$MySensorsWriter] - ACK received for message: 0;0;1;1;2;1
There's my things file:
Bridge mysensors:bridge-ser:gateway [ serialPort="/dev/ttyUSB1", sendDelay=200, startupCheckEnabled=false ] { light light01 [ nodeId=0, childId=0, requestAck=true ] }
I will be thankful for all help.
-
@Marcin-Szyda please set requestAck=false and try again. Is the error appearing again?
-
@TimO Yes, but without this message:
2020-01-07 16:23:52.050 [INFO ] [rsAbstractConnection$MySensorsWriter] - ACK received for message: 0;0;1;1;2;1
3 out of 3
Suggested Topics
-
SmartSleep a feature of the Gateway
Feature Requests • 18 Jun 2017, 21:05 • strangeoptics 19 Jun 2017, 10:43 -
OpenHAB 2.1 keeps showing light level as 0 with BH1750 and V_LEVEL
Troubleshooting • 9 Jul 2017, 20:52 • George Laynes 11 Jul 2017, 18:41 -
Adding sensors and relays to serial gateway
Development • 8 Dec 2015, 16:09 • Tino 9 Dec 2015, 16:19 -
Newbie question about how the mysensors gateway connects to controller
General Discussion • 23 Mar 2020, 15:05 • Thomas433 24 Mar 2020, 22:12 -
The Most Stable Controller and gateway, vera or another listed controller
Controllers • 24 Nov 2014, 03:15 • raditv 25 Nov 2014, 07:31 -
Openhab Puzzle Rule Programmer
OpenHAB • 7 Dec 2014, 10:44 • C.r.a.z.y. 8 Dec 2014, 03:54