@gonzalonal I've observed something similar on my system, as I recall the binding wasn't even able to establish the initial connection to a gateway. Have OH upgraded today from an earlier build (~3 weeks old).
Posts made by AndrewZ
-
RE: openHAB 2.0 binding
-
RE: openHAB 2.0 binding
@TimO yes, message occurs on startup and I'm already using version from marketplace, I see it as
market:binding-3328323 - 1.0
-
RE: openHAB 2.0 binding
@TimO here is the output:
2017-03-23 20:51:32.531 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin 2017-03-23 20:51:33.754 [WARN ] [.discovery.MySensorsDiscoveryService] - Cannot automatic discover thing node: 0, child: 255 please insert it manually 2017-03-23 20:51:33.772 [INFO ] [al.protocol.ip.MySensorsIpConnection] - Successfully connected to MySensors Bridge.
-
RE: openHAB 2.0 binding
Just noticed in the log:
[WARN ] [.discovery.MySensorsDiscoveryService] - Cannot automatic discover thing node: 0, child: 255 please insert it manually
Is that normal or any additional configuration is needed?
Thanks! -
RE: openHAB 2.0 binding
@LastSamurai please check the group ownership
$ ls -l /dev/ttyUSB0
Make sure the port you're using is included in EXTRA_JAVA_OPTS as described here
-
RE: RS485 Gateway with Nano and ENC28J60
I'm also interested in Ethernet Gateway with RS485 transport.
At the moment I have successfully tested this on Arduino UNO with 2 different Ethernet modules, W5100 and ENC28J60.
In both cases I'm using hardware serial port on Arduino, not AltSoftSerial.// Enable this if RS485 is connected to a hardware serial port #define MY_RS485_HWSERIAL Serial
-
RE: ๐ฌ Building an Ethernet Gateway
@mfalkvidd , yes I also found this in MQTT GW example, thanks.
This seems to be not working on my ENC28J60 - as I can see the the default gateway setting is not taken into account. I will test with W5100.Edit: I confirm that these settings work properly with W5100, just tested.
-
RE: ๐ฌ Building an Ethernet Gateway
Maybe I just overlooked that, but is it possible to statically define netmask and gateway in the sketch? I'm using ENC28J60.
-
RE: openHAB 2.0 binding
@andreacioni thank you
Yes, it was a change in the .things file, but it was related to another binding. -
RE: openHAB 2.0 binding
@TimO , I just noticed a weird behavior - I've changed configuration for another binding and restarted it from the console but that killed mysensors binding:
2017-03-04 13:07:19.110 [INFO ] [el.core.internal.ModelRepositoryImpl] - Refreshing model 'demo.things'
2017-03-04 13:07:19.123 [ERROR] [col.serial.MySensorsSerialConnection] - Interrupted reset time wait
2017-03-04 13:07:19.124 [WARN ] [col.serial.MySensorsSerialConnection] - Skipping I_VERSION connection test, not recommended...
2017-03-04 13:07:19.125 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge.
2017-03-04 13:07:19.125 [WARN ] [col.serial.MySensorsSerialConnection] - Network Sanity Checker thread disabled from bridge configuration2017-03-04 13:07:21.141 [ERROR] [col.serial.MySensorsSerialConnection] - Can't connect to serial port. Wrong port?
2017-03-04 13:07:21.149 [ERROR] [col.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:0)
2017-03-04 13:07:33.161 [ERROR] [col.serial.MySensorsSerialConnection] - Can't connect to serial port. Wrong port?
2017-03-04 13:07:33.163 [ERROR] [col.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:1)Complete stop/start of OH is the only solution so far.
-
RE: openHAB 2.0 binding
@TimO yes, it is working, but please check this one and 2nd (Network Sanity Checker thread disabled). Thank you!
-
RE: openHAB 2.0 binding
@TimO what about my error? I'm on the latest version already.
-
RE: ๐ฌ Sonoff relay using MySensors ESP8266 wifi or mqtt gateway
With all my respect to the project and people behind it I believe that MQTT is more widely used than MySensors. So for me it would be more logical to add another MQTT client to the network rather than introduce any additional gateway. Just my 2ยข.
-
RE: openHAB 2.0 binding
Just updated my OH2 installation from snapshot to RC/beta and immediately got an error with the binding:
[ERROR] [rs.internal.protocol.MySensorsReader] - (java.lang.NumberFormatException: For input string: "Gateway startup complete.") on reading from connection, message: class org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialReader
But then the usual:
[INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge. [WARN ] [col.serial.MySensorsSerialConnection] - Network Sanity Checker thread disabled from bridge configuration
What could be a problem? Do I need to perform some cleanup on my system? What exactly needs to be deleted?
-
RE: ๐ฌ Sonoff relay using MySensors ESP8266 wifi or mqtt gateway
Sorry, but what's the use case here?
With Sonoff it's either hard or impossible to add a radio or rs485 transport, so I don't see it as a real gateway.
If one wants to use it as a pure client and control it with MQTT - there is a great working solution available already: https://github.com/arendst/Sonoff-MQTT-OTA-Arduino -
RE: openHAB 2.0 binding
Hello everyone
I'm slowly migrating to OH2, my small MySensors network generally works fine but I see some weird behavior with the binding configuration in Paper UI.
So far it looks like "Disable network sanity check" is reversed - I'm sliding it to the left which means for me 'not disabled', i.e. 'enabled', but in the log I see "Checker thread disabled".2017-01-11 16:50:38.405 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;14;Gateway startup complete. 2017-01-11 16:50:38.408 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;0;0;18;2.1.0 2017-01-11 16:50:38.503 [DEBUG] [rs.internal.protocol.MySensorsWriter] - Sending to MySensors: 0;0;3;0;2; 2017-01-11 16:50:38.511 [DEBUG] [rs.internal.protocol.MySensorsReader] - 0;255;3;0;2;2.1.0 2017-01-11 16:50:38.512 [DEBUG] [col.serial.MySensorsSerialConnection] - Good,Gateway is up and running! (Ver:2.1.0) 2017-01-11 16:50:38.514 [INFO ] [col.serial.MySensorsSerialConnection] - Successfully connected to MySensors Bridge. 2017-01-11 16:50:38.515 [WARN ] [col.serial.MySensorsSerialConnection] - Network Sanity Checker thread disabled from bridge configuration 2017-01-11 16:50:48.516 [DEBUG] [col.serial.MySensorsSerialConnection] - Bridge is connected, connection skipped
Is that ok?
-
RE: RS485/RS232/Serial transport class for mysensors.org
I'm trying to get my Ethernet gateway (UNO with W5100) working with RS485 transport.
While RS485 part seems to be working fine between the node and gateway, the Ethernet part seems to be dead. I suspect this is related to the fact that Ethernet shield uses pin 10 which is unusable with RS485. Am I right? Any workaround? -
RE: RS485/RS232/Serial transport class for mysensors.org
@hek
thanks for this really fast and motivating response, I will try! -
RE: RS485/RS232/Serial transport class for mysensors.org
I'm curious whether it is possible to use this RS485 transport with Ethernet or MQTT gateway or Serial gateway is the only option?
For example, controller talks with MySensors Gateway over Ethernet,
MySensors Gateway talks with the Nodes over RS485.
Thanks! -
RE: Gateway MQTTClient and Mosquitto debug
I'm now using W5100 Ethernet, this is what I have on startup:
0;255;3;0;9;Starting gateway (R-NGA-, 2.0.0-beta) 0;255;3;0;9;Init complete, id=0, parent=0, distance=0 0;255;3;0;9;Attempting MQTT connection... 0;255;3;0;9;MQTT connected
With the following request I was able control my 1st relay:
mygateway1-in/0/1/1/0/2 , value is either 0 or 1Seems to be working!
-
RE: openHAB 2.0 binding
@TimO , thanks for the idea.
So I can probably take some code used for reporting button presses in the examples and use it in the 'message'.Thanks again
Andrew -
RE: Gateway MQTTClient and Mosquitto debug
@hek , thanks for that. I'll try again once I get another module.
Andrew
-
RE: openHAB 2.0 binding
Hello everyone
I'm testing MySensor Ethernet gateway with a relay code on it. My understanding that Gateway stores the current state of the relay (or GPIO port) in it's EPROM. Can the binding periodically check the state of the port or should I rely on OH persistence functionality? Please advise what is the right way to keep the states synced between the Gateway and OH.
Thanks
Andrew -
Gateway MQTTClient and Mosquitto debug
Hello everyone!
Just installed Mosquitto on RPi and I've adapted GatewayW5100MQTTClient example to use the ENC28J60 module I have. Should it work, BTW?
Mosquitto seems to be working, but I cannot get any debug from it... So I'm curious how can I check that my Gateway is talking with Mosquitto?
Thank you!