Did anyone get a Trendline sensor to work?
I have an MA 10100 but it does not want to show up. The Jeelink seems to work properly but unfortunately I have no other sensor at the moment to verify.
Openhab2 version 2.0.0-SNAPSHOT Build #743 (from last night)
Jeeling binding: 181 | Active | 80 | 2.0.0.201701141032 | JeeLink Binding
Below the traces from two back2back scans for a JeeLink thing. (Output usually differs every 2nd scan, therefore done two.)
TRACE from scan:
12:12:46.385 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopping discovery of JeeLink USB Receivers...
12:12:46.386 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopped discovery of JeeLink USB Receivers.
12:12:46.388 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Starting discovery of JeeLink USB receivers...
12:12:46.389 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Iterating ports...
12:12:46.419 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS1...
12:12:46.420 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS1 with baud rate 57600...
12:12:46.421 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS1 with baud rate 57600...
12:12:46.429 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS2...
12:12:46.430 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS2 with baud rate 57600...
12:12:46.432 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS2 with baud rate 57600...
12:12:46.439 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyUSB0...
12:12:46.441 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyUSB0 with baud rate 57600...
12:12:46.442 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyUSB0 with baud rate 57600...
12:12:46.456 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS3...
12:12:46.457 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS3 with baud rate 57600...
12:12:46.458 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS3 with baud rate 57600...
12:12:46.466 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS4...
12:12:46.468 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS4 with baud rate 57600...
12:12:46.469 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS4 with baud rate 57600...
12:12:46.477 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Trying for a maximum of 5 seconds to read the sketch name from the ports...
12:12:51.480 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Creating 0 discovered things...
12:12:51.482 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Discovered things created.
12:12:51.484 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Closing all open ports...
12:12:51.486 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS1...
12:12:51.534 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS2...
12:12:51.543 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyUSB0...
12:12:51.602 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS3...
12:12:51.671 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS4...
12:13:16.388 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopping discovery of JeeLink USB Receivers...
12:13:16.391 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopped discovery of JeeLink USB Receivers.
12:15:06.696 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopping discovery of JeeLink USB Receivers...
12:15:06.744 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopped discovery of JeeLink USB Receivers.
12:15:06.746 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Starting discovery of JeeLink USB receivers...
12:15:06.748 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Iterating ports...
12:15:06.773 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS1...
12:15:06.775 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS1 with baud rate 57600...
12:15:06.775 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS1 with baud rate 57600...
12:15:06.789 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS2...
12:15:06.791 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS2 with baud rate 57600...
12:15:06.793 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS2 with baud rate 57600...
12:15:06.800 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyUSB0...
12:15:06.803 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyUSB0 with baud rate 57600...
12:15:06.805 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyUSB0 with baud rate 57600...
12:15:06.820 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS3...
12:15:06.821 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS3 with baud rate 57600...
12:15:06.822 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS3 with baud rate 57600...
12:15:06.837 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Scanning port /dev/ttyS4...
12:15:06.839 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyS4 with baud rate 57600...
12:15:06.840 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyS4 with baud rate 57600...
12:15:06.847 [DEBUG] [nk.discovery.JeeLinkDiscoveryService] - Trying for a maximum of 5 seconds to read the sketch name from the ports...
12:15:09.518 [TRACE] [link.handler.JeeLinkSerialConnection] - Read line from port /dev/ttyUSB0: [LaCrosseITPlusReader.10.1q (RFM69 f:868300 r:17241)]
12:15:09.521 [TRACE] [link.handler.JeeLinkSerialConnection] - Read line from port /dev/ttyUSB0:
12:15:09.541 [TRACE] [link.handler.JeeLinkSerialConnection] - Read line from port /dev/ttyUSB0: der.10.1q (RFM69 f:868300 r:17241)]
12:15:11.849 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Creating 0 discovered things...
12:15:11.851 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Discovered things created.
12:15:11.907 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Closing all open ports...
12:15:11.909 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS1...
12:15:11.993 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS2...
12:15:12.004 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyUSB0...
12:15:12.070 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS3...
12:15:12.142 [INFO ] [link.handler.JeeLinkSerialConnection] - Closing serial connection to port /dev/ttyS4...
12:15:36.747 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopping discovery of JeeLink USB Receivers...
12:15:36.748 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopped discovery of JeeLink USB Receivers.
I have no idea why the discovery does not work, it reads the sketch name from the port and should then log a message stating that the sketch name has been read. This is the precondition that needs to be met in order for a Jeelink Thing to be put in the inbox.
I copied the text from your log file and tried to reproduce the behaviour, but could not.
i replaced the version in the root/addons folder but no change…
when i delete the binding from the folder its loaded too?
is there any cache of bindings?
Sorry, I probably was not clear enough: At this point, the Jeelink itself was already added as a thing. That’s why it is not added again. It just does not see the Trendline sensor at all.
Maybe I miss something obvious like a pairing command I have to send?
PS: To check the JeeLink, I set some initCommands, which it seems to accept and also created a dummy Sensor, which it tries to poll nicely. So it looks to me the JeeLink works fine. All done via the PaperUI where it shows up as a thing which is online. I also put a fresh Battery into the Sensor and it should work, as it is recogniced by the Trendline Gateway.
Find the jeelink binding and check the version. It should have todays date in it.
If it is the updated version, run the discovery with TRACE enabled and post the log again (but start from the beginning of the discovery up to its end).
The sensor is right next to the stick.
I could not figure out what is the Lacrosse equivalent for the Technoline MA 10100 but I also do not think it is on the list. (It looks like the TX-16, but supposedly uses 868,30 MHz)
It seems others got it to work with Jeelink and FHEM, so I will play around with it a little more.
I will continue to play around with it. Also tomorrow night I can get my hands on a different Technoline sensor, which looks similar to some of the supported Lacrosse sensors.
Plugged my Jeelink meanwhile into my Windows notebook and connected via Arduino Builder.
When I take the battery out shortly from my sensor, I sometimes manage to get something from the sensor after some time. Looks like this:
Serial port COM3 opened at baudrate of 57600kps
[LaCrosseITPlusReader.10.1q (RFM69 f:868300 r:17241)]
OK 9 52 129 2 169 106
And then nothing. Definitely an odd behaving sensor. I keep you posted in case I figure something out, but most likely I just have to go for a different sensor.
2017-01-25 19:36:53.022 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopping discovery of JeeLink USB Receivers... 2017-01-25 19:36:53.030 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Stopped discovery of JeeLink USB Receivers. 2017-01-25 19:36:53.045 [INFO ] [nk.discovery.JeeLinkDiscoveryService] - Starting discovery of JeeLink USB receivers... 2017-01-25 19:36:53.723 [INFO ] [link.handler.JeeLinkSerialConnection] - Creating serial connection for port /dev/ttyUSB0 with baud rate 57600... 2017-01-25 19:36:53.731 [INFO ] [link.handler.JeeLinkSerialConnection] - Opening serial connection to port /dev/ttyUSB0 with baud rate 57600...
Nothing unusual in dmesg or other message logs. Am I doing something wrong?
What version of openHAP are you using, the shortly released 2.0.0? Is the jeelink connected to /dev/ttyUSB0, or is this some other device? If it is the jeelink, can you enable TRACE loggin, start the discovery again and paste the relevant part of the log?
If it is not the jeelink that is connected to /dev/ttyUSB0, can you unplug the device and restart the discovery? After you have discovered your devices you can plug it back in. If this works then I probably better disable discovery of the stick.
I am a little bit at a loss here, as the new log does not provide any additional information. It looks like either opening the device crashes openHAB, or reading from the device itself (before the string that has been read is logged).
Do you still have FHEM running and accessing the device (or some other process)?
Have you added the openhab user to the dialout group (or the group that owns the device /dev/ttyUSB0)? Can you read from the device as openhab user from the commandline (by using cat /dev/ttyUSB0)? This should normally run until you press Crl-C and show at least the sketch name.
Please try to start openHAB on the comandline (I never did this, but there is a start.sh script supposed to be in the openHAB directory somewhere). Maybe this shows the vm crash dump in the console.