openHAB binding
-
@bkl First off I want to thank you for the MySensors openhab binding. It works wonderfully!
In the MySensors 2.0 there is an internal message that doesn't seem to be handled by the binding. I believe it needs to be handled in MySensorsBinding.java. I would do it myself but my knowledge of Java sucks....to put it lightly. The internal message is:
I_DISCOVER_RESPONSEso my openhab log keeps getting spammed with:
2016-10-21 22:16:21.653 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "4;255;I_DISCOVER_RESPONSE" 2016-10-21 22:26:21.374 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "4;255;I_DISCOVER_RESPONSE" 2016-10-21 22:36:22.127 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "4;255;I_DISCOVER_RESPONSE" 2016-10-21 22:46:21.847 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "4;255;I_DISCOVER_RESPONSE" 2016-10-21 22:56:21.569 [INFO ] [.b.m.internal.MySensorsBinding] - No item configured for "4;255;I_DISCOVER_RESPONSE"I'm assuming that we just need to add a line to:
public void incommingMessage(Message message)to handle it but I would rather let you do it since like I said....I suck with Java. Is that something that would be an easy fix?
-
Ethernet gw binding source seems to be missing in github repo.
Any clue?
Thanks
: Compilation failure:
[ERROR] /root/openhab/bundles/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/MySensorsBinding.java:[17]
[ERROR] import org.openhab.binding.mysensors.internal.gateway.Ethernet;
[ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The import org.openhab.binding.mysensors.internal.gateway.Ethernet cannot be resolved
[ERROR] /root/openhab/bundles/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/MySensorsBinding.java:[117]
[ERROR] gateway = new Ethernet(prop.getProperty("host"), Integer.parseInt(prop.getProperty("port", "5003")));
[ERROR] ^^^^^^^^
[ERROR] Ethernet cannot be resolved to a type
[ERROR] 2 problems (2 errors)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :org.openhab.binding.mysensors -
How do I add the "my-sensors" add on to openhab2.0. I openhab2 up and running based on their rasp-image. I have downloaded a couple other adds and install just fine. I don't know how to place the .jar file into the adds. Is there a clear guide on how to get this done ? PLS HELP!
-
@bkl Hi,
Use this biding from it`s beginning, many thanks again. Just want to know if there is any function like the "ack" as there is on OH2 binding, where gateway re-sends the msg 5 times if it does not hear from the sensor after a command. It´s a killer function to make it more reliable, but I´m not ready for OH2 yet.
Thanks
-
Hi,
after my openHAB system completely failed I had to re-install everying. I had MySensors configured the old way with a lot of rules with the serial binding I thought I give the binding a try.
In general it works but I have issues with S_COVER, not sure how to configure this.
But of course in openhab it is a single Rollershutter item... I think I could do a workaround in creating in total 4 items and only show my rollershutter and then have a rule and based on up/down/stop update the 3 items.Anyhow, seems to complex.
What is best practice here?
The sensor presents itself with this:
* Example item: 188;2;V_UP - Window covering. Up. * Example item: 188;2;V_DOWN - Window covering. Down. * Example item: 188;2;V_STOP - Window covering. Stop. * Example item: 188;2;V_PERCENTAGE - Percentage value. 0-100 (%) ``` -
Hi,
after my openHAB system completely failed I had to re-install everying. I had MySensors configured the old way with a lot of rules with the serial binding I thought I give the binding a try.
In general it works but I have issues with S_COVER, not sure how to configure this.
But of course in openhab it is a single Rollershutter item... I think I could do a workaround in creating in total 4 items and only show my rollershutter and then have a rule and based on up/down/stop update the 3 items.Anyhow, seems to complex.
What is best practice here?
The sensor presents itself with this:
* Example item: 188;2;V_UP - Window covering. Up. * Example item: 188;2;V_DOWN - Window covering. Down. * Example item: 188;2;V_STOP - Window covering. Stop. * Example item: 188;2;V_PERCENTAGE - Percentage value. 0-100 (%) ```I saw STOP in S_cover is not supported in OH2 - what about OH1? Anyone?
-
I saw STOP in S_cover is not supported in OH2 - what about OH1? Anyone?
@parachutesj According OH2: That was fixed a looooooong time ago. :D
Refer to: https://github.com/tobof/openhab2-addons/wiki/Examples for an example (cover).
-
@parachutesj According OH2: That was fixed a looooooong time ago. :D
Refer to: https://github.com/tobof/openhab2-addons/wiki/Examples for an example (cover).
@TimO thank you.
and what is with OH1? Not getting it to work.
Does not seem that STOP works, UP & DOWN and PERCENTAGE work -
@TimO thank you.
and what is with OH1? Not getting it to work.
Does not seem that STOP works, UP & DOWN and PERCENTAGE work@parachutesj I can't help you with this version of the binding, I've never used it.
-
@parachutesj I can't help you with this version of the binding, I've never used it.
@TimO Thanks anyway. I am slowly moving into the OH2 direction - still a lot of things to be clarified and configured
-
Hello guys, who can unpin this post?
It is terribly outdated.
The effort for an openhab-mysensors binding is still valid but several things changed on OpenHAB, making this a lot easier.
-
Hello guys, who can unpin this post?
It is terribly outdated.
The effort for an openhab-mysensors binding is still valid but several things changed on OpenHAB, making this a lot easier.
-
@guillermo-schimmel done. Is there some other post that should be pinned instead?
@mfalkvidd Thanks! Just give me a couple of days and I will try to make a new tutorial for mysensors+openhab.