OH3 - MySensors Binding
-
Hello,
Is smartsleep option of mysensors is implemented in de mqtt gateway? I have some battery powered units to control blinds which I put a lot in (smart)sleep to preserve batteries. This functions well with OH2 and mysensors binding....I'd rather not keep and OH2 instance running next to my OH3 instance if not necessary.
regards, -
I think so. I have a lot of battery powered nodes heavily using smartsleep and they work just fine with MQTT.
-
I'll look into the changes needed to migrate the binding to OH3 and let you know.
Maybe it's no big deal and I'll provide a version 3 binding. -
I'll look into the changes needed to migrate the binding to OH3 and let you know.
Maybe it's no big deal and I'll provide a version 3 binding. -
@TimO, a binding for openhab 3.0 would be very much appreciated!
I have tried the MQTT gateway, and with standard setup, messages are lost wich are sent to the node when asleep. Does anyone know how to solve this. I didnt find anything in de mqtt-gateway config. I see mqtt messages which could be read by the controller (openhab), when the node goes to sleep and wakes up, but at this moment I don't see how to implement this in openhab MQTT generic things.
Thanks...
-
For those of you willing to help testing the OH3 integration here is a link:
Please don't forget to fulfill the requirements for mqtt und serial. Installation of bindings will do.
What's working after a quick test:
- binding loads in OH3
- serial gateway receives messages (ethernet gateway should work too)
- discovery is working
What's not working:
- MQTT gateway: it's broken some time and needs some tinkering
Please let me know if you found some time to test the binding.
-
Hello,
Is smartsleep option of mysensors is implemented in de mqtt gateway? I have some battery powered units to control blinds which I put a lot in (smart)sleep to preserve batteries. This functions well with OH2 and mysensors binding....I'd rather not keep and OH2 instance running next to my OH3 instance if not necessary.
regards,@haasje30
smartsleep is easy with MQTTInitially a few years ago i tried the binding and it gave me nothing but trouble.
While it was configured I'd watch MQTT to see what it would do.2020-12-31 22:58:22 unoout/202/255/3/0/33 180000 (THIS IS THE SLEEP DURATION)
2020-12-31 22:58:22 unoout/202/255/3/0/32 500 (AT THIS MOMENT YOU HAVE 500MS to GET A COMMAND SENT)So define a thing to the channel ending in 32.
Bind an item to that channel with an expire timer for like 10 seconds state = 0then for your rule you'd have
rule "whatever"
when
Item whateverSleepItem changed from 0 to 500
then
whateverOtherItemThatIsSendingOutACommand.sendCommand(ON/OFF/WHATEVER)
end -
Thanks TimO and waspie. At this moment I have one mysensors hardware gateway, which is connected to my openhab2 instance. I have an OH3 test instance, and no hardware controller for this (yet). I did an short test with my current controller, but this is not the best way for me. So I orderded an wemos D1 mini to create a new mysensors gateway. As soon as this is in I will be testing. Thanks again...
-
For those of you willing to help testing the OH3 integration here is a link:
Please don't forget to fulfill the requirements for mqtt und serial. Installation of bindings will do.
What's working after a quick test:
- binding loads in OH3
- serial gateway receives messages (ethernet gateway should work too)
- discovery is working
What's not working:
- MQTT gateway: it's broken some time and needs some tinkering
Please let me know if you found some time to test the binding.
-
Thanks TimO and waspie. At this moment I have one mysensors hardware gateway, which is connected to my openhab2 instance. I have an OH3 test instance, and no hardware controller for this (yet). I did an short test with my current controller, but this is not the best way for me. So I orderded an wemos D1 mini to create a new mysensors gateway. As soon as this is in I will be testing. Thanks again...
-
For those of you willing to help testing the OH3 integration here is a link:
Please don't forget to fulfill the requirements for mqtt und serial. Installation of bindings will do.
What's working after a quick test:
- binding loads in OH3
- serial gateway receives messages (ethernet gateway should work too)
- discovery is working
What's not working:
- MQTT gateway: it's broken some time and needs some tinkering
Please let me know if you found some time to test the binding.
-
@TimO Thank you! It works for me with my Ethernet Gateway. I don't have that many nodes but the ones that I have, works as good as they did with OpenHAB2. I have a watermeter, an actuator and a door sensor. Great work!
-
@TimO Thank you! It works for me with my Ethernet Gateway. I don't have that many nodes but the ones that I have, works as good as they did with OpenHAB2. I have a watermeter, an actuator and a door sensor. Great work!
@Klabbe great! perhaps I'll go back to ethernet gateway. Do you think is better option over mqtt gateway?
-
Hello,
I did some testing with 2 openhab versions to one ethernet gateway. At first it did not discover any devices, thats because they were allready discovered in the old (2.5) version of openhab, I Think, because when I created a new mysensor device,it was immediattely discovered by the new openhab. I noticed a minor problem, there is an ability to scan (and because auto discovery did not seem to work I tried this), but after a scan the ethernet gateways failes. When you try to add a device(manually), it goes back to the first page when you select the gateway. I had to restart de openhab service to get it running again.
I tested with a new blinds sensor (with smartsleep), and smartsleep seem to work OK. So I prefer this binding over de generic mqtt binding, because stuf like request() and smartsleep() work 'out of the box'. These are my fisrt tests, I will be doing more (other sensor types) later on when I have an additional gateway available.
Regards...
-
For those of you willing to help testing the OH3 integration here is a link:
Please don't forget to fulfill the requirements for mqtt und serial. Installation of bindings will do.
What's working after a quick test:
- binding loads in OH3
- serial gateway receives messages (ethernet gateway should work too)
- discovery is working
What's not working:
- MQTT gateway: it's broken some time and needs some tinkering
Please let me know if you found some time to test the binding.
This post is deleted! -
For those of you willing to help testing the OH3 integration here is a link:
Please don't forget to fulfill the requirements for mqtt und serial. Installation of bindings will do.
What's working after a quick test:
- binding loads in OH3
- serial gateway receives messages (ethernet gateway should work too)
- discovery is working
What's not working:
- MQTT gateway: it's broken some time and needs some tinkering
Please let me know if you found some time to test the binding.
@TimO ,
many thanks for the updated binding. I just wait to update my OpenHAB to version 3.0.0 till your binding is ready. I use a OpenHAB manual install since many years on a ArchLinuxARM system. My Mysensors gateway is a serial one, which works like a charm till OpenHAB 2.5.11 and your bindings.
Today I updated to OpenHAB 3.0.0 and tried also OpenHAB 3.1.0-Snapshot. In both cases I got the Mysensors binding not working. It shows just "Initializing" in the Things overview. mqtt and serial transport features are installed. I don't change the manual config (things / items) files from 2.5.11 to 3.0.0.
If I use the openhab console, the bundle:diag and bundle:status shows "Active" and no errors.
If I take a look into the openhab.log, I found entries like:
[WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'mysensors' does not exist - ignoring it.or
[WARN ] [org.apache.felix.fileinstall ] - A bundle with the same symbolic name (org.openhab.binding.mysensors) and version (3.1.0.202012312203) is already installed. Updating this bundle instead. [WARN ] [org.apache.felix.fileinstall ] - Failed to uninstall bundle: /opt/openhab/addons/org.openhab.binding.mysensors-3.1.0.jar.1 with id: 87. The bundle has already been uninstalledMaybe you can share some ideas how to solve this issue? Any help is appreciated...
-
@TimO ,
many thanks for the updated binding. I just wait to update my OpenHAB to version 3.0.0 till your binding is ready. I use a OpenHAB manual install since many years on a ArchLinuxARM system. My Mysensors gateway is a serial one, which works like a charm till OpenHAB 2.5.11 and your bindings.
Today I updated to OpenHAB 3.0.0 and tried also OpenHAB 3.1.0-Snapshot. In both cases I got the Mysensors binding not working. It shows just "Initializing" in the Things overview. mqtt and serial transport features are installed. I don't change the manual config (things / items) files from 2.5.11 to 3.0.0.
If I use the openhab console, the bundle:diag and bundle:status shows "Active" and no errors.
If I take a look into the openhab.log, I found entries like:
[WARN ] [core.karaf.internal.FeatureInstaller] - The binding add-on 'mysensors' does not exist - ignoring it.or
[WARN ] [org.apache.felix.fileinstall ] - A bundle with the same symbolic name (org.openhab.binding.mysensors) and version (3.1.0.202012312203) is already installed. Updating this bundle instead. [WARN ] [org.apache.felix.fileinstall ] - Failed to uninstall bundle: /opt/openhab/addons/org.openhab.binding.mysensors-3.1.0.jar.1 with id: 87. The bundle has already been uninstalledMaybe you can share some ideas how to solve this issue? Any help is appreciated...
@kerberos Interesting find. Haven't seen something like this till now. I suggest to delete the jar file, delete the cache and start over again.
I haven't tested textual configuration, but this should work just fine and your problem occurred before the textual configuration is initialized.
-
hmm maybe I go back to the binding as well. Just spent several hours migrating all to the mqtt binding. It's working now but much slower.... So when I press a button the mqtt is slower to react as with the mysensor binding is. Why so?
-
@kerberos Interesting find. Haven't seen something like this till now. I suggest to delete the jar file, delete the cache and start over again.
I haven't tested textual configuration, but this should work just fine and your problem occurred before the textual configuration is initialized.
many thanks for quick answer. I already remove the jar file and delete the cache, tmp and mysensors folder in the userdata folder several times. The textual configuration is used for many years, with some small updates. I don't try the gui configuration.
If you need more data's for debugging, I will provide.