OH3 - MySensors Binding
-
I've solved the dependency error and the package compiles fine, but I had no time for testing yet.
If you're willing to test: Download
-
Hi,
I have a problem with the binding. Sometimes it drops the connection to the broker without any error message.
System: OH 3.0.1 β MySensensors MQTT Bridge β Mosquitto β MySensors MQTT GatewayFresh OpenHab install on debian, system start without any error, running about 1 day, then cannot communicate via MQTT. Messages does not arrive from Mosquitto to OH, also no outgoing messages to the broker. Checked mosquitto with MQTT Explorer, thats seems working, there are messages from the MySensorsGW.
There arenβt any clue in logs ( working untill ~2021-04-13 10:27:12:757) :2021-04-13 10:27:00.947 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - MQTT message received. Topic: mygateway1-out/11/5/1/1/2, Message: 0 2021-04-13 10:27:00.947 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Message topic part: 11/5/1/1/2 2021-04-13 10:27:00.947 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 11;5;1;1;2;0 2021-04-13 10:27:00.949 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 11;5;1;1;2;0 2021-04-13 10:27:00.949 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:00.949 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 5 found in node 11 2021-04-13 10:27:00.949 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: status(V_STATUS) value to: OFF 2021-04-13 10:27:00.950 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 11/5 to 2021-04-13T10:27:00.000+0200 2021-04-13 10:27:01.001 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;6;1;1;2;0 2021-04-13 10:27:01.002 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;6;1;1;2;0 2021-04-13 10:27:01.026 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - MQTT message received. Topic: mygateway1-out/11/6/1/1/2, Message: 0 2021-04-13 10:27:01.026 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Message topic part: 11/6/1/1/2 2021-04-13 10:27:01.027 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 11;6;1;1;2;0 2021-04-13 10:27:01.031 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 11;6;1;1;2;0 2021-04-13 10:27:01.031 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:01.031 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 6 found in node 11 2021-04-13 10:27:01.032 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: status(V_STATUS) value to: OFF 2021-04-13 10:27:01.032 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 11/6 to 2021-04-13T10:27:01.000+0200 2021-04-13 10:27:01.102 [INFO ] [rsAbstractConnection$MySensorsWriter] - ACK received for message: 11;5;1;1;2;0 2021-04-13 10:27:01.103 [INFO ] [rsAbstractConnection$MySensorsWriter] - ACK received for message: 9;6;1;1;3;0 2021-04-13 10:27:01.103 [INFO ] [rsAbstractConnection$MySensorsWriter] - ACK received for message: 11;6;1;1;2;0 2021-04-13 10:27:02.727 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - MQTT message received. Topic: mygateway1-out/11/13/1/0/24, Message: 0 2021-04-13 10:27:02.728 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Message topic part: 11/13/1/0/24 2021-04-13 10:27:02.728 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 11;13;1;0;24;0 2021-04-13 10:27:02.732 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 11;13;1;0;24;0 2021-04-13 10:27:02.733 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:02.733 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 13 found in node 11 2021-04-13 10:27:02.734 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: var1(V_VAR1) value to: 0 2021-04-13 10:27:02.734 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 11/13 to 2021-04-13T10:27:02.000+0200 2021-04-13 10:27:02.826 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - MQTT message received. Topic: mygateway1-out/11/14/1/0/2, Message: 0 2021-04-13 10:27:02.826 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Message topic part: 11/14/1/0/2 2021-04-13 10:27:02.827 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 11;14;1;0;2;0 2021-04-13 10:27:02.836 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 11;14;1;0;2;0 2021-04-13 10:27:02.836 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:02.837 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 14 found in node 11 2021-04-13 10:27:02.837 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: status(V_STATUS) value to: OFF 2021-04-13 10:27:02.838 [DEBUG] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 11/14 to 2021-04-13T10:27:02.000+0200 2021-04-13 10:27:04.050 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - MQTT message received. Topic: mygateway1-out/7/255/3/0/22, Message: 1260498882 2021-04-13 10:27:04.051 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Message topic part: 7/255/3/0/22 2021-04-13 10:27:04.052 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 7;255;3;0;22;1260498882 2021-04-13 10:27:04.052 [DEBUG] [rsAbstractConnection$MySensorsReader] - Message from gateway received: 7;255;3;0;22;1260498882 2021-04-13 10:27:04.725 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - MQTT message received. Topic: mygateway1-out/9/255/3/0/22, Message: 568774403 2021-04-13 10:27:04.726 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Message topic part: 9/255/3/0/22 2021-04-13 10:27:04.726 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Converted MQTT message to MySensors Serial format. Sending on to bridge: 9;255;3;0;22;568774403 2021-04-13 10:27:12.747 [INFO ] [org.openhab.core.model.script.Info ] - Hot Water Heating: Off 2021-04-13 10:27:12.755 [DEBUG] [ensors.handler.MySensorsThingHandler] - Adapter: class org.openhab.binding.mysensors.converter.MySensorsOnOffTypeConverter loaded 2021-04-13 10:27:12.757 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:12.757 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 6 found in node 11 2021-04-13 10:27:12.757 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;6;1;1;2;0 2021-04-13 10:27:12.757 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;6;1;1;2;0 2021-04-13 10:27:12.858 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;6;1;1;2;0 2021-04-13 10:27:12.858 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;6;1;1;2;0 2021-04-13 10:27:12.959 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;6;1;1;2;0 2021-04-13 10:27:12.960 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;6;1;1;2;0 2021-04-13 10:27:13.461 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;6;1;1;2;0 2021-04-13 10:27:13.462 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;6;1;1;2;0 2021-04-13 10:27:14.464 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;6;1;1;2;0 2021-04-13 10:27:14.464 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;6;1;1;2;0 2021-04-13 10:27:15.695 [INFO ] [org.openhab.core.model.script.Info ] - Nappali Heating Demand : 0 2021-04-13 10:27:15.697 [INFO ] [org.openhab.core.model.script.Info ] - Gyerekszoba Heating Demand set to: 0 2021-04-13 10:27:15.699 [INFO ] [org.openhab.core.model.script.Info ] - Haloszoba Heating Demand set to: 0 2021-04-13 10:27:15.703 [DEBUG] [ensors.handler.MySensorsThingHandler] - Adapter: class org.openhab.binding.mysensors.converter.MySensorsOnOffTypeConverter loaded 2021-04-13 10:27:15.703 [DEBUG] [ensors.handler.MySensorsThingHandler] - Adapter: class org.openhab.binding.mysensors.converter.MySensorsPercentTypeConverter loaded 2021-04-13 10:27:15.704 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 9 found in gateway 2021-04-13 10:27:15.704 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:15.704 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 6 found in node 9 2021-04-13 10:27:15.705 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 5 found in node 11 2021-04-13 10:27:15.866 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 9;6;1;1;3;0 2021-04-13 10:27:15.867 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 9;6;1;1;3;0 2021-04-13 10:27:15.968 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;5;1;1;2;0 2021-04-13 10:27:15.969 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;5;1;1;2;0 2021-04-13 10:27:16.170 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 9;6;1;1;3;0 2021-04-13 10:27:16.171 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 9;6;1;1;3;0 2021-04-13 10:27:16.274 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;5;1;1;2;0 2021-04-13 10:27:16.274 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;5;1;1;2;0 2021-04-13 10:27:16.475 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 9;6;1;1;3;0 2021-04-13 10:27:16.476 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 9;6;1;1;3;0 2021-04-13 10:27:16.576 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;5;1;1;2;0 2021-04-13 10:27:16.577 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;5;1;1;2;0 2021-04-13 10:27:16.678 [WARN ] [rsAbstractConnection$MySensorsWriter] - NO ACK for message: 11;6;1;1;2;0 2021-04-13 10:27:16.679 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Node 11 found in gateway 2021-04-13 10:27:16.680 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Child 6 found in node 11 2021-04-13 10:27:16.680 [DEBUG] [rs.internal.gateway.MySensorsGateway] - Variable MySensorsVariableVStatus found, it will be reverted to last know state 2021-04-13 10:27:16.681 [DEBUG] [ensors.handler.MySensorsThingHandler] - Updating channel: status(V_STATUS) value to: OFF 2021-04-13 10:27:16.683 [WARN ] [ensors.handler.MySensorsThingHandler] - Setting last update for node/child 11/6 BACK (due to revert) to 2021-04-13T10:27:02.000+0200 2021-04-13 10:27:17.085 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 9;6;1;1;3;0 2021-04-13 10:27:17.086 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 9;6;1;1;3;0 2021-04-13 10:27:17.187 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;5;1;1;2;0 2021-04-13 10:27:17.188 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;5;1;1;2;0 2021-04-13 10:27:18.090 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 9;6;1;1;3;0 2021-04-13 10:27:18.091 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 9;6;1;1;3;0 2021-04-13 10:27:18.191 [DEBUG] [rsAbstractConnection$MySensorsWriter] - Sending to MySensors: 11;5;1;1;2;0 2021-04-13 10:27:18.192 [DEBUG] [rotocol.mqtt.MySensorsMqttConnection] - Sending MQTT Message: Topic: mygateway1-in, Message: 11;5;1;1;2;0 2021-04-13 10:27:20.095 [WARN ] [rsAbstractConnection$MySensorsWriter] - NO ACK for message: 9;6;1;1;3;0
-
@TimO thanks for your time, but I am sorry to say there is another one:
Unresolved requirement: Import-Package: org.osgi.framework; version="[1.9.0,2.0.0)"
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
@oljo I am very sorry to ask, but how does your post connect to the topic of this thread?
....you are not using the mysensors-binding....
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
This post is deleted!
-
@oljo as I already mentioned: your posts are 100% off topic, because ypu do not use the OH3-binding for mysensors. you did some text-file thing-definitions with the MQTT-binding... apples and not plums
-
This post is deleted!
-
Hi all.
Did anyone upgrade to OH 3.1.0 stable and managed to get the MySensors Binding 3.1.0 running yet?
Sind I've upgraded to OH 3.1.0 I'm getting the following error messages in the log when starting the openhab service:I'm using a MySensors Ethernet Gateway (no MQTT, although that souldn't really make a difference) and a raspberry pi 4b+ as OH 3 server.
2021-07-04 10:37:43.376 [ERROR] [Events.Framework ] - FrameworkEvent ERROR org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [237] Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)" at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel$2.run(ModuleContainer.java:1845) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor$1$1.execute(EquinoxContainerAdaptor.java:136) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1838) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.incStartLevel(ModuleContainer.java:1781) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1743) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1665) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.dispatchEvent(ModuleContainer.java:1) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:234) [org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:345) [org.eclipse.osgi-3.16.200.jar:?]
and then a little further down the log:
2021-07-04 10:38:04.300 [WARN ] [org.apache.felix.fileinstall ] - Error while starting bundle: file:/usr/share/openhab/addons/org.openhab.binding.mysensors-3.1.0.jar org.osgi.framework.BundleException: Could not resolve module: org.openhab.binding.mysensors [237] Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)" at org.eclipse.osgi.container.Module.start(Module.java:463) ~[org.eclipse.osgi-3.16.200.jar:?] at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:440) ~[org.eclipse.osgi-3.16.200.jar:?] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1260) [bundleFile:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1233) [bundleFile:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1221) [bundleFile:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:515) [bundleFile:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:365) [bundleFile:3.6.8] at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:316) [bundleFile:3.6.8]
Any help is highly appreciated!
Thanks and kind regards,
Ralph...
-
P.S.:
Prior to upgrading from OH 3.0.2 to OH 3.1.0 everything worked fine...
-
Hi!
I've upgraded to OH 3.1.0 from OH 3.0.x
Installed openhab-transport-serial and openhab-core-io-transport-mqtt in Karaf console with:
feature:install openhab-transport-serial feature:install openhab-core-io-transport-mqtt
Tried to restart mysensors binding:
openhab> bundle:restart org.openhab.binding.mysensors Error executing command: Error restarting bundles: Unable to start bundle 29: Could not resolve module: org.openhab.binding.mysensors [29] Unresolved requirement: Import-Package: org.apache.commons.lang; version="[2.6.0,3.0.0)"
Checked that only org.apache.commons.lang3 is installed:
openhab> bundle:list org.apache.commons.lang3 START LEVEL 100 , List Threshold: 50 ID β State β Lvl β Version β Name 66 β Active β 80 β 3.12.0 β Apache Commons Lang
Thanks
-
@Chacha the log says it all: in OH3 the required package org.apache.commons.lang is installed with version 3.12.0
the (very depreciated) binding does only support up to version 3.0.0
the bug has been known for several months now.
there are 2 ways out of that situation:
a) if possible recode your sensors without mysensors and use Homie instead
b) get rid of the binding and use plain mqtt
this also applys to @syntacrsc
-
Thanks @Peter-Loeffler !
I think I'll dive into mqtt than!
As I can see Homie is only for sensors. I use mySensors to control my rollershutters.
-
@Chacha
Same here, I use MySensors to control rollershutters, pool pump, HVAC and solar panels.Maybe we should collect some volunteers for a bounty to give to @TimO to enhance his beautiful mySensors binding to work with the recent OH 3.1.0 version??
@Peter-Loeffler
I used to use plain MQTT before I found the mySensors binding and don't really want go back to it.I'd be willing to throw 100 USD into the bounty pot to enhance MySensors to work with the recent version of OH3...
(I'd do it myself if I'd know how to )
-
@Chacha you are wrong: Homie is NOT ONLY for sensors.
-
@syntacrsc well, for me it's no solution to throw Dollars into a pot that a community-based software get's some updates. either the software is state of the art ro it is not. and MySensors turned out to be not
-
@syntacrsc @TimO My system just upgraded and killed all of mySensors, which is probably half of my system... so I would be in for $50 at least
-
i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration
So far, so good - working with the latest OH 3.1.0
please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA
-
@vores8 just down loaded it and installed. Showing up online with my serial gateway. Gonna let it run but looks like itβs working now. Nice work, and thank you.
-
@TimO After my system upgrade yesterday the mysensor binding stopt working. after I replaced the binding with your new download, it started working again. Thanks, you are a real hero (at least for me).
-
Hi
Just tested out the mysensors openhab binding (org.openhab.binding.mysensors-3.2.0-SNAPSHOT) in the link provided by vores8 a few messages above.
Testing with the serial gateway, openhab 3.2 latest snapshot running pi 4.
Another detail for new users setting up by following the instruction, in the openhab install wiki (https://github.com/tobof/openhab-addons/wiki/Installation) here. This line does not work
feature:install openhab-transport-serial and feature:install openhab-core-io-transport-mqtt.
From other comments I found it is overcome by installing the openhab serial and mqtt bindings .
-
@ncollins said in OH3 - MySensors Binding:
One thing I had to do was explicitly set
secure="false"
into /opt/openhab/userdata/config/org/openhab/mqttbroker.config.Please try that, then restart.
Just had a whole load of trouble getting the binding working using MQTT - this was the solution in case anyone else hits this!
-
@vores8 said in OH3 - MySensors Binding:
i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration
So far, so good - working with the latest OH 3.1.0
please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA
For anyone interested, I just installed the latest version of OpenHabian on a raspberry pi and it is running OH 3.1.0. The Openhab 3.1 MySensors binding from the Mysensors website was not working (same error as @Chacha).
I have now installed the version that @vores8 has provided and MySensors is up and running properly.
Thanks for the help.
-
Hi,
just tested OH3 (3.1.0) on PI3 with mysensors openhab binding (org.openhab.binding.mysensors-3.2.0-SNAPSHOT) in the link provided by vores8.
feature:install openhab-transport-serial and feature:install openhab-core-io-transport-mqtt. done. It's all up and running . bundle:list shows all active.
But the "MySensors Serial Gateway" which I intend to use in OH3 will not keep ONLINE.
It always goes back to offline...11:48:29.035 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Initialization of the MySensors bridge mysensors:bridge-ser:6e5dca16a9 DONE! 11:48:29.035 [DEBUG] [ocol.serial.MySensorsSerialConnection] - Connecting to /dev/ttyUSB1 [baudRate:115200] 11:48:29.045 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-ser:6e5dca16a9' changed from OFFLINE to ONLINE 11:48:29.062 [ERROR] [ocol.serial.MySensorsSerialConnection] - Exception found java.lang.IllegalStateException: Serial Port Identifier not found at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:59) [bundleFile:?] at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:145) [bundleFile:?] at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:124) [bundleFile:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] 11:48:29.073 [DEBUG] [ors.internal.gateway.MySensorsGateway] - MySensorsGateway connection status update -connected: false 11:48:29.077 [DEBUG] [s.discovery.MySensorsDiscoveryService] - Stopping MySensors discovery scan 11:48:29.080 [INFO ] [hab.event.ThingStatusInfoChangedEvent] - Thing 'mysensors:bridge-ser:6e5dca16a9' changed from ONLINE to OFFLINE 11:48:29.081 [DEBUG] [ysensors.internal.event.EventRegister] - Listener org.openhab.binding.mysensors.discovery.MySensorsDiscoveryService@b2d6b0 not present, cannot remove it 11:48:29.086 [DEBUG] [ensors.handler.MySensorsBridgeHandler] - Connection status mysensors:bridge-ser:6e5dca16a9 updated to false 11:48:29.090 [DEBUG] [sensors.factory.MySensorsCacheFactory] - Writing on cache given_ids, content: [0,4] 11:48:29.095 [ERROR] [ocol.serial.MySensorsSerialConnection] - Failed connecting to bridge...next retry in 10 seconds (Retry No.:0)
any ideas?
-
@forexsieno Is the device accessible by the user that Openhab is running with?
-
@TimO said in OH3 - MySensors Binding:
Is the device accessible by the user that Openhab is running with?
@TimO Yes it is. This behaviour is not reproduceable for me. Sometimes after reboot Serial gateway keeps online. in other cases it switches to OFFLINE. I assume anything is wrong with serial driver.
-
Openhab 3.2 now contains a community marketplace for bindings, perhaps the mysensors binding can be made available there?
-
Someone have working mysensors binding in openhab 3.3 ?
-
@JarosΕaw-Narbut Yes, I have.
-
@CyborgAndy could you please share?
-
Im receiving following error in openhab:
[protocol.mqtt.MySensorsMqttConnection] - Can't send message, connection writer is null
Did you have the same? What did you do to resolve this?Using addon: org.openhab.binding.mysensors-3.2.0-SNAPSHOT.jar
Thanks
-
@daanjjansen I'm using OpenHAB 3.3.0
Information from OpenHAB 3.3.0 release notes:
Support for the MQTT System Broker has been removed. Replace 'mqtt:systemBroker' things with 'mqtt:broker' things.I fixed this error with MqttConnection. Your need remove MQTT System Broker and create new MQTT Broker.
Download fixed org.openhab.binding.mysensors-3.3.0-SNAPSHOT.jar from my Google Disk
-
It seems that still some people are interested in this MySensors binding being updated further.
I'm currently using in openHAB 3.2 the version that @vores8 kindly provided in post #109 on 21/07/2022, based on the source fork from @ncollins (https://github.com/nikolac/openhab2-addons/tree/mysensors-oh3-migration).
Now I noticed that there seems to be a bug in the ethernet gateway with reconnecting after the TCP connection is lost. The loss of the connection is detected, but it is not disconnected and re-established afterwards.
I would like to look at this in the " current" source code and if possible develop a fix and provide it.
Therefore the question to the community and especially to @vores8 and @ncollins, if the source code adapted to OH 3.2 or now to OH 3.3 has been uploaded by you to GitHub. If so, under which repository and branch? If not, please catch up on it for us so that we can merge the adaption you have made to the source and possibly bundle and ensure further development.
Thanks a lot in advance!
-
@mbedarff good question. Seems @CyborgAndy is keeping the addon alive? If so, @CyborgAndy are you publishing your changes to a public branch/fork?
-
@forexsieno Did you solve this one?
I'm still getting the same error.
Using 3.3.0-SNAPSHOT
2022-08-08 02:21:23.200 [ERROR] [col.serial.MySensorsSerialConnection] - Exception found java.lang.IllegalStateException: Serial Port Identifier not found at org.openhab.binding.mysensors.internal.protocol.serial.MySensorsSerialConnection.establishConnection(MySensorsSerialConnection.java:59) [bundleFile:?] at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.connect(MySensorsAbstractConnection.java:145) [bundleFile:?] at org.openhab.binding.mysensors.internal.protocol.MySensorsAbstractConnection.run(MySensorsAbstractConnection.java:124) [bundleFile:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?]
-
Hi.
@mbedarff I fix gateway connection checking issue.
You can download the fixed version from my Google Disk@mbedarff @ncollins I published all changes to GitHub, "mysensors-binding-addon" branch.
@forexsieno I tested my 3.3.0-SNAPSHOT in different environments (Arduino Nano as serial gateway, OH 3.3 installed on Windows 10 and Ubuntu Server 20.04) and did not find such a problem.
-
@CyborgAndy Glad to hear, that you have published all your fixes and upgrades to GitHub! So we have a current source code base to continue development or for debugging.
Thank you for the gateway connection fix! I just upgrade my OH instance from 3.2 to 3.3 and successfully tested your snapshot.
Have a nice weekend!
-
After upgrading OH from 3.2.0 to 3.3.0 and placing latest Mysensors binding (3.3.0-SNAPSHOT) into addon folder I can only get it to "Installed" status but not "active".
Any advise how to remove following issues?
openhab> feature:install openhab-transport-serial openhab> feature:install openhab-core-io-transport-mqtt openhab> diag 291 openHAB Add-ons :: Bundles :: MySensors Binding (291) ----------------------------------------------------- Status: Installed Unsatisfied Requirements: osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mqtt.handler)" osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mysensors.action)" osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mysensors.config)" osgi.wiring.package; filter:="(osgi.wiring.package=org.openhab.binding.mysensors.factory)" Declarative Services
-
@CyborgAndy work perfectly here.
Thanks for you effort!
-
@CyborgAndy @vores8 and @TimO and everyone else that worked on getting this binding to work on OH3, you guys are rockstars. I fubar'd my OH2 installation and decided that i might as well upgrade to OH3. I'm so glad that the mysensors binding works with it. I'm running a Raspberry Pi Serial Gateway which amazingly also installed with only a few minor hick-ups. Thank you all so much!
-
@CyborgAndy said in OH3 - MySensors Binding:
@mbedarff @ncollins I published all changes to GitHub, "mysensors-binding-addon" branch.
Is it normal than the add-on is not displayed on the official listing available through the UI of openHAB 3.3.0?
-
I've upgraded to OH4 and tried Mysensors binding 3.3.0-SNAPSHOT. It fails to load with error:
Unresolved requirement: Import-Package: org.openhab.binding.mqtt.handler
However 3.2.0-SNAPSHOT works perfectly with OH4!!!
You can download it from this post:@vores8 said in OH3 - MySensors Binding:
i've managed to build new version from the sources found here https://github.com/nikolac/openhab-addons/tree/mysensors-oh3-migration
So far, so good - working with the latest OH 3.1.0
please download from https://disk.yandex.ru/d/Yq3gn8N7tXSQxA
Install instructions: https://github.com/tobof/openhab-addons/wiki/Installation
-
Hi @Chacha
Download org.openhab.binding.mysensors-4.0.4-SNAPSHOT.jar from my Google Disk and try it.
I only tested as a MySensors MQTT Gateway
-
Hi @CyborgAndy
many thanks for providing the binding update for MySensors 4.0.4! I upgrade my OpenHAB 3.4.4 a few minutes ago to 4.0.4 successfully with your binding update. I use a USB connected serial-gateway. The OpenHAB manual installation upgrade works perfect. I need to do afterwards the following steps in the Karaf console, to get the gateway online again, after the update:
feature:install openhab-transport-serial feature:install openhab-core-io-transport-mqtt feature:install openhab-core-io-transport-serial-javacomm
Many thanks again!
kerberos