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
1 out of 3
Suggested Topics
-
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 -
OpenHAB MySensors binding 2.5: V_VAR1 and String values
OpenHAB • 3 Jun 2020, 19:09 • syntacrsc 7 Jun 2020, 18:01 -
The Most Stable Controller and gateway, vera or another listed controller
Controllers • 24 Nov 2014, 03:15 • raditv 25 Nov 2014, 07:31 -
Stabile Controller
Troubleshooting • 5 Mar 2015, 14:08 • C.r.a.z.y. 8 Mar 2015, 15:34 -
Gateways
Development • 6 Feb 2024, 01:16 • OldSurferDude 6 Feb 2024, 14:22 -
Boxes and Enclosures
Enclosures / 3D Printing • 29 Mar 2014, 21:02 • PITP2 31 Aug 2014, 19:27 -
Openhab 2 Mysensors smart chicken coop
My Project • 1 Mar 2017, 02:08 • Ticupolu 8 Mar 2017, 15:48 -
Home Assistant v 0.12
Home Assistant • 30 Jan 2016, 13:57 • martinhjelmare 30 Jan 2016, 15:05