OH3 - MySensors Binding
-
@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.
-
Someone have working mysensors binding in openhab 3.3 ?
-
Someone have working mysensors binding in openhab 3.3 ?
@Jarosław-Narbut Yes, I have.
-
@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
-
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! :face_with_cowboy_hat:
-
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! :face_with_cowboy_hat:
@mbedarff good question. Seems @CyborgAndy is keeping the addon alive? If so, @CyborgAndy are you publishing your changes to a public branch/fork?
-
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 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) [?:?] -
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! :face_with_cowboy_hat:
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. :+1:
Thank you for the gateway connection fix! I just upgrade my OH instance from 3.2 to 3.3 and successfully tested your snapshot. :smiley:
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 -
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 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!
-
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 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 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
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.handlerHowever 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
-
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.handlerHowever 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 @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 GatewayHi @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-javacommMany thanks again!
kerberos